Package org.eclipse.ui.views.properties.tabbed

Examples of org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage


  public Object getAdapter(Class adapter) {
    if (adapter == IPropertySource.class) {
      return new ModelPropertySource((AbstractObject) getModel());
    }
    if (adapter == IPropertySheetPage.class) {
      return new TabbedPropertySheetPage(this);
    }
    return super.getAdapter(adapter);
  }
View Full Code Here


      if (!(Boolean) graph.getValue(Graph.PROPERTY_HAS_LAYOUT)) {
        automaticallyLayout(PositionConstants.EAST);
      }
    }

    this.tabbedPropertySheetPage = new TabbedPropertySheetPage(this);
  }
View Full Code Here

  @Override
  public Object getAdapter(final Class _adapterClass) {
    Object adapter;
    if (_adapterClass == IPropertySheetPage.class) {
      adapter = new TabbedPropertySheetPage(this);
    } else if (_adapterClass == IContentOutlinePage.class) {
      IContentOutlinePage outlinePage = getContentOutlinePage();
      adapter = outlinePage;
    } else {
      adapter = super.getAdapter(_adapterClass);
View Full Code Here

          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;
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
   */
  @Override
  public Object getAdapter(Class adapter) {
    if (adapter == IPropertySheetPage.class) return new TabbedPropertySheetPage(this);
    if (this instanceof NodeSupport) return Platform.getAdapterManager().getAdapter(this, adapter);
    return null;
  }
View Full Code Here

    if (adapter == RiderDesignEditor.class) {
      return this.designEditor;
    } else if (adapter == TextEditor.class) {
      return this.sourceEditor;
    } else if (adapter == IPropertySheetPage.class) {
      return new TabbedPropertySheetPage(this);
    } else if (adapter == ActionRegistry.class) {
      // this is needed otherwise switching between source
      // and design tab sometimes throws NPE
      return designEditor.getActionRegistry();
    } else if (adapter == IDocumentProvider.class) {
View Full Code Here

    }
  }

  public IPropertySheetPage getPropertySheetPage() {
    if (propertySheetPage == null) {
      propertySheetPage = new TabbedPropertySheetPage(this) {
        @Override
        public void setActionBars(IActionBars actionBars) {
          super.setActionBars(actionBars);
            actionBars.setGlobalActionHandler(ActionFactory.UNDO.getId(), undoAction);
            actionBars.setGlobalActionHandler(ActionFactory.REDO.getId(), redoAction);
View Full Code Here

      public String getContributorId() {
        return "org.jboss.tools.jmx.jvmmonitor.ui.JvmExplorer";
      }
    };
    if (adapter == IPropertySheetPage.class) {
      return new TabbedPropertySheetPage(contributor);
    } else if (adapter == ITabbedPropertySheetPageContributor.class) {
      return contributor;
    }
    return null;
  }
View Full Code Here

  }

  @Override
  public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
    if (adapter == IPropertySheetPage.class) {
      return new TabbedPropertySheetPage(this);
    }
    return super.getAdapter(adapter);
  }
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
   */
  public Object getAdapter(Object adaptableObject, Class adapterType) {
    if (adapterType == IPropertySheetPage.class)
      return new TabbedPropertySheetPage(this);
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage

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.