Package org.eclipse.ui

Examples of org.eclipse.ui.ISelectionListener.selectionChanged()


            final ISelectionListener l = (ISelectionListener) array[i];
            if ((part != null && sel != null)
                    || l instanceof INullSelectionListener) {
                Platform.run(new SafeRunnable() {
                    public void run() {
                        l.selectionChanged(part, sel);
                    }
                });
            }
        }
    }
View Full Code Here


            final ISelectionListener l = (ISelectionListener) array[i];
            if ((part != null && sel != null)
                    || l instanceof INullSelectionListener) {
                Platform.run(new SafeRunnable() {
                    public void run() {
                        l.selectionChanged(part, sel);
                    }
                });
            }
        }
    }
View Full Code Here

        // pass the selection to the page
        IPage page = getCurrentPage(); // We are expecting a FeaturePanelPage
                                       // here
        if (page != null && page instanceof ISelectionListener) {
            ISelectionListener notifyPage = (ISelectionListener) page;
            notifyPage.selectionChanged(part, editSelection);
        }
    }

    @Override
    public void init(IViewSite site) throws PartInitException {
View Full Code Here

            final ISelectionListener l = (ISelectionListener) array[i];
            if ((part != null && sel != null)
                    || l instanceof INullSelectionListener) {
               
                try {
                    l.selectionChanged(part, sel);
                } catch (Exception e) {
                    WorkbenchPlugin.log(e);
                }
            }
        }
View Full Code Here

            final ISelectionListener l = (ISelectionListener) array[i];
            if ((part != null && sel != null)
                    || l instanceof INullSelectionListener) {
               
                try {
                    l.selectionChanged(part, sel);
                } catch (Exception e) {
                    WorkbenchPlugin.log(e);
                }
            }
        }
View Full Code Here

        if (view instanceof IMarkerSelectionHandler) {
            IMarkerSelectionHandler handler = (IMarkerSelectionHandler) view;
            handler.markerSelected(source, marker);
        } else if (DETAILS_VIEW_ID.equals(viewId) && view instanceof ISelectionListener) {
            ISelectionListener listener = (ISelectionListener) view;
            listener.selectionChanged(source, new StructuredSelection(marker));
        }
    }

    /**
     * Call this method to retrieve the (cache) ImageDescriptor for the given
View Full Code Here

  public void setInput(IWorkbenchPart part, ISelection selection) {
    this.part = part;
    this.selection = selection;
    if (page instanceof ISelectionListener) {
      ISelectionListener sl = (ISelectionListener) page;
      sl.selectionChanged(part, selection);
    }
  }

  @Override
  public void aboutToBeShown() {
View Full Code Here

  @Override
  public void aboutToBeShown() {
    if (page instanceof ISelectionListener) {
      ISelectionListener sl = (ISelectionListener) page;
      sl.selectionChanged(part, selection);
    }
    try {
      if (page instanceof ViewPropertySheetPage) {
        ViewPropertySheetPage sheetPage = (ViewPropertySheetPage) page;
        IViewPage viewPage = sheetPage.getView();
View Full Code Here

  @Override
  public void selectionChanged(IWorkbenchPart part, ISelection selection) {
    FormSupport form = getForm();
    if (form instanceof ISelectionListener) {
      ISelectionListener listener = (ISelectionListener) form;
      listener.selectionChanged(part, selection);
    }
  }


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.