Examples of run()


Examples of org.eclipse.birt.report.engine.api.IRunTask.run()

        Map context = BirtUtility.getAppContext(request);
        runTask.setAppContext(context);

        // Run report.
        try {
            runTask.run(documentName);
        } catch (BirtException e) {
            // clear document file
            File doc = new File(documentName);
            if (doc != null) {
                doc.delete();
View Full Code Here

Examples of org.eclipse.cdt.internal.ui.search.CSearchPatternQuery.run()

    CSearchQuery query = new CSearchPatternQuery(
        scope, scopeDesc, pattern, caseSensitive, type | context);

    ArrayList<Position> results = new ArrayList<Position>();
    if (query != null){
      query.run(new NullProgressMonitor());
      CSearchResult result = (CSearchResult)query.getSearchResult();
      for (Object e : result.getElements()){
        Method method = CSearchElement.class.getDeclaredMethod("getLocation");
        method.setAccessible(true);
        IIndexFileLocation location = (IIndexFileLocation)method.invoke(e);
View Full Code Here

Examples of org.eclipse.cdt.internal.ui.search.CSearchQuery.run()

    CSearchQuery query = new CSearchPatternQuery(
        scope, scopeDesc, pattern, caseSensitive, type | context);

    ArrayList<Position> results = new ArrayList<Position>();
    if (query != null){
      query.run(new NullProgressMonitor());
      CSearchResult result = (CSearchResult)query.getSearchResult();
      for (Object e : result.getElements()){
        Method method = CSearchElement.class.getDeclaredMethod("getLocation");
        method.setAccessible(true);
        IIndexFileLocation location = (IIndexFileLocation)method.invoke(e);
View Full Code Here

Examples of org.eclipse.compare.CompareEditorInput.run()

                        ResourceEditionNode right = new ResourceEditionNode( svnRemoteResource2 );
                        compareEditorInput = new SVNCompareEditorInput(left, right);
                    }
                    if( null != compareEditorInput ){
                        try {
                            compareEditorInput.run( new NullProgressMonitor() );
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                        compareViewerPane.setTitleArgument( "Version Compare:" + svnRemoteResource1.getLastChangedRevision() + ":" + svnRemoteResource2.getLastChangedRevision());
                        compareViewerPane.setInput(compareEditorInput.getCompareResult());
View Full Code Here

Examples of org.eclipse.core.filebuffers.manipulation.RemoveTrailingWhitespaceOperation.run()

    if (saveActionsEnabled) {
      RemoveTrailingWhitespaceOperation op = new ExtendedRemoveTrailingWhitespaceOperation(
          saveActionsIgnoreEmptyLines);
      try {
        op.run(FileBuffers.getTextFileBufferManager()
            .getTextFileBuffer(getDocument()), progressMonitor);
      } catch (OperationCanceledException e) {
        Logger.logException(e);
      } catch (CoreException e) {
        Logger.logException(e);
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.run()

    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    if (workspace.isTreeLocked()) {
      new BatchOperation(action).run(monitor);
    } else {
      // use IWorkspace.run(...) to ensure that a build will be done in autobuild mode
      workspace.run(new BatchOperation(action), rule, IWorkspace.AVOID_UPDATE, monitor);
    }
  }
  /**
   * Bind a container reference path to some actual containers (<code>IClasspathContainer</code>).
   * This API must be invoked whenever changes in container need to be reflected onto the JavaModel.
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspaceRunnable.run()

          public void run(final IProgressMonitor monitor_inner) throws CoreException{
                jsfUtil.createConfigFile(configPath);
            project.refreshLocal(IResource.DEPTH_INFINITE, monitor_inner);
          }
        };
        op.run(monitor);
      }
    } catch (final CoreException e) {
      JSFCorePlugin.log(e, "Exception occured while creating faces-config.xml");//$NON-NLS-1$
    }
View Full Code Here

Examples of org.eclipse.core.runtime.ISafeRunnable.run()

                    ProjectUIPlugin.log("Exception preparing animation", exception); //$NON-NLS-1$
                }
            };

            try {
                sendAnimation.run();
            } catch (Exception e) {
                ProjectUIPlugin.log("", e); //$NON-NLS-1$
            }
            // PlatformGIS.run(sendAnimation);
        }
View Full Code Here

Examples of org.eclipse.debug.ui.actions.RunToLineHandler.run()

                if (debugTarget instanceof PHPDebugTarget) {
                  IBreakpoint breakpoint = new PHPRunToLineBreakpoint(
                      file, lineNumber);
                  RunToLineHandler handler = new RunToLineHandler(
                      debugTarget, target, breakpoint);
                  handler.run(new NullProgressMonitor());
                } else if (debugTarget instanceof DBGpTarget) {
                  DBGpTarget t = (DBGpTarget) debugTarget;
                  t.runToLine(file, lineNumber);
                }
                return;
View Full Code Here

Examples of org.eclipse.dltk.internal.ui.refactoring.reorg.ReorgCopyStarter.run()

      starter = ReorgCopyStarter.create(modelElements, resources,
          (IResource) target);
    }

    if (starter != null)
      starter.run(this.getViewer().getControl().getShell());
  }

  public IResource[] getResources(IModelElement[] elements) {
    List resultArray = new ArrayList();
    for (int i = 0; i < elements.length; i++) {
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.