Search in sources :

Example 1 with ToggleConnectionRouterFanCommand

use of org.jboss.tools.hibernate.ui.diagram.editors.command.ToggleConnectionRouterFanCommand in project jbosstools-hibernate by jbosstools.

the class ConnectionRouterFanAction method getCommand.

public Command getCommand() {
    CompoundCommand cc = new CompoundCommand();
    boolean checked = editor.isFanConnectionRouter();
    if (!checked) {
        cc.add(new ToggleConnectionRouterFanCommand(getDiagramViewer()));
    }
    return cc;
}
Also used : ToggleConnectionRouterFanCommand(org.jboss.tools.hibernate.ui.diagram.editors.command.ToggleConnectionRouterFanCommand) CompoundCommand(org.eclipse.gef.commands.CompoundCommand)

Aggregations

CompoundCommand (org.eclipse.gef.commands.CompoundCommand)1 ToggleConnectionRouterFanCommand (org.jboss.tools.hibernate.ui.diagram.editors.command.ToggleConnectionRouterFanCommand)1