Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore license headers for Zest layout snippets #678

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/*******************************************************************************
* Copyright 2005, 2025 CHISEL Group, University of Victoria, Victoria, BC,
* Canada.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* The Chisel Group, University of Victoria
* Mateusz Matela <mateusz.matela@gmail.com> - [tree] Add Space Tree support to Graph widget - https://bugs.eclipse.org/bugs/show_bug.cgi?id=277534
******************************************************************************/
package org.eclipse.zest.examples.layouts;

import org.eclipse.swt.SWT;
Expand Down Expand Up @@ -25,18 +39,18 @@
public static void main(String[] args) {
Display d = new Display();
Shell shell = new Shell(d);
shell.setText("Custom Layout Example");

Check warning on line 42 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/CustomLayout.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
shell.setLayout(new FillLayout());
shell.setSize(400, 400);

Graph g = new Graph(shell, SWT.NONE);

GraphNode n = new GraphNode(g, SWT.NONE);
n.setText("Paper");

Check warning on line 49 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/CustomLayout.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GraphNode n2 = new GraphNode(g, SWT.NONE);
n2.setText("Rock");

Check warning on line 51 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/CustomLayout.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GraphNode n3 = new GraphNode(g, SWT.NONE);
n3.setText("Scissors");

Check warning on line 53 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/CustomLayout.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
new GraphConnection(g, SWT.NONE, n, n2);
new GraphConnection(g, SWT.NONE, n2, n3);
new GraphConnection(g, SWT.NONE, n3, n);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*******************************************************************************
* Copyright 2005, 2025 CHISEL Group, University of Victoria, Victoria, BC, Canada.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Ian Bull
*******************************************************************************/
package org.eclipse.zest.examples.layouts;

import java.util.List;
Expand Down Expand Up @@ -31,7 +43,7 @@
// Create the shell
Display d = new Display();
Shell shell = new Shell(d);
shell.setText("GraphSnippet1");

Check warning on line 46 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 10;
shell.setLayout(gridLayout);
Expand All @@ -51,19 +63,19 @@
g.setExpandCollapseManager(new DAGExpandCollapseManager());

GraphNode root = new GraphNode(g, SWT.NONE);
root.setText("Root");

Check warning on line 66 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GraphNode a = new GraphNode(g, SWT.NONE);
a.setText("A");

Check warning on line 68 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GraphNode b = new GraphNode(g, SWT.NONE);
b.setText("B");

Check warning on line 70 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GraphNode c = new GraphNode(g, SWT.NONE);
c.setText("C");

Check warning on line 72 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GraphNode e = new GraphNode(g, SWT.NONE);
e.setText("D");

Check warning on line 74 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GraphNode f = new GraphNode(g, SWT.NONE);
f.setText("E");

Check warning on line 76 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GraphNode h = new GraphNode(g, SWT.NONE);
h.setText("F");

Check warning on line 78 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

new GraphConnection(g, ZestStyles.CONNECTIONS_DIRECTED, root, a);
new GraphConnection(g, ZestStyles.CONNECTIONS_DIRECTED, root, b);
Expand All @@ -78,17 +90,17 @@
hookMenu(g);

final Button buttonTopDown = new Button(shell, SWT.FLAT);
buttonTopDown.setText("TOP_DOWN");

Check warning on line 93 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

final Button buttonBottomUp = new Button(shell, SWT.FLAT);
buttonBottomUp.setText("BOTTOM_UP");

Check warning on line 96 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
buttonBottomUp.setLayoutData(new GridData());

final Button buttonLeftRight = new Button(shell, SWT.FLAT);
buttonLeftRight.setText("LEFT_RIGHT");

Check warning on line 100 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

final Button buttonRightLeft = new Button(shell, SWT.FLAT);
buttonRightLeft.setText("RIGHT_LEFT");

Check warning on line 103 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

SelectionAdapter buttonListener = new SelectionAdapter() {
@Override
Expand All @@ -111,7 +123,7 @@
}

private static void hookMenu(final Graph g) {
MenuManager menuMgr = new MenuManager("#PopupMenu");

Check warning on line 126 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

Action expandAction = new Action() {
@Override
Expand All @@ -123,7 +135,7 @@
}
}
};
expandAction.setText("expand");

Check warning on line 138 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(expandAction);

Action collapseAction = new Action() {
Expand All @@ -136,7 +148,7 @@
}
}
};
collapseAction.setText("collapse");

Check warning on line 151 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/DAGExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(collapseAction);

g.setMenu(menuMgr.createContextMenu(g));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*******************************************************************************
* Copyright 2005, 2025 CHISEL Group, University of Victoria, Victoria, BC, Canada.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* The Chisel Group, University of Victoria
* Mateusz Matela <mateusz.matela@gmail.com> - [tree] Add Space Tree support to Graph widget - https://bugs.eclipse.org/bugs/show_bug.cgi?id=277534
*******************************************************************************/
package org.eclipse.zest.examples.layouts;

