Package org.eclipse.ui

Examples of org.eclipse.ui.IObjectActionDelegate


    protected void initDelegate() {
        super.initDelegate();
    final IActionDelegate actionDelegate = getDelegate();
    if (actionDelegate instanceof IObjectActionDelegate
        && activePart != null) {
      final IObjectActionDelegate objectActionDelegate = (IObjectActionDelegate) actionDelegate;
      final ISafeRunnable runnable = new ISafeRunnable() {
        public void run() throws Exception {
          objectActionDelegate.setActivePart(ObjectPluginAction.this,
              activePart);
        }

        public void handleException(Throwable exception) {
          // Do nothing.
View Full Code Here


   */
    public void setActivePart(IWorkbenchPart targetPart) {
        activePart = targetPart;
        IActionDelegate delegate = getDelegate();
        if (delegate instanceof IObjectActionDelegate && activePart != null) {
      final IObjectActionDelegate objectActionDelegate = (IObjectActionDelegate) delegate;
      final ISafeRunnable runnable = new ISafeRunnable() {
        public void run() throws Exception {
          objectActionDelegate.setActivePart(ObjectPluginAction.this,
              activePart);
        }

        public void handleException(Throwable exception) {
          // Do nothing.
View Full Code Here

      IProject newProject = JadexProjectSupport.createProject(name, location, null);
      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

      WorkbenchJob job = new WorkbenchJob(Display.getCurrent(),"lala") {
     
      @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

Related Classes of org.eclipse.ui.IObjectActionDelegate

Copyright © 2018 www.massapicom. 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.