Examples of run()


Examples of org.eclipse.dltk.ui.actions.AbstractOpenWizardAction.run()

                wizard.cancel();
              }
            }
          }
        });
        action.run();
        return result[0];
      }
    };
    dialog.setExisting(existingContainers.toArray());
    dialog.setTitle(title);
View Full Code Here

Examples of org.eclipse.dltk.ui.dialogs.TimeTriggeredProgressMonitorDialog.run()

      if (this.folders == null)
        this.folders = new ArrayList();
      if (file != null && file.isDirectory()) {
        ProgressMonitorDialog dialog2 = new TimeTriggeredProgressMonitorDialog(null, 500);
        try {
          dialog2.run(true, true, new IRunnableWithProgress() {
            public void run(IProgressMonitor monitor) {
              monitor.beginTask("Searching for man pages", 1);
              performSearch(file);
              monitor.done();
            }
View Full Code Here

Examples of org.eclipse.draw2d.PrintFigureOperation.run()

            // print the neo figure
            Graph g = view.getViewer().getGraphControl();
            PrintFigureOperation p = new PrintFigureOperation( new Printer(
                    data ), g.getContents() );
            p.setPrintMode( PrintFigureOperation.FIT_PAGE );
            p.run( view.getTitle() );
        }
    }
}
View Full Code Here

Examples of org.eclipse.ecf.core.start.IECFStart.run()

              IECFStart clazz = (IECFStart) member.createExecutableExtension(CLASS_ATTRIBUTE);
              // Create job to do start, and schedule
              if (sync) {
                IStatus result = null;
                try {
                  result = clazz.run(new NullProgressMonitor());
                } catch (final Throwable e) {
                  final String message = "startup extension error"; //$NON-NLS-1$
                  logException(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, message, e), message, e);
                }
                if (result != null && !result.isOK())
View Full Code Here

Examples of org.eclipse.ecf.internal.example.collab.actions.URIClientConnectAction.run()

    final String nickName = mainPage.getNicknameText();
    final String containerType = mainPage.getContainerType();
    final boolean autoLogin = mainPage.getAutoLoginFlag();
    try {
      client = new URIClientConnectAction(containerType, groupName, nickName, "", resource, autoLogin); //$NON-NLS-1$
      client.run(null);
    } catch (final Exception e) {
      final String id = ClientPlugin.getDefault().getBundle().getSymbolicName();
      throw new CoreException(new Status(Status.ERROR, id, IStatus.ERROR, NLS.bind(Messages.JoinGroupWizard_COULD_NOT_CONNECT, groupName), e));
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.mylyn.ui.CompoundContextActivationContributionItem.ActivateTaskAction.run()

    elsd.setElements(CompoundContextActivationContributionItem.tasks.toArray());
    if (Window.OK == elsd.open()) {
      ActivateTaskAction action = new CompoundContextActivationContributionItem.ActivateTaskAction();
      action.setShell(shell);
      action.setTask((ITask) elsd.getFirstResult());
      action.run();
    }
  }
}
View Full Code Here

Examples of org.eclipse.ecf.internal.ui.actions.SelectProviderAction.run()

    link.setText("\n   This view is not intended to be opened as a standalone view. Please select one of the <a>IM Providers</a> to open a populated view."); //$NON-NLS-1$
    link.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        SelectProviderAction action = new SelectProviderAction();
        action.init(ChatRoomManagerView.this.getSite().getWorkbenchWindow());
        action.run(null);

      }
    });

  }
View Full Code Here

Examples of org.eclipse.egit.core.internal.ProjectReferenceImporter.run()

    try{
      ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
        public void run(IProgressMonitor wsOpMonitor) throws CoreException {
          ProjectReferenceImporter importer = new ProjectReferenceImporter(referenceStrings);
          List<IProject> p = importer.run(wsOpMonitor);
          importedProjects.addAll(p);
        }
      }, ResourcesPlugin.getWorkspace().getRoot(), IWorkspace.AVOID_UPDATE, monitor);
    } catch (CoreException e) {
      throw TeamException.asTeamException(e);
View Full Code Here

Examples of org.eclipse.egit.core.op.CloneOperation.run()

    // TODO only clone if not exists
    if (!exists) {
      final CloneOperation cloneOperation = new CloneOperation(gitUrl,
          true, null, workDir.toFile(), refName,
          Constants.DEFAULT_REMOTE_NAME, timeout);
      cloneOperation.run(monitor);
    }
  }

  private void getRepositories(final String[] referenceStrings,
      final Map<URIish, Map<String, Set<ProjectReference>>> repositories)
View Full Code Here

Examples of org.eclipse.egit.core.op.FetchOperation.run()

    config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, "master", ConfigConstants.CONFIG_KEY_REMOTE, "origin");
    config.setString(ConfigConstants.CONFIG_BRANCH_SECTION, "master", ConfigConstants.CONFIG_KEY_MERGE, "refs/heads/master");
    config.save();

    FetchOperation fetchOperation = new FetchOperation(repository, remoteConfig, 60, false);
    fetchOperation.run(null);
  }

  @Test
  public void shouldUpdateTrackingBranchOnPush() throws Exception {
    makeChangesAndCommit(PROJ1);
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.