import org.eclipse.swt.SWT;
Expand All @@ -16,20 +29,20 @@
// Create the shell
Display d = new Display();
Shell shell = new Shell(d);
shell.setText("GraphSnippet1");

Check warning on line 32 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/RadialLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
shell.setLayout(new FillLayout());
shell.setSize(500, 500);

final Graph g = new Graph(shell, SWT.NONE);
g.setSize(500, 500);
GraphNode root = new GraphNode(g, SWT.NONE);
root.setText("Root");

Check warning on line 39 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/RadialLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
for (int i = 0; i < 3; i++) {
GraphNode n = new GraphNode(g, SWT.NONE);
n.setText("1 - " + i);

Check warning on line 42 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/RadialLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
for (int j = 0; j < 3; j++) {
GraphNode n2 = new GraphNode(g, SWT.NONE);
n2.setText("2 - " + j);

Check warning on line 45 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/RadialLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
new GraphConnection(g, SWT.NONE, n, n2).setWeight(-1);
}
new GraphConnection(g, SWT.NONE, root, n);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*******************************************************************************
* Copyright 2005, 2025 CHISEL Group, University of Victoria, Victoria, BC, Canada.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* The Chisel Group, University of Victoria
* Mateusz Matela <mateusz.matela@gmail.com> - [tree] Add Space Tree support to Graph widget - https://bugs.eclipse.org/bugs/show_bug.cgi?id=277534
*******************************************************************************/
package org.eclipse.zest.examples.layouts;

import java.util.List;
Expand Down Expand Up @@ -28,7 +41,7 @@
public static void main(String[] args) {
Display d = new Display();
Shell shell = new Shell(d);
shell.setText("GraphSnippet1");

Check warning on line 44 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeBuilding.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
shell.setLayout(new FillLayout());
shell.setSize(400, 400);

Expand All @@ -44,7 +57,7 @@

for (int i = 0; i < 20; i++) {
GraphNode graphNode = new GraphNode(g, SWT.NONE);
graphNode.setText("" + i);

Check warning on line 60 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeBuilding.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
}

shell.open();
Expand All @@ -63,7 +76,7 @@
}

private static void hookMenu(final Graph g) {
MenuManager menuMgr = new MenuManager("#PopupMenu");

Check warning on line 79 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeBuilding.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

Action parentAction = new Action() {
@Override
Expand All @@ -76,7 +89,7 @@
}
}
};
parentAction.setText("use as parent");

Check warning on line 92 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeBuilding.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(parentAction);

Action childAction = new Action() {
Expand All @@ -90,7 +103,7 @@
}
}
};
childAction.setText("use as child");

Check warning on line 106 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeBuilding.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(childAction);

Action expandAction = new Action() {
Expand All @@ -103,7 +116,7 @@
}
}
};
expandAction.setText("expand");

Check warning on line 119 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeBuilding.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(expandAction);

Action collapseAction = new Action() {
Expand All @@ -116,7 +129,7 @@
}
}
};
collapseAction.setText("collapse");

Check warning on line 132 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeBuilding.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(collapseAction);

g.setMenu(menuMgr.createContextMenu(g));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*******************************************************************************
* Copyright 2005, 2025 CHISEL Group, University of Victoria, Victoria, BC, Canada.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* The Chisel Group, University of Victoria
* Mateusz Matela <mateusz.matela@gmail.com> - [tree] Add Space Tree support to Graph widget - https://bugs.eclipse.org/bugs/show_bug.cgi?id=277534
*******************************************************************************/
package org.eclipse.zest.examples.layouts;

import java.util.List;
Expand Down Expand Up @@ -34,7 +47,7 @@
public static void main(String[] args) {
Display d = new Display();
Shell shell = new Shell(d);
shell.setText("GraphSnippet1");

Check warning on line 50 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
shell.setLayout(new FillLayout());
shell.setSize(400, 400);

Expand All @@ -53,7 +66,7 @@

// g.setExpandCollapseManager(new DAGExpandCollapseManager());
// g.setLayoutAlgorithm(new TreeLayoutAlgorithm(), true);
createTree(g, "!", 5, 5);

Check warning on line 69 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

hookMenu(g);

Expand All @@ -78,7 +91,7 @@
}

private static void hookMenu(final Graph g) {
MenuManager menuMgr = new MenuManager("#PopupMenu");

Check warning on line 94 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(SpaceTreeExample::fillContextMenu);
g.setMenu(menuMgr.createContextMenu(g));
Expand All @@ -96,7 +109,7 @@
g.setExpanded(node, true);
}
};
expandAction.setText("expand");

Check warning on line 112 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(expandAction);
}
if (g.canCollapse(node)) {
Expand All @@ -106,7 +119,7 @@
g.setExpanded(node, false);
}
};
collapseAction.setText("collapse");

Check warning on line 122 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(collapseAction);
}
Action disposeAction = new Action() {
Expand All @@ -115,7 +128,7 @@
node.dispose();
}
};
disposeAction.setText("dispose");

Check warning on line 131 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(disposeAction);

