]> gerrit.simantics Code Review - simantics/sysdyn.git/commit
Implemented DiagramEditor resource disposal/reinitialization based on Eclipse IPartLi...
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 13 Feb 2012 07:52:33 +0000 (07:52 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 13 Feb 2012 07:52:33 +0000 (07:52 +0000)
commit554ca6d58277923162a94b25a1d73730b993ff59
tree37bc28e4467d4c093d127cc9d70008487830d745
parent2f92d2bee87a5d707aae9157ff53395bbd9f56ca
Implemented DiagramEditor resource disposal/reinitialization based on Eclipse IPartListener2
partHidden/partVisible callbacks.

The important developer-visible changes are:
* Diagram editor  should now use the class org.simantics.modeling.ui.diagramEditor.DiagramEditor as the editor class.
* DiagramEditor extension class attributes require a *viewer=clazz* argument after the *org.simantics.modeling.ui.diagramEditor.DiagramEditor:* class string, where clazz is something inherited from *org.simantics.modeling.ui.diagramEditor.DiagramViewer.
* DiagramViewer.getInputValidator() is now public
* Eclipse command handlers or any other code comparing EditorPart instances to *org.simantics.modeling.ui.diagramEditor.DiagramViewer* must be changed to compare to *org.simantics.modeling.ui.diagramEditor.DiagramEditor* and get the viewer through DiagramEditor.getViewer().

fixes #3213

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@24212 ac1ea38d-2e2b-0410-8846-a27921b304fc
org.simantics.sysdyn.ui/plugin.xml
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/ShowModuleHandler.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/listeners/SysdynPlaybackExperimentListener.java