Package org.eclipse.ui.navigator

Examples of org.eclipse.ui.navigator.ICommonViewerWorkbenchSite


    @Override
    public void init(ICommonActionExtensionSite aSite) {
        ICommonViewerSite viewSite = aSite.getViewSite();
        if (viewSite instanceof ICommonViewerWorkbenchSite) {
            ICommonViewerWorkbenchSite site = (ICommonViewerWorkbenchSite) viewSite;
            Shell shell = site.getShell();
            renameResourceAction = new PyRenameResourceAction(shell, site.getSelectionProvider());
        }
    }
View Full Code Here


      return;

    if (selection instanceof IStructuredSelection) {
      IStructuredSelection structuredSelection = (IStructuredSelection) selection;
      if (shouldAddShowInMenu(structuredSelection)) {
        ICommonViewerWorkbenchSite site = (ICommonViewerWorkbenchSite) getActionSite()
            .getViewSite();

        MenuManager showInSubMenu = UIUtils.createShowInMenu(
            site.getWorkbenchWindow());
        menu.appendToGroup(ICommonMenuConstants.GROUP_SHOW, showInSubMenu);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.navigator.ICommonViewerWorkbenchSite

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.