Action asSourceAction = new Action() {
Expand All @@ -125,7 +138,7 @@
addConnection();
}
};
asSourceAction.setText("use as source");

Check warning on line 141 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(asSourceAction);

Action asTargetAction = new Action() {
Expand All @@ -135,7 +148,7 @@
addConnection();
}
};
asTargetAction.setText("use as target");

Check warning on line 151 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(asTargetAction);
}
if (selection.get(0) instanceof GraphConnection) {
Expand All @@ -146,7 +159,7 @@
connection.dispose();
}
};
removeAction.setText("remove");

Check warning on line 162 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(removeAction);
}
}
Expand All @@ -155,10 +168,10 @@
@Override
public void run() {
GraphNode n = new GraphNode(g, SWT.NONE);
n.setText("new!");

Check warning on line 171 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
}
};
addNode.setText("add node");

Check warning on line 174 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(addNode);

if (!changesSeries) {
Expand All @@ -169,7 +182,7 @@
changesSeries = true;
}
};
startChangesSeries.setText("start changes");

Check warning on line 185 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(startChangesSeries);
} else {
Action endChangesSeries = new Action() {
Expand All @@ -179,7 +192,7 @@
changesSeries = false;
}
};
endChangesSeries.setText("end changes");

Check warning on line 195 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/SpaceTreeExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(endChangesSeries);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*******************************************************************************
* Copyright 2005, 2025 CHISEL Group, University of Victoria, Victoria, BC, Canada.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* The Chisel Group, University of Victoria
* Mateusz Matela <mateusz.matela@gmail.com> - [tree] Add Space Tree support to Graph widget - https://bugs.eclipse.org/bugs/show_bug.cgi?id=277534
*******************************************************************************/
package org.eclipse.zest.examples.layouts;

import java.util.List;
Expand Down Expand Up @@ -31,7 +44,7 @@
// Create the shell
Display d = new Display();
Shell shell = new Shell(d);
shell.setText("TreeLayoutExample");

Check warning on line 47 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 10;
shell.setLayout(gridLayout);
Expand All @@ -47,18 +60,18 @@
g.setSize(500, 500);

GraphNode root = new GraphNode(g, SWT.NONE);
root.setText("Root");

Check warning on line 63 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

GraphNode lastNode = null;
for (int i = 0; i < 3; i++) {
GraphNode n = new GraphNode(g, SWT.NONE);
n.setText("1 - " + i);

Check warning on line 68 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
if (lastNode != null) {
new GraphConnection(g, SWT.NONE, n, lastNode).setDirected(true);
}
for (int j = 0; j < 1; j++) {
GraphNode n2 = new GraphNode(g, SWT.NONE);
n2.setText("2 - " + j);

Check warning on line 74 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
GraphConnection c = new GraphConnection(g, SWT.NONE, n, n2);
c.setWeight(-1);
c.setDirected(true);
Expand All @@ -71,17 +84,17 @@
hookMenu(g);

final Button buttonTopDown = new Button(shell, SWT.FLAT);
buttonTopDown.setText("TOP_DOWN");

Check warning on line 87 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

final Button buttonBottomUp = new Button(shell, SWT.FLAT);
buttonBottomUp.setText("BOTTOM_UP");

Check warning on line 90 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
buttonBottomUp.setLayoutData(new GridData());

final Button buttonLeftRight = new Button(shell, SWT.FLAT);
buttonLeftRight.setText("LEFT_RIGHT");

Check warning on line 94 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

final Button buttonRightLeft = new Button(shell, SWT.FLAT);
buttonRightLeft.setText("RIGHT_LEFT");

Check warning on line 97 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

SelectionAdapter buttonListener = new SelectionAdapter() {
@Override
Expand All @@ -108,7 +121,7 @@
buttonRightLeft.addSelectionListener(buttonListener);

final Button resizeButton = new Button(shell, SWT.CHECK);
resizeButton.setText("Resize");

Check warning on line 124 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
resizeButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
Expand All @@ -117,7 +130,7 @@
});

final Button nodeSpaceButton = new Button(shell, SWT.CHECK);
nodeSpaceButton.setText("Set node space");

Check warning on line 133 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
nodeSpaceButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
Expand All @@ -134,7 +147,7 @@
}

private static void hookMenu(final Graph g) {
MenuManager menuMgr = new MenuManager("#PopupMenu");

Check warning on line 150 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:

Action expandAction = new Action() {
@Override
Expand All @@ -146,7 +159,7 @@
}
}
};
expandAction.setText("expand");

Check warning on line 162 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(expandAction);

Action collapseAction = new Action() {
Expand All @@ -159,7 +172,7 @@
}
}
};
collapseAction.setText("collapse");

Check warning on line 175 in org.eclipse.zest.examples/src/org/eclipse/zest/examples/layouts/TreeLayoutExample.java

View check run for this annotation

Jenkins - Eclipse GEF / Java Compiler

tycho-compiler:compile

NORMAL:
menuMgr.add(collapseAction);

g.setMenu(menuMgr.createContextMenu(g));
Expand Down
Loading