Examples of execute()


Examples of org.eclipse.sapphire.ui.diagram.actions.DiagramNodeAddActionHandler.execute()

      {
        DiagramNodeAddActionHandler nodeAddHandler = (DiagramNodeAddActionHandler)handler;
        if (nodeAddHandler.getNodeTemplate().equals(this.nodeTemplate))
        {
          editorPart.setMouseLocation(this.location.x, this.location.y);
          nodeAddHandler.execute(this.diagramPresentation);
          break;
        }
      }
    }
  } 
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.commands.DoubleClickNodeCommand.execute()

          // invalid cursor before the double click cmd is executed.
          // Bypassing the command stack
          //this.getViewer().getEditDomain().getCommandStack().execute(cmd);
          if (cmd.canExecute())
          {
            cmd.execute();
          }
        }
      }
    }
    else
View Full Code Here

Examples of org.eclipse.sisu.equinox.launching.internal.P2ApplicationLauncher.execute()

    @Test(expected = MojoFailureException.class)
    public void exceptionThrownInCaseOfLauncherFailure() throws IOException, AbstractMojoExecutionException {
        // given
        P2ApplicationLauncher launcher = Mockito.mock(P2ApplicationLauncher.class, Mockito.RETURNS_DEEP_STUBS);
        when(launcher.execute(Mockito.anyInt())).thenReturn(137);
        File file = File.createTempFile(UUID.randomUUID().toString(), UUID.randomUUID().toString());
        file.deleteOnExit();

        // when
        CategoryPublisher publisher = CategoryPublisher.builder()
View Full Code Here

Examples of org.eclipse.swt.browser.Browser.execute()

   
    protected void passAttributes()
    {
        if (isBrowserInitialized()) {
            Browser browser = getBrowser();
            browser.execute("javascript:vis.set({"
                + "relaxationVisible: " + ToggleRelaxationAction.getCurrent() + ","
                + "initializer: '" + LayoutInitializerAction.getCurrent().id + "'})");
        }
    }
View Full Code Here

Examples of org.eclipse.swt.program.Program.execute()

      public void widgetSelected( SelectionEvent e ) {
        SharedFile shared_file = getSelectedObject().getSharedFile();
        String extension = FileFormatter.getFileExtension(shared_file.getSharingName());
        Program program = Program.findProgram(extension);
        if (program == null) return;
        program.execute(shared_file.getAbsolutePath());
      }
    });
   
    new MenuItem(upload_selected_menu,SWT.SEPARATOR);
   
View Full Code Here

Examples of org.eclipse.team.internal.ccvs.core.client.RLog.execute()

    public void cvsLogForProject(ICommandOutputListener listener, IProgressMonitor monitor) throws EvolizerException {
        try {
            fCVSSession.open(null);
            RLog rLog = new RLog();
            ICVSRemoteFolder f = fCVSRepositoryLocation.getRemoteFolder(fRemoteModulePath, CVSTag.DEFAULT);
            /*Command.LOG*/rLog.execute(
                    fCVSSession,
                    Command.NO_GLOBAL_OPTIONS,
                    Command.NO_LOCAL_OPTIONS,
                    new ICVSRemoteFolder[]{f},
                    listener,
View Full Code Here

Examples of org.eclipse.ui.ide.undo.CreateFileOperation.execute()

            final String contents = getConfigContent(info, configType);
            final CreateFileOperation fop = new CreateFileOperation(cfg, null,
                    // TODO real encoding?
                    new ByteArrayInputStream(contents.getBytes(Charsets.ISO_8859_1)),
                    "creating file " + cfg.getName());
            fop.execute(monitor, notifier);
            break;
        case INTERNAL:
            break;
        default:
            break;
View Full Code Here

Examples of org.eclipse.ui.ide.undo.CreateFolderOperation.execute()

            if (parent instanceof IFolder && !((IFolder) parent).exists()) {
                createFolderHelper((IFolder) parent, monitor);
            }
            final CreateFolderOperation fop = new CreateFolderOperation(folder, null,
                    "creating folder " + folder.getName());
            fop.execute(monitor, notifier);
        }
    }

}
View Full Code Here

Examples of org.eclipse.ui.ide.undo.CreateProjectOperation.execute()

                final CreateProjectOperation op1 = new CreateProjectOperation(
                        description, WizardMessages.NewProject_windowTitle);
                try {
                    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=219901
                    // Making this undoable would be a bad idea
                    op1.execute(monitor, notifier);

                    newProjectHandle.open(monitor);
                    description.setNatureIds(new String[] { ErlangCore.NATURE_ID });
                    newProjectHandle.setDescription(description, null);
View Full Code Here

Examples of org.eclipse.ui.ide.undo.MoveProjectOperation.execute()

                MoveProjectOperation op = new MoveProjectOperation(
                    entry.getKey(),
                    entry.getValue().toURI(),
                    UIText.SharingWizard_MoveProjectActionLabel);
                try {
                  IStatus result = op.execute(monitor, null);
                  if (!result.isOK())
                    throw new RuntimeException();
                } catch (ExecutionException e) {
                  if (e.getCause() != null)
                    throw new InvocationTargetException(e
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.