Examples of ICommandService


Examples of org.eclipse.ui.commands.ICommandService

    if (fTextViewer instanceof ITextViewerExtension)
      ((ITextViewerExtension) fTextViewer).prependVerifyKeyListener(this);
    else
      text.addVerifyKeyListener(this);
   
    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
      commandService.addExecutionListener(this);

    fInstalled= true;
  }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService

    } else {
      if (text != null)
        text.removeVerifyKeyListener(this);
    }

    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
      commandService.removeExecutionListener(this);

    fInstalled= false;
  }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService

      fWidgetEventSource.addVerifyKeyListener(fEventListener);
      fWidgetEventSource.addMouseListener(fEventListener);
      fWidgetEventSource.addFocusListener(fEventListener);
    }

    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
      commandService.addExecutionListener(fEventListener);
  }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService

    if (commandService != null)
      commandService.addExecutionListener(fEventListener);
  }
 
  private void removeListeners(ITextViewer editor) {
    ICommandService commandService= (ICommandService)PlatformUI.getWorkbench().getAdapter(ICommandService.class);
    if (commandService != null)
      commandService.removeExecutionListener(fEventListener);
   
    if (fWidgetEventSource != null) {
      fWidgetEventSource.removeFocusListener(fEventListener);
      fWidgetEventSource.removeMouseListener(fEventListener);
      fWidgetEventSource.removeVerifyKeyListener(fEventListener);
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    IPreferenceStore store = RutaAddonsPlugin.getDefault().getPreferenceStore();
    boolean b = store.getBoolean(TestingPreferenceConstants.EXTEND_CLASSPATH);
    store.setValue(TestingPreferenceConstants.EXTEND_CLASSPATH, !b);
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(event.getCommand().getId(), null);
    return null;
  }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService

        AnnotationCheckComposite composite = (AnnotationCheckComposite) acView.getComposite();
        composite.setAnnotationMode(typeString);
        String[] split = typeString.split("[.]");
        mode = split[split.length - 1];
        ICommandService commandService = (ICommandService) window.getService(ICommandService.class);
        if (commandService != null) {
          commandService.refreshElements("org.apache.uima.ruta.check.mode", null);
        }
      } catch (PartInitException e) {
        RutaAddonsPlugin.error(e);
        return Status.CANCEL_STATUS;
      }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService

    oldResults.store();
    evaluators.store();
    includeSubtypes.store();
    allTypes.store();
    extendClasspath.store();
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(ExtendClasspathHandler.COMMAND_ID, null);
    super.performApply();
  }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService

    oldResults.store();
    evaluators.store();
    includeSubtypes.store();
    allTypes.store();
    extendClasspath.store();
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(ExtendClasspathHandler.COMMAND_ID, null);
    return super.performOk();
  }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService

    oldResults.loadDefault();
    evaluators.loadDefault();
    includeSubtypes.loadDefault();
    allTypes.loadDefault();
    extendClasspath.loadDefault();
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(ExtendClasspathHandler.COMMAND_ID, null);
    super.performDefaults();
  }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService

    oldResults.loadDefault();
    evaluators.loadDefault();
    includeSubtypes.loadDefault();
    allTypes.loadDefault();
    extendClasspath.loadDefault();
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(ExtendClasspathHandler.COMMAND_ID, null);
    super.performDefaults();
  }
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.