Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.Page


        TabFolderSupport2 tfs = (TabFolderSupport2) selectionPage;
        tfs.init(propertySheet);
      } else {
        boolean initSelectionPage = false;
        if (selectionPage instanceof Page) {
          Page p = (Page) selectionPage;
          Activator.getLogger().debug("Current page: "+ p + " has Site: " + p.getSite());
          if (initSelectionPage) {
            IViewSite viewSite = propertySheet.getViewSite();
            p.init(new PageSite(viewSite));
          }
        }
      }
      if (selection != null) {
        selectionPage.selectionChanged(part, selection);
View Full Code Here


 
  public static final String ID = "com.onpositive.mapper.views.TilesetView";

  @Override
  protected IPage createDefaultPage(PageBook book) {
    Page page = new Page() {
     
      private Composite composite;

      @Override
      public void setFocus() {
        // Do nothing
      }
     
      @Override
      public Control getControl() {
        return composite;
      }
     
      @Override
      public void createControl(Composite parent) {
        composite = new Composite(parent,SWT.NONE);       
      }
    };
    initPage(page);
    page.createControl(getPageBook());
    return page;
  }
View Full Code Here

      return;
    }
    Control control = outline.getControl();
    if (control == null || control.isDisposed()) {
      if (outline instanceof Page) {
        Page page = (Page) outline;
        page.init(getSite());
      }
      outline.createControl(pagebook);
      control = outline.getControl();
    }
    pagebook.showPage(control);
View Full Code Here

TOP

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

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.