};
CompositeLayoutAlgorithm algorithm = new CompositeLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING, new LayoutAlgorithm[] {
new DirectedGraphLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING),
new HorizontalShift(LayoutStyles.NO_LAYOUT_NODE_RESIZING) });
// directedGraphLayoutAction = new LayoutAction(this.workbenchPart, new DirectedGraphLayoutAlgorithm(
// LayoutStyles.NO_LAYOUT_NODE_RESIZING)) {
directedGraphLayoutAction = new LayoutAction(this.workbenchPart, algorithm) {
/**
* @see org.eclipse.jface.action.Action#getId()
*/
@Override
public String getId() {
return DIRECTED_GRAPH_LAYOUT_ACTION_ID;
}
/**
* @see org.eclipse.jface.action.Action#getText()
*/
@Override
public String getText() {
return DIRECTED_GRAPH_LAYOUT_ACTION_ID;
}
};
gridLayoutAction = new LayoutAction(this.workbenchPart, new GridLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING)) {
/**
* @see org.eclipse.jface.action.Action#getId()
*/
@Override
public String getId() {
return GRID_LAYOUT_ACTION_ID;
}
/**
* @see org.eclipse.jface.action.Action#getText()
*/
@Override
public String getText() {
return GRID_LAYOUT_ACTION_ID;
}
};
horizontalLayoutAction = new LayoutAction(this.workbenchPart, new HorizontalLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING)) {
/**
* @see org.eclipse.jface.action.Action#getId()
*/
@Override
public String getId() {
return HORIZONTAL_LAYOUT_ACTION_ID;
}
/**
* @see org.eclipse.jface.action.Action#getText()
*/
@Override
public String getText() {
return HORIZONTAL_LAYOUT_ACTION_ID;
}
};
verticalLayoutAction = new LayoutAction(this.workbenchPart, new VerticalLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING)) {
/**
* @see org.eclipse.jface.action.Action#getId()
*/
@Override
public String getId() {
return VERTICAL_LAYOUT_ACTION_ID;
}
/**
* @see org.eclipse.jface.action.Action#getText()
*/
@Override
public String getText() {
return VERTICAL_LAYOUT_ACTION_ID;
}
};
horizontalShiftLayoutAction = new LayoutAction(this.workbenchPart, new HorizontalShift(LayoutStyles.NO_LAYOUT_NODE_RESIZING)) {
/**
* @see org.eclipse.jface.action.Action#getId()
*/
@Override