Examples of activateKeyBindingService()


Examples of org.eclipse.ui.INestableKeyBindingService.activateKeyBindingService()

    final IKeyBindingService service = getSite().getKeyBindingService();
    if (pageIndex < 0 || pageIndex >= getPageCount()) {
      // There is no selected page, so deactivate the active service.
      if (service instanceof INestableKeyBindingService) {
        final INestableKeyBindingService nestableService = (INestableKeyBindingService) service;
        nestableService.activateKeyBindingService(null);
      } else {
        WorkbenchPlugin
            .log("MultiPageEditorPart.setFocus()   Parent key binding service was not an instance of INestableKeyBindingService.  It was an instance of " + service.getClass().getName() + " instead."); //$NON-NLS-1$ //$NON-NLS-2$
      }
      return;
View Full Code Here

Examples of org.eclipse.ui.INestableKeyBindingService.activateKeyBindingService()

      editor.setFocus();
      // There is no selected page, so deactivate the active service.
      if (service instanceof INestableKeyBindingService) {
        final INestableKeyBindingService nestableService = (INestableKeyBindingService) service;
        if (editor != null) {
          nestableService.activateKeyBindingService(editor
              .getEditorSite());
        } else {
          nestableService.activateKeyBindingService(null);
        }
      } else {
View Full Code Here

Examples of org.eclipse.ui.INestableKeyBindingService.activateKeyBindingService()

        final INestableKeyBindingService nestableService = (INestableKeyBindingService) service;
        if (editor != null) {
          nestableService.activateKeyBindingService(editor
              .getEditorSite());
        } else {
          nestableService.activateKeyBindingService(null);
        }
      } else {
        WorkbenchPlugin
            .log("MultiPageEditorPart.setFocus()   Parent key binding service was not an instance of INestableKeyBindingService.  It was an instance of " + service.getClass().getName() + " instead."); //$NON-NLS-1$ //$NON-NLS-2$
      }
View Full Code Here

Examples of org.eclipse.ui.INestableKeyBindingService.activateKeyBindingService()

    } else {
      // There is no selected editor, so deactivate the active service.
      if (service instanceof INestableKeyBindingService) {
        final INestableKeyBindingService nestableService = (INestableKeyBindingService) service;
        nestableService.activateKeyBindingService(null);
      } else {
        WorkbenchPlugin
            .log("MultiPageEditorPart.setFocus()   Parent key binding service was not an instance of INestableKeyBindingService.  It was an instance of " + service.getClass().getName() + " instead."); //$NON-NLS-1$ //$NON-NLS-2$
      }
View Full Code Here

Examples of org.eclipse.ui.INestableKeyBindingService.activateKeyBindingService()

    if (editor == null) {
      // There is no selected page, so deactivate the active service.
      if (service instanceof INestableKeyBindingService) {
        final INestableKeyBindingService nestableService = (INestableKeyBindingService) service;
        nestableService.activateKeyBindingService(null);
      } else {
        //WorkbenchPlugin
        PDPlugin
            .getLogger(getClass()).error("MultiPageEditorPart.setFocus()   Parent key binding service was not an instance of INestableKeyBindingService.  It was an instance of " + service.getClass().getName() + " instead."); //$NON-NLS-1$ //$NON-NLS-2$
      }
View Full Code Here

Examples of org.eclipse.ui.INestableKeyBindingService.activateKeyBindingService()

        editor.setFocus();
        // There is no selected page, so deactivate the active service.
        if (service instanceof INestableKeyBindingService) {
          final INestableKeyBindingService nestableService = (INestableKeyBindingService) service;
          if (editor != null) {
            nestableService.activateKeyBindingService(editor
                .getEditorSite());
          } else {
            nestableService.activateKeyBindingService(null);
          }
        } else {
View Full Code Here

Examples of org.eclipse.ui.INestableKeyBindingService.activateKeyBindingService()

          final INestableKeyBindingService nestableService = (INestableKeyBindingService) service;
          if (editor != null) {
            nestableService.activateKeyBindingService(editor
                .getEditorSite());
          } else {
            nestableService.activateKeyBindingService(null);
          }
        } else {
            PDPlugin
                .getLogger(getClass()).error("MultiPageEditorPart.setFocus()   Parent key binding service was not an instance of INestableKeyBindingService.  It was an instance of " + service.getClass().getName() + " instead."); //$NON-NLS-1$ //$NON-NLS-2$
        }
View Full Code Here

Examples of org.eclipse.ui.INestableKeyBindingService.activateKeyBindingService()

  public void activate() {
    if (keyBindingService == null) {
      return;
    }
    INestableKeyBindingService service = (INestableKeyBindingService) parent.getKeyBindingService();
    service.activateKeyBindingService(this);
   
    // The workbench only calls updateActiveKeyBindingService() when a workbench part
    // becomes active. We have to explicitly call it since for the
    // workbench the active part has not changed.
    // TODO: find an alternative in Eclipse 3.0 for the following call:
View Full Code Here

Examples of org.eclipse.ui.INestableKeyBindingService.activateKeyBindingService()

  public void deactivate() {
    if (keyBindingService == null) {
      return;
    }
    INestableKeyBindingService service = (INestableKeyBindingService) parent.getKeyBindingService();
    service.activateKeyBindingService(null);
  }

  /**
   * The <code>CompositeEditorSite</code> implementation of this
   * <code>IWorkbenchPartSite</code> method remembers the selection provider,
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.