Examples of UndoAction


Examples of at.bestsolution.drawswf.actions.UndoAction

    }

    //----------------------------------------------------------------------------
    private void addUndoAction( String displayedText, String description, String icon_name, int mnemonicKey, KeyStroke accelerator )
    {
        UndoAction undo_action = new UndoAction(description, icon_name, MainWindow.getDrawingPanel());
        add(undo_action);
    }
View Full Code Here

Examples of at.bestsolution.drawswf.actions.UndoAction

    }
   
//  ----------------------------------------------------------------------------
      private void addUndoAction( String displayedText, String description, String icon_name, int mnemonicKey, KeyStroke accelerator )
      {
          UndoAction undo_action = new UndoAction( displayedText, description, icon_name, MainWindow.getDrawingPanel(), mnemonicKey, accelerator);
          add(undo_action);
      }
View Full Code Here

Examples of cc.sketchchair.core.UndoAction

      }
    } // TODO Auto-generated method stub

    if (shapeSelected && getParentSketch().getSketchGlobals().undo != null)
      getParentSketch().getSketchGlobals().undo
          .addOperation(new UndoAction(this, this.clone(),
              UndoAction.EDIT_SHAPE));

    //if (!shapeSelected)
    this.getCentrePath().selectNodes(mouseX, mouseY);

    if (this.path.getSelectedNodes().size() > 0 && !shapeSelected)
      getParentSketch().getSketchGlobals().undo
          .addOperation(new UndoAction(this, this.clone(),
              UndoAction.EDIT_SHAPE));

  }
View Full Code Here

Examples of net.sourceforge.ganttproject.action.UndoAction

        // mView = new JMenu ();
        mTask = new JMenu();
        mHuman = new JMenu();
        mHelp = new JMenu();
        mCalendar = new JMenu();
        miUndo = new JMenuItem(new UndoAction(getUndoManager(), "16", this));
        mEdit.add(miUndo);
        // miUndo.setEnabled(false);
        miRedo = new JMenuItem(new RedoAction(getUndoManager(), "16", this));
        mEdit.add(miRedo);
        // miRedo.setEnabled(false);
View Full Code Here

Examples of net.sourceforge.ganttproject.action.UndoAction

        bAbout.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                aboutDialog();
            }
        });
        Action undo = new UndoAction(getUndoManager(), options.getIconSize(), this);
        myRolloverActions.add(undo);
        bUndo = new TestGanttRolloverButton(undo);

        Action redo = new RedoAction(getUndoManager(), options.getIconSize(), this);
        myRolloverActions.add(redo);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.action.UndoAction

   {
      if (!entry.hasOwnUndoableManager())
      {
         SquirrelDefaultUndoManager undoManager = new SquirrelDefaultUndoManager();
         Resources res = application.getResources();
         _undoAction = new UndoAction(application, undoManager);
         _redoAction = new RedoAction(application, undoManager);

         JComponent comp = entry.getTextComponent();
         comp.registerKeyboardAction(_undoAction, res.getKeyStroke(_undoAction),
            JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
         comp.registerKeyboardAction(_redoAction, res.getKeyStroke(_redoAction),
            JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);

         entry.setUndoManager(undoManager);
      }
      else
      {
         IUndoHandler undoHandler = entry.createUndoHandler();
         _undoAction = new UndoAction(application, undoHandler.getUndoAction());
         _redoAction = new RedoAction(application, undoHandler.getRedoAction());
      }

      entry.addRedoUndoActionsToSQLEntryAreaMenu(_undoAction, _redoAction);
   }
View Full Code Here

Examples of org.apache.cayenne.modeler.action.UndoAction

        registerAction(new CopyAttributeAction(application));
        registerAction(new CopyRelationshipAction(application));
        registerAction(new CopyProcedureParameterAction(application));
        registerAction(new PasteAction(application));
       
        UndoAction undoAction = new UndoAction(application);
        undoAction.setEnabled(false);
        registerAction(undoAction);
       
        RedoAction redoAction = new RedoAction(application);
        redoAction.setEnabled(false);
        registerAction(redoAction);
View Full Code Here

Examples of org.eclipse.emf.edit.ui.action.UndoAction

  }
 
  protected void initActions(IActionBars actionBars) {
      ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();

      undoAction = new UndoAction(editingDomain);
      undoAction.setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_UNDO));
      actionBars.setGlobalActionHandler(ActionFactory.UNDO.getId(), undoAction);

      redoAction = new RedoAction(editingDomain);
      redoAction.setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_REDO));
View Full Code Here

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

  @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);
View Full Code Here

Examples of org.jboss.aesh.undo.UndoAction

     * Add current text and cursor position to the undo stack
     *
     * @throws IOException if getCursorPosition() fails
     */
    private void addActionToUndoStack() throws IOException {
        UndoAction ua = new UndoAction(buffer.getCursor(), buffer.getLine());
        undoManager.addUndo(ua);
    }
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.