Examples of PasteAction


Examples of ca.nengo.ui.actions.PasteAction

      if (clipboardNames.size() == 1) {
        selectionName = clipboardNames.get(0);
      } else {
        selectionName = "selection";
      }
      PasteAction pasteAction = new PasteAction("Paste '" + selectionName + "' here", (NodeContainer)this, false);
      pasteAction.setPosition(posX, posY);
      menu.addAction(pasteAction);
    }
    menu.addAction(new ZoomToFitAction("Zoom to fit", this));
    /*MenuBuilder windowsMenu = menu.addSubMenu("Windows");
    windowsMenu.addAction(new CloseAllWindows("Close all"));
View Full Code Here

Examples of ca.nengo.ui.actions.PasteAction

                @Override
                protected void action() {
                    // look for the active mouse handler. If it exists, it should contain
                    // the current mouse position (from the mousemoved event), so use this
                    // to create a new PasteEvent
                    PasteAction a;
                    MouseHandler mh = MouseHandler.getActiveMouseHandler();
                    if (mh != null) {
                        a = new PasteAction("Paste", (NodeContainer)mh.getWorld(), true);
                        Point2D pos = mh.getMouseMovedRelativePosition();
                        if (pos != null) {
                            a.setPosition(pos.getX(), pos.getY());
                        }
                    } else {
                        a = new PasteAction("Paste", NengoGraphics.getInstance(), true);
                    }
                    a.doAction();
                }
            };
        } else {
            pasteAction = new DisabledAction("Paste", "No object is in the clipboard");
        }
View Full Code Here

Examples of com.onpositive.mapper.actions.PasteAction

     
      copyAction = new CopyAction(this);
      copyAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_COPY);
      addPartPropertyListener((IPropertyChangeListener) copyAction);
      copyAction.setEnabled(false);
      pasteAction = new PasteAction(this);
      pasteAction.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_PASTE);
      addPartPropertyListener((IPropertyChangeListener) pasteAction);
      pasteAction.setEnabled(false);

      registerGlobalActionHandlers(actionBars);
View Full Code Here

Examples of de.ailis.xadrian.actions.PasteAction

        textPane.addCaretListener(this);
        if (textPane.isEditable())
        {
            add(new CutAction(this));
            add(new CopyAction(this));
            add(new PasteAction(this));
            addSeparator();
            add(new SelectAllAction(this));
        }
        else
        {
View Full Code Here

Examples of es.iiia.sgi.actions.PasteAction

        .createFromImage(PlatformUI.getWorkbench().getSharedImages()
            .getImage(ISharedImages.IMG_ETOOL_SAVE_EDIT)));
    saveActionExec = new SaveAction(page.getWorkbenchWindow());
    deleteAction = new DeleteAction(page.getWorkbenchWindow());
    copyAction = new CopyAction(page.getWorkbenchWindow());
    pasteAction = new PasteAction(page.getWorkbenchWindow());
    cutAction = new CutAction(page.getWorkbenchWindow());

    super.init(bars, page);
  }
View Full Code Here

Examples of javax.swing.text.DefaultEditorKit.PasteAction

      }

    });

    jButtonCopiar.addActionListener(new CopyAction());
    jButtonColar.addActionListener(new PasteAction());
    jButtonRecortar.addActionListener(new CutAction());

    jButtonCompilar.addActionListener(new ActionListener() {

      @Override
View Full Code Here

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

        return "Paste " + contentName;
    }

    @Override
    public void redo() throws CannotRedoException {
        PasteAction action = actionManager.getAction(PasteAction.class);

        action.paste(where, content, domain, map);
    }
View Full Code Here

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

        return "Paste " + contentName;
    }

    @Override
    public void redo() throws CannotRedoException {
        PasteAction action = actionManager.getAction(PasteAction.class);

        action.paste(where, content, domain, map);
    }
View Full Code Here

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

        registerAction(new CutProcedureParameterAction(application));
        registerAction(new CopyAction(application));
        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);
       
View Full Code Here

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

        return "Paste " + contentName;
    }

    @Override
    public void redo() throws CannotRedoException {
        PasteAction action = (PasteAction) actionManager.getAction(PasteAction
                .getActionName());

        action.paste(where, content, domain, map);
    }
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.