Search in sources :

Example 1 with EditAction

use of com.cubrid.cubridmanager.ui.replication.editor.action.EditAction in project cubrid-manager by CUBRID.

the class ReplicationEditor method createActions.

/**
	 * @see org.eclipse.gef.ui.parts.GraphicalEditor#createActions()
	 */
@SuppressWarnings("unchecked")
protected void createActions() {
    super.createActions();
    ActionRegistry registry = getActionRegistry();
    IAction action = new AlignmentAction((IWorkbenchPart) this, PositionConstants.LEFT);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
    action = new AlignmentAction((IWorkbenchPart) this, PositionConstants.RIGHT);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
    action = new AlignmentAction((IWorkbenchPart) this, PositionConstants.CENTER);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
    action = new AlignmentAction((IWorkbenchPart) this, PositionConstants.MIDDLE);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
    action = new AlignmentAction((IWorkbenchPart) this, PositionConstants.BOTTOM);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
    action = new AlignmentAction((IWorkbenchPart) this, PositionConstants.TOP);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
    action = new EditAction((IWorkbenchPart) this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
}
Also used : IAction(org.eclipse.jface.action.IAction) IWorkbenchPart(org.eclipse.ui.IWorkbenchPart) AlignmentAction(org.eclipse.gef.ui.actions.AlignmentAction) EditAction(com.cubrid.cubridmanager.ui.replication.editor.action.EditAction) ActionRegistry(org.eclipse.gef.ui.actions.ActionRegistry)

Aggregations

EditAction (com.cubrid.cubridmanager.ui.replication.editor.action.EditAction)1 ActionRegistry (org.eclipse.gef.ui.actions.ActionRegistry)1 AlignmentAction (org.eclipse.gef.ui.actions.AlignmentAction)1 IAction (org.eclipse.jface.action.IAction)1 IWorkbenchPart (org.eclipse.ui.IWorkbenchPart)1