Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.IPageBookViewPage


  }
 
  @Override
  protected IPageBookViewPage doCreatePage(ICasEditor editor) {

    IPageBookViewPage result = null;

    ICasDocument document = editor.getDocument();

    if (document != null) {
      EditViewPage page = new EditViewPage(this, editor, document);
View Full Code Here


  }

  @Override
  protected IPageBookViewPage doCreatePage(ICasEditor editor) {

    IPageBookViewPage result = null;

    ICasDocument document = editor.getDocument();

    if (document != null) {
      FeatureStructureBrowserViewPage page = new FeatureStructureBrowserViewPage(
View Full Code Here

  // Will be recreated on view switch (need a flag to disable that) and input cas switch
  protected abstract IPageBookViewPage doCreatePage(ICasEditor editor);

  private void createViewPage( CasEditorViewPage casViewPageBookedPage, ICasEditor editor) {
   
    IPageBookViewPage page = doCreatePage(editor);
    if (page != null) {
      try {
        page.init(new SubPageSite(casViewPageBookedPage.getSite()));
      } catch (PartInitException e) {
        CasEditorPlugin.log(e);
      }
     
      casViewPageBookedPage.setCASViewPage(page);
View Full Code Here

    super("The annotation style view is currently not available.");
  }
 
  @Override
  protected IPageBookViewPage doCreatePage(ICasEditor editor) {
    IPageBookViewPage result = null;

    if (editor.getDocument() != null && editor instanceof AnnotationEditor) {
      AnnotationStyleViewPage page = new AnnotationStyleViewPage((AnnotationEditor) editor);
     
      result = page;
View Full Code Here

        return strategy;
    }
   
    @Override
    public synchronized IPageBookViewPage createPage() {
        IPageBookViewPage page = null;
        try {
            // check if the page has supplied some crazy dynamic page thing
            page = getStrategy().createPage();
        } catch (Throwable t) {
            blame("Page " + id + " not available", t);
View Full Code Here

       
        // Check if we already created the control for selected
        PageRecord record = pages.get(selected);
        if( record == null ){
            // record has not been created yet
            IPageBookViewPage page = selected.createPage();
            if( page == null ){
                MessagePage messagePage = new MessagePage();
               
                record = new PageRecord( this, messagePage);
               
                messagePage.init( record.getSite() );
               
                messagePage.createControl( pagebook );
                messagePage.setMessage( selected.getName() );
            }
            else {
                record = new PageRecord( this, page );   
                try {
                    page.init( record.getSite() );
                } catch (PartInitException e) {
                    UiPlugin.log(getClass(), "initPage", e); //$NON-NLS-1$
                }
                page.createControl( pagebook );
            }
            pages.put(selected, record );
        }
        Control selectedControl = record.getControl();
       
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) {
      page = new AnnotationTreeViewPage(false, (AnnotationEditor) editor);
      initPage(page);
      page.createControl(getPageBook());
      result = page;
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(true, (AnnotationEditor) editor);
      result = page;
    }
    return result;
View Full Code Here

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

  protected IPageBookViewPage doCreatePage(ICasEditor editor) {
    IPageBookViewPage result = null;
    if (editor.getDocument() != null && editor instanceof AnnotationEditor) {
      HtmlViewPage page = new HtmlViewPage((AnnotationEditor) editor);
      result = page;
    }
    return result;
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) {
      EvaluationViewPage page = new EvaluationViewPage(ICasEvaluator.TRUE_POSITIVE,
              (AnnotationEditor) editor);
      result = 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.