Changes to the Poseidon API in version 2.6

To prepare Poseidon for UML 2, some refactorings and re-designs of Poseidon components were necessary.


List of Changes

  • In several places, internationalization was defined by passing a String naming the ResourceBundle and another String naming the key in the bundle. This pair has been replaced by a container type ResourceId which is passed instead of the two Strings. To pass a ResourceId instead of two Strings, just construct a new ResourceId from the Strings: new ResourceId(bundleString, keyString). (Declare these as constants to simplify your resource bundle management.) Many methods, esp. in theSwingFactory, have been changed in this manner: instead of foo(String bundle, String key) you will now find foo(ResourceId resourceId).

  • The TabSpawnable constructor now also takes a ResourceId.

  • PoseidonUIConnector.addDetailsTab(Class, XTab) has been changed to PoseidonUIConnector.addDetailsTab(ProjectType, XTab). The first parameter now is Uml1ProjectType.getInstance().

  • The Die Diagram Interchange classes have moved from org.omg.uml.diagraminterchange to org.omg.uml2.diagraminterchange.

  • PoseidonApplicationState.getClassLoaders():Vector is replaced by getClassLoaderList():List.

  • com.gentleware.jboogie.model_management.DiagramElementAccessory is now called DiAccessory.

  • com.gentleware.jboogie.model_management.DiagramElementFactory is now called DiFactory.

  • ModelElementAccessory is now called Uml1SmAccessory (accordingly for ModelElementFactory etc)

  • com.gentleware.jboogie.openapi.CommandDiFactory is now called DiCommandFactory.

  • CommandSmFactory is now called Uml1SmCommandFactory. To make everything a bit cleaner CommandSmFactory and CommandDiSmFactory are merged to Uml1SmCommandFactory. This better resembles the commandFactory handling for uml2 commands. The Uml1SmCommandFactory and the Uml2SmCommandFactory both extend the SmCommandFactory, which can be used as a generic interface where needed. So there is no CommandDiSmFactory anymore.



© 2000 - 2010 Gentleware AG
         
                        
 support  documentation  documentation  APIs