Package org.eclipse.ui.views.contentoutline

Examples of org.eclipse.ui.views.contentoutline.ContentOutline


        final String targetId;
        final Shell shell;
        PatternFilter patternFilter;
        StructuredViewer viewer;
        if (activePart instanceof ContentOutline) {
            final ContentOutline outline = (ContentOutline) activePart;
            final ErlangOutlinePage erlangOutlinePage = (ErlangOutlinePage) outline
                    .getAdapter(ErlangOutlinePage.class);
            shell = outline.getSite().getShell();
            targetId = "org.eclipse.ui.views.ContentOutline";
            patternFilter = erlangOutlinePage.getPatternFilter();
            viewer = erlangOutlinePage.getTreeViewer();
        } else if (activePart instanceof CommonNavigator) {
            final CommonNavigator commonNavigator = (CommonNavigator) activePart;
View Full Code Here


        }
        final ErlangOutlinePage erlangOutlinePage;
        if (activePart instanceof ErlangOutlinePage) {
            erlangOutlinePage = (ErlangOutlinePage) activePart;
        } else {
            final ContentOutline outline = (ContentOutline) activePart;
            erlangOutlinePage = (ErlangOutlinePage) outline
                    .getAdapter(ErlangOutlinePage.class);
        }
        final TreeViewer viewer = erlangOutlinePage.getTreeViewer();
        if (viewer == null) {
            return;
View Full Code Here

        }
        final ErlangOutlinePage erlangOutlinePage;
        if (activePart instanceof ErlangOutlinePage) {
            erlangOutlinePage = (ErlangOutlinePage) activePart;
        } else {
            final ContentOutline outline = (ContentOutline) activePart;
            erlangOutlinePage = (ErlangOutlinePage) outline
                    .getAdapter(ErlangOutlinePage.class);
        }
        final TreeViewer viewer = erlangOutlinePage.getTreeViewer();
        if (viewer == null) {
            return;
View Full Code Here

  public void selectionChanged(IWorkbenchPart part, ISelection selection) {
   
    boolean isForeignSelection = true;
   
    if (part instanceof ContentOutline) {
      ContentOutline contentOutline = (ContentOutline) part;
     
      IPage currentPage = contentOutline.getCurrentPage();
     
      if (currentPage instanceof OutlinePageBook) {
        OutlinePageBook pageBook = (OutlinePageBook) currentPage;
        isForeignSelection = pageBook.getCasViewPage() != this;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.views.contentoutline.ContentOutline

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.