Package org.eclipse.ui.views.properties

Examples of org.eclipse.ui.views.properties.PropertySheet


  private Class<?> oldPageType = PropertySheetPage.class;
  private IPropertySheetPage oldPage;


  public void selectionChanged(IWorkbenchPart part, ISelection selection) {
    PropertySheet propertySheet = getPropertySheet();
    if (propertySheet == null) {
      return;
    }
    IPropertySheetPage answer = null;
    Object first = Selections.getFirstSelection(selection);
View Full Code Here


    // initial clear of the columns field filled when creating the action
    this.columns = null;
   
    IWorkbenchPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActivePart();
    if (part instanceof PropertySheet) {
      PropertySheet ps = (PropertySheet)part;
      if (ps.getCurrentPage() instanceof PropertySourceTableSheetPage) {
        PropertySourceTableSheetPage sp = (PropertySourceTableSheetPage)ps.getCurrentPage();
        this.columns = (IConfigurableColumns)sp.getTableView();
      } else {
          ISection[] secs = null;
          if (ps.getCurrentPage() instanceof TabFolderSupport2) {
            TabFolderSupport2 tfs = (TabFolderSupport2)ps.getCurrentPage();
            secs = ((TabContents)tfs.getCurrentTab()).getSections();
          } else if (ps.getCurrentPage() instanceof TabbedPropertySheetPage) {
              TabbedPropertySheetPage tabbedPage = (TabbedPropertySheetPage) ps.getCurrentPage();
              secs = tabbedPage.getCurrentTab() == null ? null : tabbedPage.getCurrentTab().getSections();
          }
          if (secs != null) {
            for (ISection sec : secs) {
              if (sec instanceof IConfigurableColumns) {
                this.columns = (IConfigurableColumns) sec;
                break;
              } else {
                Activator.getLogger().warning("Unsupported type: " + sec.getClass().getName());
              }
            }
          } else {
            Activator.getLogger().warning("Unsupported type: " + ps.getCurrentPage().getClass().getName());
          }
      }
    } else if (part instanceof TableViewSupport) {
      this.columns = (IConfigurableColumns) ((TableViewSupport)part);
    } else {
View Full Code Here

  }

  public static IPage getPropertySheetPage() {
    final IViewPart view = findView(DynamicPropertySheetTracker.PROPERTIES_VIEW_ID);
    if (view instanceof PropertySheet) {
      PropertySheet propertySheet = (PropertySheet) view;
      return propertySheet.getCurrentPage();
    }
    return null;
  }
View Full Code Here

      try {
        fabricNode.getFabricService().setRequirements(reqs);
      } finally {
        IWorkbenchPart wp = HandlerUtil.getActivePart(event);
        if (wp instanceof PropertySheet) {
          PropertySheet ps = (PropertySheet)wp;
          if (ps.getCurrentPage() instanceof FabricTabViewPage) {
            FabricTabViewPage ftvp = (FabricTabViewPage)ps.getCurrentPage();
            ftvp.refresh();   
          }
        }
      }
    }
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

TOP

Related Classes of org.eclipse.ui.views.properties.PropertySheet

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.