Tabnine Logo
IWorkbenchSite.getService
Code IndexAdd Tabnine to your IDE (free)

How to use
getService
method
in
org.eclipse.ui.IWorkbenchSite

Best Java code snippets using org.eclipse.ui.IWorkbenchSite.getService (Showing top 8 results out of 315)

origin: org.eclipse.jdt/org.eclipse.jdt.ui

private void installQuickAccessAction() {
  fHandlerService= fSite.getService(IHandlerService.class);
  if (fHandlerService != null) {
    IHandler handler= new JDTQuickMenuCreator(fEditor) {
      @Override
      protected void fillMenu(IMenuManager menu) {
        fillQuickMenu(menu);
      }
    }.createHandler();
    fQuickAccessHandlerActivation= fHandlerService.activateHandler(QUICK_MENU_ID, handler);
  }
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private void installQuickAccessAction() {
  fHandlerService= fSite.getService(IHandlerService.class);
  if (fHandlerService != null) {
    IHandler handler= new JDTQuickMenuCreator(fEditor) {
      @Override
      protected void fillMenu(IMenuManager menu) {
        fillQuickMenu(menu);
      }
    }.createHandler();
    fQuickAccessHandlerActivation= fHandlerService.activateHandler(QUICK_MENU_ID, handler);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private void installQuickAccessAction() {
  fHandlerService= fSite.getService(IHandlerService.class);
  if (fHandlerService != null) {
    IHandler handler= new JDTQuickMenuCreator(fEditor) {
      @Override
      protected void fillMenu(IMenuManager menu) {
        fillQuickMenu(menu);
      }
    }.createHandler();
    fQuickAccessHandlerActivation= fHandlerService.activateHandler(QUICK_MENU_ID, handler);
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private void installQuickAccessAction() {
  fHandlerService= fSite.getService(IHandlerService.class);
  if (fHandlerService != null) {
    IHandler handler= new JDTQuickMenuCreator(fEditor) {
      @Override
      protected void fillMenu(IMenuManager menu) {
        fillQuickMenu(menu);
      }
    }.createHandler();
    fQuickAccessHandlerActivation= fHandlerService.activateHandler(QUICK_MENU_ID, handler);
  }
}
origin: org.eclipse/org.eclipse.jdt.ui

private void installQuickAccessAction() {
  fHandlerService= (IHandlerService)fSite.getService(IHandlerService.class);
  if (fHandlerService != null) {
    fQuickAccessAction= new RefactorQuickAccessAction(fEditor);
    fQuickAccessHandlerActivation= fHandlerService.activateHandler(fQuickAccessAction.getActionDefinitionId(), new ActionHandler(fQuickAccessAction));
  }
}

origin: org.eclipse/org.eclipse.jdt.ui

private void installQuickAccessAction() {
  fHandlerService= (IHandlerService)fSite.getService(IHandlerService.class);
  if (fHandlerService != null) {
    fQuickAccessAction= new SourceQuickAccessAction(fEditor);
    fQuickAccessHandlerActivation= fHandlerService.activateHandler(fQuickAccessAction.getActionDefinitionId(), new ActionHandler(fQuickAccessAction));
  }
}

origin: org.eclipse.egit/ui

IWorkbenchSite activeSite = HandlerUtil.getActiveSite(event);
IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) activeSite
    .getService(IWorkbenchSiteProgressService.class);
service.schedule(job);
origin: org.eclipse.egit/ui

IWorkbenchSite activeSite = HandlerUtil.getActiveSite(event);
IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) activeSite
    .getService(IWorkbenchSiteProgressService.class);
org.eclipse.uiIWorkbenchSitegetService

Popular methods of IWorkbenchSite

  • getSelectionProvider
    Returns the selection provider for this workbench site.
  • getShell
    Returns the shell for this workbench site. Not intended to be called from outside the UI thread. Cli
  • getPage
    Returns the page containing this workbench site.
  • getWorkbenchWindow
    Returns the workbench window containing this workbench site.
  • getAdapter

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • JFrame (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Option (scala)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now