Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

set Rete visualization to a safer default

  • Loading branch information...
commit 13302d48615e7e2b38dd5f2dedd829c7a46be47a 1 parent cfd2741
@istvanrath istvanrath authored
View
9 ...ery.tooling.ui.retevis/src/org/eclipse/incquery/tooling/ui/retevis/views/ReteVisView.java
@@ -15,10 +15,9 @@
import org.eclipse.gef4.zest.core.viewers.GraphViewer;
import org.eclipse.gef4.zest.core.viewers.IZoomableWorkbenchPart;
import org.eclipse.gef4.zest.core.widgets.ZestStyles;
-import org.eclipse.gef4.zest.layouts.LayoutAlgorithm;
-import org.eclipse.gef4.zest.layouts.algorithms.CompositeLayoutAlgorithm;
import org.eclipse.gef4.zest.layouts.algorithms.HorizontalShiftAlgorithm;
import org.eclipse.gef4.zest.layouts.algorithms.SugiyamaLayoutAlgorithm;
+import org.eclipse.gef4.zest.layouts.algorithms.TreeLayoutAlgorithm;
import org.eclipse.incquery.runtime.exception.IncQueryException;
import org.eclipse.incquery.runtime.rete.boundary.ReteBoundary;
import org.eclipse.incquery.tooling.ui.queryexplorer.content.matcher.ObservablePatternMatcher;
@@ -95,9 +94,9 @@ public void selectionChanged(IWorkbenchPart part, ISelection selection) {
// graphViewer.setInput( pm.getMatcher().getEngine().getReteEngine().getBoundary() );
SugiyamaLayoutAlgorithm sugiyamaAlgorithm = new SugiyamaLayoutAlgorithm();
HorizontalShiftAlgorithm shiftAlgorithm = new HorizontalShiftAlgorithm();
- graphViewer.setLayoutAlgorithm(new CompositeLayoutAlgorithm(new LayoutAlgorithm[] {
- sugiyamaAlgorithm, shiftAlgorithm }));
- // graphViewer.setLayoutAlgorithm(new TreeLayoutAlgorithm());
+ //graphViewer.setLayoutAlgorithm(new CompositeLayoutAlgorithm(new LayoutAlgorithm[] {
+ // sugiyamaAlgorithm, shiftAlgorithm }));
+ graphViewer.setLayoutAlgorithm(new TreeLayoutAlgorithm());
// graphViewer.setLayoutAlgorithm(new SpringLayoutAlgorithm());
// graphViewer.setLayoutAlgorithm(new RadialLayoutAlgorithm());
// graphViewer.setLayoutAlgorithm(new SpaceTreeLayoutAlgorithm());
Please sign in to comment.
Something went wrong with that request. Please try again.