LinguaPhylo / linguaPhylo

LinguaPhylo: A language for describing, visualising and simulating probabilistic phylogenetic models
GNU Lesser General Public License v3.0
14 stars 7 forks source link

Make Viewer extendable #453

Closed walterxie closed 2 months ago

walterxie commented 2 months ago

Make Viewer extendable through SPI, so that the ViewerRegister can register the extended Viewer from another lphy extension.

walterxie commented 2 months ago

TODO : The list should change to Map<T, Viewer> where T is the class, e.g. Alignment, Double, ...

Then addViewers can check if viewer for a type already exists, after getViewers() changes to Map<T, Viewer>.

walterxie commented 2 months ago

454