From: Tuukka Lehtonen Date: Mon, 22 Jan 2018 11:15:04 +0000 (+0200) Subject: Removed graphviz dependency from org.simantics.browsing.ui.model X-Git-Tag: v1.43.0~136^2~619 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F1395%2F2;p=simantics%2Fplatform.git Removed graphviz dependency from org.simantics.browsing.ui.model refs #7721 Change-Id: Ie4aec36287f8f37d11a75d560180350b283fbad4 --- diff --git a/bundles/org.simantics.browsing.ui.model/META-INF/MANIFEST.MF b/bundles/org.simantics.browsing.ui.model/META-INF/MANIFEST.MF index 2562611bb..c37801303 100644 --- a/bundles/org.simantics.browsing.ui.model/META-INF/MANIFEST.MF +++ b/bundles/org.simantics.browsing.ui.model/META-INF/MANIFEST.MF @@ -5,11 +5,6 @@ Bundle-SymbolicName: org.simantics.browsing.ui.model Bundle-Version: 1.0.0.qualifier Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Require-Bundle: org.simantics.browsing.ui.common;bundle-version="1.1.0", - org.simantics.db.layer0;bundle-version="1.1.0", - org.eclipse.jface;bundle-version="3.6.0", - gnu.trove3;bundle-version="3.0.3", - org.simantics.graphviz;bundle-version="1.1.0", - org.simantics.graphviz.ui;bundle-version="1.1.0", org.simantics.ui;bundle-version="1.0.0", org.slf4j.api Export-Package: org.simantics.browsing.ui.model, diff --git a/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/browsecontexts/BrowseContext.java b/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/browsecontexts/BrowseContext.java index e57bfacca..42ac58420 100644 --- a/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/browsecontexts/BrowseContext.java +++ b/bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/browsecontexts/BrowseContext.java @@ -22,9 +22,7 @@ import java.util.Map; import java.util.Set; import org.eclipse.jface.resource.ImageDescriptor; -import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Event; -import org.eclipse.swt.widgets.Shell; import org.simantics.browsing.ui.BuiltinKeys; import org.simantics.browsing.ui.CheckedState; import org.simantics.browsing.ui.NodeContext; @@ -63,9 +61,6 @@ import org.simantics.db.exception.DatabaseException; import org.simantics.db.exception.ResourceNotFoundException; import org.simantics.db.layer0.variable.Variable; import org.simantics.db.request.Read; -import org.simantics.graphviz.Graph; -import org.simantics.graphviz.Node; -import org.simantics.graphviz.ui.GraphvizComponent; import org.simantics.scl.reflection.OntologyVersions; import org.simantics.viewpoint.ontology.ViewpointResource; import org.slf4j.Logger; @@ -469,36 +464,6 @@ public class BrowseContext { return tooltip; return null; } - - private Graph toGraph() { - Graph graph = new Graph(); - new Node(graph, "Foo"); - return graph; - } - - @SuppressWarnings("unused") - private void visualize() { - final Graph graph = toGraph(); - - // Show it - new Thread() { - public void run() { - final Display display = new Display(); - final Shell shell = new Shell(display); - - GraphvizComponent comp = new GraphvizComponent(shell, 0); - comp.setGraph(graph); - - comp.setBounds(0, 0, 800, 600); - shell.pack(); - shell.open (); - while (!shell.isDisposed()) { - if (!display.readAndDispatch()) display.sleep(); - } - display.dispose(); - } - }.start(); - } @Override public int hashCode() {