Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.IPage


      updateHelp();
      // update console actions
      if (fPinAction != null) {
          fPinAction.update();
      }
      IPage page = getCurrentPage();
      if (page instanceof IOConsolePage) {
          ((IOConsolePage)page).setAutoScroll(!fScrollLock);
      }
  }
View Full Code Here


          }
        });
          }
    }

    IPage page = pageRecord.page;
    page.dispose();
    pageRecord.dispose();
    console.removePropertyChangeListener(this);
           
    // empty cross-reference cache
    fPartToConsole.remove(part);
View Full Code Here

     * @see org.eclipse.ui.console.IConsoleView#setScrollLock(boolean)
     */
    public void setScrollLock(boolean scrollLock) {
        fScrollLock = scrollLock;

        IPage page = getCurrentPage();
        if (page instanceof IOConsolePage) {
            ((IOConsolePage)page).setAutoScroll(!scrollLock);
        }
    }
View Full Code Here

   * @return the template store, or <code>null</code> if the current page does not provide that
   *         information
   * @since 3.6
   */
  public TemplateStore getTemplateStore() {
    IPage currentPage= getCurrentPage();
    if (currentPage instanceof ITemplatesPageExtension)
      return ((ITemplatesPageExtension)currentPage).getTemplateStore();
    return null;
  }
View Full Code Here

   * @return array of selected templates, or <code>null</code> if the current page does not
   *         provide that information
   * @since 3.6
   */
  public TemplatePersistenceData[] getSelectedTemplates() {
    IPage currentPage= getCurrentPage();
    if (currentPage instanceof ITemplatesPageExtension)
      return ((ITemplatesPageExtension)currentPage).getSelectedTemplates();
    return null;
  }
View Full Code Here

    if (part != null) {
      propertySheet.partClosed(part);
      propertySheet.partActivated(part);

      // lets check if we have created and initialised a different page instance in the activation...
      IPage currentPage = propertySheet.getCurrentPage();
      IPropertySheetPage selectionPage = page;
      if (currentPage instanceof IPropertySheetPage) {
        selectionPage = (IPropertySheetPage) currentPage;

        // now lets dispose the old page we are not using
View Full Code Here

        return PageTabDescriptor.this.getId();
      }

      @Override
      public ISection getSectionClass() {
        IPage page = createPage();
        if (page instanceof ISection) {
          return (ISection) page;
        } else {
          return new PageSection(page);
        }
View Full Code Here

  @Override
  public void refresh() {
    super.refresh();

    IPage currentPage = Workbenches.getPropertySheetPage();
    Refreshables.refresh(currentPage);
  }
View Full Code Here

            IViewPart part = PlatformUI.getWorkbench()
                .getActiveWorkbenchWindow().getActivePage()
                .findView(IPageLayout.ID_PROP_SHEET);
            if (part instanceof PropertySheet) {
              PropertySheet sheet = (PropertySheet) part;
              IPage page = sheet.getCurrentPage();
              if (page instanceof PropertySheetPage)
                ((PropertySheetPage) page).refresh();
            }
            if (traceActive)
              GitTraceLocation
View Full Code Here

    }
  }
 
  @Override
  public void run(IAction action) {
    IPage currentPage = tilesetView.getCurrentPage();
    if (currentPage instanceof TilesetPage) {
      runForMap(action,((TilesetPage) currentPage).getMapEditor().getMap());
    }
  }
View Full Code Here

TOP

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

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.