X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FdiagramEditor%2FDiagramViewerLoadJob.java;h=85f0dbbe7b432f35548a38488fa30491407036a9;hb=560d8aa2e37cb6b0249aec6d7e96e67d5a64c59f;hp=dcadd4d9130cb872aca11a096066e46412f9a1fd;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/DiagramViewerLoadJob.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/DiagramViewerLoadJob.java index dcadd4d91..85f0dbbe7 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/DiagramViewerLoadJob.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/DiagramViewerLoadJob.java @@ -11,6 +11,8 @@ *******************************************************************************/ package org.simantics.modeling.ui.diagramEditor; +import java.util.Collections; + import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; @@ -74,6 +76,8 @@ public class DiagramViewerLoadJob extends DatabaseJob { mon.worked(10); END(task); + viewer.selectionProvider.fireSelection(Collections.emptyList()); + // Zoom to fit if no previous view transform is available task = BEGIN("DV.scheduleZoomToFit"); viewer.scheduleZoomToFit(diagram);