Package org.eclipse.wb.internal.core.databinding.model.presentation

Examples of org.eclipse.wb.internal.core.databinding.model.presentation.SimpleObservePresentation


    if (m_SimpleComboBoxClass.isAssignableFrom(widgetType)
        || m_TimeFieldClass.isAssignableFrom(widgetType)
        || m_FieldClass.isAssignableFrom(widgetType)
        || m_FormPanelClass.isAssignableFrom(widgetType)
        || widgetType == getClass()) {
      SimpleObservePresentation presentation =
          new SimpleObservePresentation("<Self Object>",
              "",
              TypeImageProvider.SELF_OBJECT_PROPERTY_IMAGE);
      return ImmutableList.of(new WidgetPropertyObserveInfo(presentation));
    }
    if (m_GridClass.isAssignableFrom(widgetType)) {
      SimpleObservePresentation presentation =
          new SimpleObservePresentation("selection", "selection", TypeImageProvider.OBJECT_IMAGE);
      return ImmutableList.of(new WidgetPropertyObserveInfo(presentation));
    }
    //
    return Collections.emptyList();
  }
View Full Code Here


      IObserveInfo parent,
      boolean addSelf) throws Exception {
    List<BeanPropertyObserveInfo> properties = Lists.newArrayList();
    //
    if (addSelf) {
      SimpleObservePresentation selfPresentation =
          new SimpleObservePresentation("<Self Object>",
              "",
              TypeImageProvider.SELF_OBJECT_PROPERTY_IMAGE);
      properties.add(new BeanPropertyObserveInfo(null,
          parent,
          StringReferenceProvider.EMPTY,
          selfPresentation,
          IObserveDecorator.BOLD));
    }
    //
    for (String propertyName : getStringProperties(beanClass)) {
      Class<?> propertyClass = m_classes.get(beanClass).get(propertyName);
      if (propertyClass == null) {
        propertyClass = Object.class;
      }
      IReferenceProvider referenceProvider =
          new StringReferenceProvider("\"" + propertyName + "\"");
      IObservePresentation presentation =
          new SimpleObservePresentation(propertyName,
              propertyName,
              TypeImageProvider.getImage(propertyClass));
      IObserveDecorator decorator = IObserveDecorator.DEFAULT;
      properties.add(new BeanPropertyObserveInfo(propertyClass,
          parent,
View Full Code Here

    }
    //
    String propertyName = StringUtils.remove(reference, '"');
    IReferenceProvider referenceProvider = new StringReferenceProvider(reference);
    IObservePresentation presentation =
        new SimpleObservePresentation(propertyName, propertyName, TypeImageProvider.OBJECT_IMAGE);
    IObserveDecorator decorator = IObserveDecorator.DEFAULT;
    //
    return new BeanPropertyObserveInfo(Object.class,
        null,
        referenceProvider,
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.databinding.model.presentation.SimpleObservePresentation

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.