Package org.eclipse.ui.internal.services

Examples of org.eclipse.ui.internal.services.ServiceLocator


    Assert.isNotNull(editor);
    this.multiPageEditor = multiPageEditor;
    this.editor = editor;

    final IServiceLocator parentServiceLocator = multiPageEditor.getSite();
    serviceLocator = new ServiceLocator(parentServiceLocator);

    initializeDefaultServices();
  }
View Full Code Here


    Assert.isNotNull(parentViewSite);
    parentSite = parentViewSite;
    subActionBars = new SubActionBars(parentViewSite.getActionBars(), this);

    // Initialize the service locator.
    this.serviceLocator = new ServiceLocator(parentSite);
    initializeDefaultServices();
  }
View Full Code Here

 
  public IActionBars getActionBars() {
    return new EditorActionBars((WorkbenchPage) PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage(),
        new ServiceLocator(), "simple") {
     
      public void setGlobalActionHandler(String actionID, IAction handler) {

      }
    };
View Full Code Here

    extensionID = "org.eclipse.ui.UnknownID"; //$NON-NLS-1$
    extensionName = "Unknown Name"; //$NON-NLS-1$

    // Initialize the service locator.
    final IServiceLocator parentServiceLocator = page.getWorkbenchWindow();
    this.serviceLocator = new ServiceLocator(parentServiceLocator);

    initializeDefaultServices();
  }
View Full Code Here

    this.number = number;

    // Make sure there is a workbench. This call will throw
    // an exception if workbench not created yet.
    final IWorkbench workbench = PlatformUI.getWorkbench();
    this.serviceLocator = new ServiceLocator(workbench);
    initializeDefaultServices();

    // Add contribution managers that are exposed to other plugins.
    addMenuBar();
    addCoolBar(SWT.NONE)// style is unused
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.services.ServiceLocator

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.