Examples of IAction


Examples of org.jamesii.gui.application.action.IAction

    Icon deleteIcon =
        IconManager.getIcon(IconIdentifier.DELETE_SMALL, "Delete entry");

    // add variable on the current level

    IAction addVariableAction =
        new AbstractAction("variables.variable.add", "Add variable",
            addVariableIcon, new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            // synchronized (this) {
            // }
          }
        };
    addVariableAction.setEnabled(true);

    // add sub level

    IAction addLevelAction =
        new AbstractAction("variables.sublevel.add", "Add sub level",
            addLevelIcon, new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            // synchronized (this) {
            // }
          }
        };
    addLevelAction.setEnabled(true);

    // add optimization

    IAction addOptimizationAction =
        new AbstractAction("variables.optimization.add", "Add optimization",
            addOptimizationIcon, new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            // synchronized (this) {
            // }
          }
        };
    addOptimizationAction.setEnabled(true);

    // remove variable / sub level / optimization

    IAction addORemoveAction =
        new AbstractAction("variables.delete", "Delete entry", deleteIcon,
            new String[] { "" }, null, null, this) {

          @Override
          public void execute() {
            // synchronized (this) {
            // }
          }
        };
    addORemoveAction.setEnabled(true);

    return result;
  }
View Full Code Here

Examples of org.paquitosoft.lml.model.action.IAction

     * @param entity
     * @return saved entity
     * @throws InternalErrorException (DuplicateInstanceException, ReflectionException)
     */
    public <T> T save(T entity) throws InternalErrorException {
        IAction action = new PersistAction(entity, PERSIST_MODE_SAVE);
        return (T) new ActionProcessor(action).processAction();
    }
View Full Code Here

Examples of org.pentaho.platform.api.action.IAction

    }
    return cg;
  }

  public IAction getAction( String type, String perspectiveName ) {
    IAction action = null;
    String beanId = ( perspectiveName == null ) ? type : type + "." + perspectiveName; //$NON-NLS-1$
    try {
      action = (IAction) getBean( beanId, IAction.class );
    } catch ( NoSuchBeanDefinitionException e ) {
      // fallback condition, look for a type agnostic content generator
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.core.model.IAction

  private static PaletteContainer createRenderActionsDrawer(boolean version1) {
    List<ToolEntry> entries = new ArrayList<ToolEntry>();

    IRenderActions exit = new RenderActions();
    IAction action = new Action();
    action.setElementParent(exit);

    WebflowModelLabelDecorator dec = new WebflowModelLabelDecorator();

    PaletteDrawer drawer = new PaletteDrawer("Render Actions", null);
    drawer.setInitialState(PaletteDrawer.INITIAL_STATE_OPEN);
View Full Code Here

Examples of org.zkoss.ganttz.util.IAction

                    positionsUpdatingGuard
                            .entranceRequested(new IReentranceCases() {

                                @Override
                                public void ifNewEntrance() {
                                    onNewEntrance(new IAction() {

                                        @Override
                                        public void doAction() {
                                            notifier.setStartDate(
                                                    previousStart,
                                                    previousEnd, newStart);
                                            onEntrance.setStartDate(
                                                    previousStart, previousEnd,
                                                    newStart);
                                        }
                                    });
                                }

                                @Override
                                public void ifAlreadyInside() {
                                    notifier.setStartDate(previousStart,
                                            previousEnd, newStart);

                                }
                            });
                }

                @Override
                public void setNewEnd(final GanttDate previousEnd,
                        final GanttDate newEnd) {
                    positionsUpdatingGuard
                            .entranceRequested(new IReentranceCases() {

                                @Override
                                public void ifNewEntrance() {
                                    onNewEntrance(new IAction() {

                                        @Override
                                        public void doAction() {
                                            notifier.setNewEnd(previousEnd,
                                                    newEnd);
View Full Code Here

Examples of palmed.edit.selection.IAction

        manager_.undo();
    }

    public void testAddTwoMergableActionsDiscardsTheSecondOne()
    {
        final IAction mockOtherAction = (IAction)createMock( IAction.class );
        manager_.add( mockAction_ );
        reset();
        mockAction_.merge( mockOtherAction );
        control( mockAction_ ).setReturnValue( true );
        replay();
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.