Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.IPageBookViewPage


  private void initActivePage(){
    getSite().getActionBars().getToolBarManager().removeAll();
    getSite().getActionBars().getMenuManager().removeAll();
   
    if(activePage instanceof IPageBookViewPage){
      IPageBookViewPage pageBook = (IPageBookViewPage)activePage;
      if(pageBook.getSite()==null){
        try {
          pageBook.init(getSite());
        } catch(PartInitException ex){
          HTMLPlugin.logException(ex);
        }
      }
    }
View Full Code Here


    super("The instance view is currently not available.");
  }

  @Override
  protected IPageBookViewPage doCreatePage(ICasEditor editor) {
    IPageBookViewPage result = null;
    if (editor.getDocument() != null && editor instanceof AnnotationEditor) {
      AnnotationTreeViewPage page = new AnnotationTreeViewPage(false, (AnnotationEditor) editor);
      result = page;
    }
    return result;
View Full Code Here

   * @see org.eclipse.ui.part.PageBookView#doCreatePage(org.eclipse.ui.IWorkbenchPart)
   */
  protected PageRec doCreatePage(IWorkbenchPart dummyPart) {
    ConsoleWorkbenchPart part = (ConsoleWorkbenchPart)dummyPart;
    final IConsole console = part.getConsole();
    final IPageBookViewPage page = console.createPage(this);
    initPage(page);
    page.createControl(getPageBook());
    console.addPropertyChangeListener(this);
   
    // initialize page participants
    IConsolePageParticipant[] consoleParticipants = ((ConsoleManager)getConsoleManager()).getPageParticipants(console);
    final ListenerList participants = new ListenerList();
View Full Code Here

    IViewSite viewSite = getViewSite();

    pages.add(page);
    if (pageSite != null) {
      if (page instanceof IPageBookViewPage) {
        IPageBookViewPage pageBookViewPage = (IPageBookViewPage) page;
        pageBookViewPage.init(pageSite);
      } else if (page instanceof IViewPage) {
        IViewPage viewPage = (IViewPage) page;
        viewPage.init(pageSite);
      }
    }
View Full Code Here

        menuManager.setVisible(true);
        pageSite.getActionBars().getToolBarManager().removeAll();
       */

      if (page instanceof IPageBookViewPage) {
        IPageBookViewPage pageBookViewPage = (IPageBookViewPage) page;
        try {
          pageBookViewPage.init(pageSite);
        } catch (PartInitException e) {
          Activator.getLogger().warning("Failed to initialise page: " + pageBookViewPage + ". " + e, e);
        }
      } else if (page instanceof IViewPage) {
        IViewPage viewPage = (IViewPage) page;
View Full Code Here

TOP

Related Classes of org.eclipse.ui.part.IPageBookViewPage

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.