Package org.eclipse.ui

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


      @Override
      public IStatus runInUIThread(IProgressMonitor monitor) {
        final Action action = new Action() {};
          IObjectActionDelegate updateAction = new UpdateSourcesAction(shell);
          updateAction.selectionChanged(action, new StructuredSelection(newProject));
          updateAction.run(action);
      return Status.OK_STATUS;      }
    };
    job.setSystem(true);
    job.schedule(1000);
    return true;
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.