]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16489 ac1ea38d-2e2b...
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 2 Jul 2010 13:32:29 +0000 (13:32 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 2 Jul 2010 13:32:29 +0000 (13:32 +0000)
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java

index f3ee77c0ebbaa1c0954fdf4882e64e40e41ca82b..4251e9bf9b5e98fde0d0012c80ec63b864cff288 100644 (file)
@@ -7,6 +7,7 @@ import org.eclipse.ui.IWorkbenchPartSite;
 import org.simantics.browsing.ui.swt.IPropertyPage;\r
 import org.simantics.db.ReadGraph;\r
 import org.simantics.db.Session;\r
+import org.simantics.db.common.ResourceArray;\r
 import org.simantics.diagram.adapter.FlagClassFactory;\r
 import org.simantics.diagram.handler.CopyPasteHandler;\r
 import org.simantics.diagram.stubs.DiagramResource;\r
@@ -79,8 +80,8 @@ public class DiagramViewer extends org.simantics.modeling.ui.diagramEditor.Diagr
 \r
     @Override\r
     protected void addStructureParticipants(ICanvasContext ctx) {\r
-        structuralPath = getResourceInput().getResourceArray().removeFromBeginning(1);\r
-        ctx.add(new WorkbenchStructuralSelectionProvider2(swt, getSite(), structuralPath));\r
+//        structuralPath = getResourceInput().getResourceArray().removeFromBeginning(1);\r
+        ctx.add(new WorkbenchStructuralSelectionProvider2(swt, getSite(), ResourceArray.EMPTY));\r
     }\r
 \r
     @Override\r