Examples of ActionRegistry


Examples of com.sardak.antform.util.ActionRegistry

      e.printStackTrace();
    }
   
    Control control = new Control(new CallbackTest(), "Configure FTP Servers", null, null, false);
    ControlPanel panel = control.getPanel();
    ActionRegistry actionRegistry = new ActionRegistry(this);
   
    ButtonBar bar = new ButtonBar();
    bar.addConfiguredButton(new Button("Add an FTP server", "addserver", ActionType.OK));
    bar.addConfiguredButton(new Button("Remove an FTP server", "removeServer", ActionType.OK));
    bar.addToControlPanel(panel);
View Full Code Here

Examples of com.sardak.antform.util.ActionRegistry

//  public void invokeTarget(String target, boolean background) {
//  }

  public ActionRegistry getActionRegistry() {
    return new ActionRegistry(null);
  }
View Full Code Here

Examples of com.sardak.antform.util.ActionRegistry

      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (Exception e) {
      e.printStackTrace();
    }
   
    ActionRegistry actionRegistry = new ActionRegistry(this);
   
    Control control = new Control(new CallbackTest(), "Tree component test", null, null, false);
    ControlPanel panel = control.getPanel();
    CheckSelectionProperty csh = new CheckSelectionProperty();
    csh.setLabel("a multiselect");
View Full Code Here

Examples of com.sardak.antform.util.ActionRegistry

    this.actionSource = actionSource;
  }

  public ActionRegistry getActionRegistry() {
    if (actionRegistry == null) {
      actionRegistry = new ActionRegistry(this);
    }
    return actionRegistry;
  }
View Full Code Here

Examples of gov.nara.nwts.ftapp.filetest.ActionRegistry

  boolean overwrite = true;
  boolean listfilters = false;
  boolean listparams = false;
 
  public ActionRegistry getActionRegistry(FTDriver dt) {
    return new ActionRegistry(dt, false);
  }
View Full Code Here

Examples of gov.nara.nwts.ftapp.filetest.ActionRegistry

  public boolean getImporterForceKey() {
    return importPanel.forceKey.isEnabled() && importPanel.forceKey.isSelected();
  }
 
  protected ActionRegistry getActionRegistry() {
    return new ActionRegistry(this, modifyAllowed);
  }
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry

    }

    @SuppressWarnings("unchecked")
    protected void createActions() {
        super.createActions();
        ActionRegistry registry = getActionRegistry();

        IAction action = new DirectEditAction((IWorkbenchPart) this);
        registry.registerAction(action);
        getSelectionActions().add(action.getId());

        action = new AlignmentAction((IWorkbenchPart) this,
                PositionConstants.LEFT);
        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.RIGHT);
        registry.registerAction(action);
        getSelectionActions().add(action.getId());

        action = new AlignmentAction((IWorkbenchPart) this,
                PositionConstants.TOP);
        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());
    }
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry

    }

    @SuppressWarnings("unchecked")
    protected void createActions() {
        super.createActions();
        ActionRegistry registry = getActionRegistry();

        Collection<BoxAction> actions = PrintingPlugin.getBoxExtensionActions(this);

        for( IAction action : actions ) {
            registry.registerAction(action);
            getSelectionActions().add(action.getId());
        }

    }
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry

  }

  @Override
  @SuppressWarnings("unchecked")
  public void createActions() {
    ActionRegistry registry = getActionRegistry();
    IAction action;

    action = new UndoAction(this);
    registry.registerAction(action);
    getStackActions().add(action.getId());

    action = new RedoAction(this);
    registry.registerAction(action);
    getStackActions().add(action.getId());

    action = new SelectAllAction(this) {
      {
        /*
         * Somehow it did not work to set a transparent color, let's use
         * the standard marquee icon for the moment
         */
        setHoverImageDescriptor(SharedImages.DESC_MARQUEE_TOOL_16);
        setImageDescriptor(SharedImages.DESC_MARQUEE_TOOL_16);
      }
    };
    registry.registerAction(action);

    action = new SXEDeleteAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());

    action = new SaveAction(this);
    registry.registerAction(action);
    getPropertyActions().add(action.getId());

    registry.registerAction(new PrintAction(this));

    action = new CopyRecordAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());

    action = new PasteRecordAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
  }
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry

   *
   * @see org.eclipse.gef.ui.parts.GraphicalEditor#createActions()
   */
  protected void createActions() {
    super.createActions();
    ActionRegistry registry = getActionRegistry();
    ISharedImages sharedImages = PlatformUI.getWorkbench()
        .getSharedImages();

    IAction action;

    action = new DesignerUndoRedoAction(true, this);
    action.setImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_UNDO));
    action.setDisabledImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_UNDO_DISABLED));
    action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_UNDO);
    action.setId(IWorkbenchCommandConstants.EDIT_UNDO);
    getSite().getKeyBindingService().registerAction(action);
    registry.registerAction(action);

    action = new DesignerUndoRedoAction(false, this);
    action.setImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_REDO));
    action.setDisabledImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_REDO_DISABLED));
    action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_REDO);
    action.setId(IWorkbenchCommandConstants.EDIT_REDO);
    getSite().getKeyBindingService().registerAction(action);
    registry.registerAction(action);

    action = new DeleteAction(this);
    action.setImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
    action.setDisabledImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_DELETE_DISABLED));
    action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_DELETE);
    action.setId(IWorkbenchCommandConstants.EDIT_DELETE);
    getSite().getKeyBindingService().registerAction(action);
    this.getSelectionActions().add(action.getId());
    registry.registerAction(action);

    action = new CopyAction(this);
    action.setImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
    action.setDisabledImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_COPY_DISABLED));
    action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_COPY);
    action.setId(IWorkbenchCommandConstants.EDIT_COPY);
    getSite().getKeyBindingService().registerAction(action);
    this.getSelectionActions().add(action.getId());
    registry.registerAction(action);

    action = new CutAction(this);
    action.setImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_CUT));
    action.setDisabledImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_CUT_DISABLED));
    action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_CUT);
    action.setId(IWorkbenchCommandConstants.EDIT_CUT);
    getSite().getKeyBindingService().registerAction(action);
    this.getSelectionActions().add(action.getId());
    registry.registerAction(action);

    action = new PasteAction(this);
    action.setImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_PASTE));
    action.setDisabledImageDescriptor(sharedImages
        .getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED));
    action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_PASTE);
    action.setId(IWorkbenchCommandConstants.EDIT_PASTE);
    getSite().getKeyBindingService().registerAction(action);
    this.getSelectionActions().add(action.getId());
    registry.registerAction(action);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.