// GridLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
// createLayoutMenuAction("Horizontal", new
// HorizontalLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
horizontalTree = createLayoutMenuAction("Horizontal Tree", new HorizontalTreeLayoutAlgorithm(
LayoutStyles.NO_LAYOUT_NODE_RESIZING));
radialLayout = createLayoutMenuAction("Radial", new RadialLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
springLayout = createLayoutMenuAction("Spring", new SpringLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
// createLayoutMenuAction("Vertical", new
// VerticalLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING));
verticalTree = createLayoutMenuAction("Vertical Tree", new TreeLayoutAlgorithm(
LayoutStyles.NO_LAYOUT_NODE_RESIZING));
/*
* showLegendAction = new Action("Show UI Legend") { public void run() {
* RouteGraphLegendPopup popup = new
* RouteGraphLegendPopup(getEditor().getSite().getShell());
* popup.open(); } };
*/
selectAllAction = new Action("Select &All") {
/*
* s (non-Javadoc)
*
* @see org.eclipse.jface.action.Action#run()
*/
@Override
public void run() {
// TODO
}
};
showIconAction = new Action("Show &Icon", SWT.CHECK) {
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.action.Action#run()
*/
@Override
public void run() {
graphLabelProvider.setShowIcon(isChecked());
}
};
showIconAction.setChecked(true);
wrapLabelAction = new Action("&Wrap Label", SWT.CHECK) {
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.action.Action#run()
*/
@Override
public void run() {
graphLabelProvider.setWrapLabel(isChecked());
}
};
wrapLabelAction.setChecked(true);
radialLayoutAction = new Action("&Radial Layout", SWT.CHECK) {
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.action.Action#run()
*/
@Override
public void run() {
if (isChecked()) {
viewer.setLayoutAlgorithm(new CompositeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING, //
new LayoutAlgorithm[] { //
new RadialLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING),
new BigHorizontalShift(LayoutStyles.NO_LAYOUT_NODE_RESIZING), }));
} else {
viewer.setLayoutAlgorithm(new CompositeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING /*
* |