Package org.eclipse.ui.navigator

Examples of org.eclipse.ui.navigator.ICommonViewerSite


@SuppressWarnings("restriction")
public class CloudFoundryActionProvider extends CommonActionProvider {

  public void init(ICommonActionExtensionSite actionSite) {
    super.init(actionSite);
    ICommonViewerSite site = actionSite.getViewSite();
    if (site instanceof ICommonViewerWorkbenchSite) {
      StructuredViewer viewer = actionSite.getStructuredViewer();
      if (viewer instanceof CommonViewer) {
        CommonViewer serversViewer = (CommonViewer) viewer;
        serversViewer.addOpenListener(new IOpenListener() {
View Full Code Here


    }

    @Override
    public void init(final ICommonActionExtensionSite aSite) {
        super.init(aSite);
        final ICommonViewerSite viewSite = aSite.getViewSite();
        if (viewSite instanceof ICommonViewerWorkbenchSite) {
            final ICommonViewerWorkbenchSite workbenchSite = (ICommonViewerWorkbenchSite) viewSite;
            final IWorkbenchPartSite site = workbenchSite.getSite();
            openAction = new OpenErlangAction(aSite, workbenchSite.getSelectionProvider());
            searchActionGroup = new ErlangSearchActionGroup(site);
View Full Code Here

  public SupplierPlanActionProvider() {
    super();
  }
  @Override
  public void init(ICommonActionExtensionSite aSite) {
    ICommonViewerSite viewSite = aSite.getViewSite();
    if (viewSite instanceof ICommonViewerWorkbenchSite){
      ICommonViewerWorkbenchSite workbenchSite  = (ICommonViewerWorkbenchSite) viewSite;
      openAction = new OpenSupplierPlanAction(workbenchSite.getPage(),
                        workbenchSite.getSelectionProvider());
    }
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.ui.navigator.CommonActionProvider#init(org.eclipse.ui.navigator.ICommonActionExtensionSite)
   */
  public void init(ICommonActionExtensionSite aSite) {
 
    ICommonViewerSite viewSite = aSite.getViewSite();
    if(viewSite instanceof ICommonViewerWorkbenchSite) {
      ICommonViewerWorkbenchSite workbenchSite =
        (ICommonViewerWorkbenchSite) viewSite;
      openAction =
        new OpenClassComponentAction(workbenchSite.getPage(),
View Full Code Here

 
  private static final String SHOW_IN_QUICK_MENU_ID = ServerActionProvider.SHOW_IN_MENU_ID;

  public static ICommonViewerWorkbenchSite getCommonViewerWorkbenchSite(ICommonActionExtensionSite actionExtensionSite) {
    ICommonViewerWorkbenchSite wsSite = null;
    ICommonViewerSite viewSite = actionExtensionSite.getViewSite();
    if( viewSite instanceof ICommonViewerWorkbenchSite ) {
      StructuredViewer v = actionExtensionSite.getStructuredViewer();
      if( v instanceof CommonViewer ) {
        wsSite = (ICommonViewerWorkbenchSite) viewSite;
      }
View Full Code Here

    private PyMoveResourceAction moveResourceAction;
    private ISelectionProvider selectionProvider;

    @Override
    public void init(ICommonActionExtensionSite aSite) {
        ICommonViewerSite viewSite = aSite.getViewSite();
        if (viewSite instanceof ICommonViewerWorkbenchSite) {
            ICommonViewerWorkbenchSite site = (ICommonViewerWorkbenchSite) viewSite;
            Shell shell = site.getShell();

            ISharedImages images = PlatformUI.getWorkbench().getSharedImages();
View Full Code Here

    private PyRenameResourceAction renameResourceAction;

    @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

TOP

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

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.