From 2f92d2bee87a5d707aae9157ff53395bbd9f56ca Mon Sep 17 00:00:00 2001 From: lehtonen Date: Wed, 8 Feb 2012 22:31:00 +0000 Subject: [PATCH] Added org.simantics.ui.workbench.editor.input.ResourceEditorInputMatchingStrategy to customize the comparisons performed by Eclipse's EditorManager when looking for editor input matches in existing editor tabs. Normally EditorManager matches the following data: * IEditorInput.getName() * IEditorInput.getPersistable().getFactoryId() * IEditorInput.equals With ResourceEditorInput and ResourceEditorInput2 it is not necessary to compare IEditorInput.getName, which currently causes problems since initializing a ResourceEditorInput will not initialize its name properly immediately. And anyway, it is better simply to match against input.equals since the a single resource can only have a single name and the name stored in the editor is just redundant information. Only the input resource identification is important. fixes #3207 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@24182 ac1ea38d-2e2b-0410-8846-a27921b304fc --- org.simantics.sysdyn.ui/plugin.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/org.simantics.sysdyn.ui/plugin.xml b/org.simantics.sysdyn.ui/plugin.xml index 7b2f5227..f5d42d97 100644 --- a/org.simantics.sysdyn.ui/plugin.xml +++ b/org.simantics.sysdyn.ui/plugin.xml @@ -20,6 +20,7 @@ default="false" icon="platform:/plugin/com.famfamfam.silk/icons/plugin.png" id="org.simantics.sysdyn.ui.diagramViewer" + matchingStrategy="org.simantics.ui.workbench.editor.input.ResourceEditorInputMatchingStrategy" name="System dynamic diagram viewer">