Examples of IPropertySourceProvider


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

  }
 
  public IPropertySource getPropertySource(Object object) {
    if (object == null)
      return new PropertySource2(null, new IWidgetPropertyDescriptor[0]);
    IPropertySourceProvider provider = getProvider(object);
    if (provider != null) {
      return provider.getPropertySource(object);
    } else
      return null;
  }
View Full Code Here

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

      final Sash sash = new Sash(annotationsComposite, SWT.HORIZONTAL);

      final PropertySheetPage propertySheet = new PropertySheetPage();
      propertySheet.createControl(annotationsComposite);
      propertySheet.setPropertySourceProvider(new IPropertySourceProvider() {
        public IPropertySource getPropertySource(Object object) {
          if (object instanceof Annotation) {
            IPropertySource annotationPropertySource = new AnnotationPropertySource(((Annotation) object));
            return annotationPropertySource;
          }
View Full Code Here

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

   * @return
   */
  private PropertySheetPage getPropertySheetPage() {
    if (null == _propertySheetPage) {
      _propertySheetPage = new PropertySheetPage();
      _propertySheetPage.setPropertySourceProvider(new IPropertySourceProvider() {

        @Override
        public IPropertySource getPropertySource(final Object object) {
          return new ScannedMapPropertySource((ScannedMap) object);
        }
View Full Code Here

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

   * @return
   */
  private PropertySheetPage getPropertySheetPage() {
    if (null == _propertySheetPage) {
      _propertySheetPage = new PropertySheetPage();
      _propertySheetPage.setPropertySourceProvider(new IPropertySourceProvider() {

        @Override
        public IPropertySource getPropertySource(final Object object) {
          return new ScannedMapPropertySource((ScannedMap) object);
        }
View Full Code Here

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

    if (object instanceof IPropertySource) {
      return (IPropertySource) object;
    }
    IPropertySource answer = null;
    if (object instanceof IPropertySourceProvider) {
      IPropertySourceProvider provider = (IPropertySourceProvider) object;
      answer = provider.getPropertySource(object);
    }
    if (answer == null && object != null) {
      try {
        return new BeanPropertySource(object);
      } catch (IntrospectionException e) {
View Full Code Here

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

            TableViewerColumn col = headers.get(header);
            if (col == null) {
              col = createTableViewerColumn(header, bounds, column++);
              headers.put(header, col);

              IPropertySourceProvider propertySourceProvider = new IPropertySourceProvider() {
                @Override
                public IPropertySource getPropertySource(Object object) {
                  return PropertySources.asPropertySource(object);
                }
View Full Code Here

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

    List<IPropertySource> list = new ArrayList<IPropertySource>();
    List<Node> children = getChildrenList();
    for (Node node : children) {
      IPropertySource propertySource = null;
      if (node instanceof IPropertySourceProvider) {
        IPropertySourceProvider provider = (IPropertySourceProvider) node;
        propertySource = provider.getPropertySource(node);
        if (propertySource != null) {
          list.add(propertySource);
        }
      }
      if (propertySource == null && node instanceof RefreshableCollectionNode) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.