Examples of run()


Examples of org.eclipse.php.internal.ui.actions.ReorgMoveAction.run()

    if (targetContainer instanceof IContainer) {
      action.setTarget((IContainer) targetContainer);
    } else if (targetContainer instanceof IResource) {
      action.setTarget(((IResource) targetContainer).getParent());
    }
    action.run((Action) null);
  }

  private void handleDropCopy(final Object target) throws ModelException,
      InvocationTargetException, InterruptedException {
    List elements = ((IStructuredSelection) getSelection()).toList();
View Full Code Here

Examples of org.eclipse.php.internal.ui.search.FindOccurrencesEngine.run()

    if (!ActionUtil.isProcessable(getShell(), input))
      return;
    FindOccurrencesEngine engine = FindOccurrencesEngine
        .create(new MethodExitsFinder());
    try {
      String result = engine.run(input, ts.getOffset(), ts.getLength());
      if (result != null)
        showMessage(getShell(), fEditor, result);
    } catch (ModelException e) {
      PHPUiPlugin.log(e);
    } catch (IOException e) {
View Full Code Here

Examples of org.eclipse.search.internal.ui.text.FileSearchQuery.run()

    IResource[] scopeResources= resources.toArray(new IResource[resources.size()]);
    ISearchQuery query= new FileSearchQuery("@Test\\(.*\\s*dependsOnGroups\\s*=.*",
        true /*regexp*/ ,
        true /*casesensitive*/,
        FileTextSearchScope.newSearchScope(scopeResources, new String[] {"*.java"}, false));
    query.run(new NullProgressMonitor());
    FileSearchResult result= (FileSearchResult) query.getSearchResult();
    Object[] elements = result.getElements();
   
    return elements;
  }
View Full Code Here

Examples of org.eclipse.search.ui.ISearchQuery.run()

    IResource[] scopeResources= resources.toArray(new IResource[resources.size()]);
    ISearchQuery query= new FileSearchQuery("@Test\\(.*\\s*dependsOnGroups\\s*=.*",
        true /*regexp*/ ,
        true /*casesensitive*/,
        FileTextSearchScope.newSearchScope(scopeResources, new String[] {"*.java"}, false));
    query.run(new NullProgressMonitor());
    FileSearchResult result= (FileSearchResult) query.getSearchResult();
    Object[] elements = result.getElements();
   
    return elements;
  }
View Full Code Here

Examples of org.eclipse.team.svn.core.operation.remote.ExportOperation.run()

    IRepositoryResource[] resources = { resource };
    int depth = 0;
    ExportOperation exportOperation = new ExportOperation(resources,
        directory.getAbsolutePath(), depth);
    exportOperation.run(new NullProgressMonitor());

    String name = resource.getName();
    return FileUtil.getFile(name, directory);
  }
View Full Code Here

Examples of org.eclipse.test.performance.ui.GenerateResults.run()

                buildName,
                baselineName,
                fingerprints,
                BuildsView.this.dataDir,
                genDir);
            GenerateAction.this.status = generation.run(monitor);
            monitor.done();
          } catch (Exception e) {
            e.printStackTrace();
          }
        }
View Full Code Here

Examples of org.eclipse.ui.IActionDelegate.run()

                @Override
                public void run() {
                  if (SendLinkAction.ID.equals(provider.getId())) {
                    IActionDelegate action = new SendLinkAction();
                    action.selectionChanged(null, selection);
                    action.run(null);
                  } else {
                    IBookMark bookmark = getBookMark(selection);
                    if (bookmark != null) {
                      String shareLink = provider.toShareUrl(bookmark);
                      new OpenInBrowserAction(new StructuredSelection(shareLink)).run();
View Full Code Here

Examples of org.eclipse.ui.IEditorActionDelegate.run()

     * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
     */
    public void run(IAction action) {
        IEditorActionDelegate participant = getParticipant();
        if (participant != null) {
            participant.run(action);
        }
    }

    public void setActiveEditor(IAction action, IEditorPart targetEditor) {
        IEditorActionDelegate participant = getParticipant();
View Full Code Here

Examples of org.eclipse.ui.IObjectActionDelegate.run()

      BasicNewProjectResourceWizard.updatePerspective(_configurationElement);
     
      final Action action = new Action() {};
    IObjectActionDelegate updateAction = new UpdateSourcesAction(Display.getCurrent().getActiveShell());
    updateAction.selectionChanged(action, new StructuredSelection(newProject));
    updateAction.run(action);
     
    return true;
  }

View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWindow.run()

                        }
                    }
                };

                IWorkbenchWindow window = ((IFormPage) getManagedForm().getContainer()).getEditorSite().getWorkbenchWindow();
                window.run(false, false, runnable);
                return result;
            } catch (InvocationTargetException e) {
                logger.logError("Error searching for BundleActivator types", e.getTargetException());
                return Collections.emptyList();
            } catch (InterruptedException 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.