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,
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;
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;
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() {