From: villberg Date: Fri, 2 Jul 2010 13:32:29 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16489 ac1ea38d-2e2b... X-Git-Tag: simantics-1.2.0~186 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=d83ec2a7a6d9e63d13ae3a5898bce8c45970aab8;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16489 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java index f3ee77c0..4251e9bf 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/editor/DiagramViewer.java @@ -7,6 +7,7 @@ import org.eclipse.ui.IWorkbenchPartSite; import org.simantics.browsing.ui.swt.IPropertyPage; import org.simantics.db.ReadGraph; import org.simantics.db.Session; +import org.simantics.db.common.ResourceArray; import org.simantics.diagram.adapter.FlagClassFactory; import org.simantics.diagram.handler.CopyPasteHandler; import org.simantics.diagram.stubs.DiagramResource; @@ -79,8 +80,8 @@ public class DiagramViewer extends org.simantics.modeling.ui.diagramEditor.Diagr @Override protected void addStructureParticipants(ICanvasContext ctx) { - structuralPath = getResourceInput().getResourceArray().removeFromBeginning(1); - ctx.add(new WorkbenchStructuralSelectionProvider2(swt, getSite(), structuralPath)); +// structuralPath = getResourceInput().getResourceArray().removeFromBeginning(1); + ctx.add(new WorkbenchStructuralSelectionProvider2(swt, getSite(), ResourceArray.EMPTY)); } @Override