Package org.eclipse.core.databinding.property.value

Examples of org.eclipse.core.databinding.property.value.IValueProperty


    //
    IObservableList methodEditorgetMethodParametersObserveList = BeansObservables.observeList(Realm.getDefault(), method, "parameters");
    tableViewer.setInput(methodEditorgetMethodParametersObserveList);
    //
    CellEditor cellEditor = new TextCellEditor(tableViewer.getTable());
    IValueProperty cellEditorProperty = BeanProperties.value("value");
    IBeanValueProperty valueProperty = BeanProperties.value("name");
    nameColumn.setEditingSupport(ObservableValueEditingSupport.create(tableViewer, bindingContext, cellEditor, cellEditorProperty, valueProperty));
    //
    CellEditor cellEditor_1 = new TextCellEditor(tableViewer.getTable());
    IValueProperty cellEditorProperty_1 = BeanProperties.value("value");
    IBeanValueProperty valueProperty_1 = BeanProperties.value("type");
    typeColumn.setEditingSupport(ObservableValueEditingSupport.create(tableViewer, bindingContext, cellEditor_1, cellEditorProperty_1, valueProperty_1));
    //
    CellEditor cellEditor_2 = new CheckboxCellEditor(tableViewer.getTable());
    IValueProperty cellEditorProperty_2 = BeanProperties.value("value");
    IBeanValueProperty valueProperty_2 = BeanProperties.value("copy");
    copyColumn.setEditingSupport(ObservableValueEditingSupport.create(tableViewer, bindingContext, cellEditor_2, cellEditorProperty_2, valueProperty_2));
    //
    CellEditor parsingCombo = new ComboBoxCellEditor(tableViewer.getTable(), ToolParameter.PT_VALUES);
    IValueProperty cellEditorProperty_3 = BeanProperties.value("value");
    IBeanValueProperty valueProperty_3 = BeanProperties.value("parsingType");
    parsingColumn.setEditingSupport(ObservableValueEditingSupport.create(tableViewer, bindingContext, parsingCombo, cellEditorProperty_3, valueProperty_3));
    //
    CellEditor cellEditor_4 = new TextCellEditor(tableViewer.getTable());
    IValueProperty cellEditorProperty_4 = BeanProperties.value("value");
    IBeanValueProperty valueProperty_4 = BeanProperties.value("defaultValue");
    defaultColumn.setEditingSupport(ObservableValueEditingSupport.create(tableViewer, bindingContext, cellEditor_4, cellEditorProperty_4, valueProperty_4));
    //
    return bindingContext;
  }
View Full Code Here


  private IValueProperty getClassDelegate(Class beanClass) {
    if (delegates.containsKey(beanClass))
      return (IValueProperty) delegates.get(beanClass);

    IValueProperty delegate;
    try {
      delegate = BeanProperties.value(beanClass, propertyName,
          (Class) getValueType());
    } catch (IllegalArgumentException noSuchProperty) {
      delegate = null;
View Full Code Here

    String[] propertyNames = split(propertyName);
    if (propertyNames.length > 1)
      valueType = null;

    PropertyDescriptor propertyDescriptor;
    IValueProperty property;
    if (beanClass == null) {
      propertyDescriptor = null;
      property = new AnonymousBeanValueProperty(propertyNames[0],
          valueType);
    } else {
View Full Code Here

      String propertyName, Class valueType) {
    String[] propertyNames = split(propertyName);
    if (propertyNames.length > 1)
      valueType = null;

    IValueProperty property;
    PropertyDescriptor propertyDescriptor;
    if (beanClass == null) {
      propertyDescriptor = null;
      property = new PojoValuePropertyDecorator(
          new AnonymousPojoValueProperty(propertyNames[0], valueType),
View Full Code Here

      }
    });
  }

  private DelegateCache getCache(Object masterElement) {
    IValueProperty delegate = detailProperty.getDelegate(masterElement);
    if (delegateCaches.containsKey(delegate)) {
      return (DelegateCache) delegateCaches.get(delegate);
    }
    return new DelegateCache(delegate);
  }
View Full Code Here

  private IValueProperty getClassDelegate(Class pojoClass) {
    if (delegates.containsKey(pojoClass))
      return (IValueProperty) delegates.get(pojoClass);

    IValueProperty delegate;
    try {
      delegate = PojoProperties.value(pojoClass, propertyName,
          (Class) getValueType());
    } catch (IllegalArgumentException noSuchProperty) {
      delegate = null;
View Full Code Here

    return (IObservableValue) builder.observe(value);
  }

  public static IValueProperty createValueProperty(Object control,
      Object type, BindingExpressionPath expressionPath) {
    IValueProperty valueProperty = null;

    String[] segments = expressionPath.getSegments();
    if (segments == null || segments.length == 0) {
      String segment = expressionPath.getFullPath();
      valueProperty = doCreateValueProperty(type, segment);
    } else {
      for (String segment : segments) {
        IValueProperty segmentValueProperty = doCreateValueProperty(
            type, segment);
        if (valueProperty == null) {
          valueProperty = segmentValueProperty;
        } else {
          valueProperty = valueProperty.value(segmentValueProperty);
View Full Code Here

    delegate.removeStaleListener(listener);
  }

  protected void checkDelegated() {
    if (delegate == null) {
      IValueProperty property = ScopeManager.createValueProperty(control, data, new BindingExpressionPath(path));
      delegate = property.observeDetail(domain);       
      for (IMapChangeListener listener : changeListeners) {
        delegate.addMapChangeListener(listener);
      }
      changeListeners.clear();
    }
View Full Code Here

    String[] propertyNames = split(propertyName);
    if (propertyNames.length > 1)
      valueType = null;

    PropertyDescriptor propertyDescriptor;
    IValueProperty property;
    if (beanClass == null) {
      propertyDescriptor = null;
      property = new AnonymousFXBeanValueProperty(propertyNames[0],
          valueType);
    } else {
View Full Code Here

  private IValueProperty getClassDelegate(Class<?> beanClass) {
    if (delegates.containsKey(beanClass))
      return delegates.get(beanClass);

    IValueProperty delegate;
    try {
      delegate = JFXBeanProperties.value(beanClass, propertyName,
          (Class<?>) getValueType());
    } catch (IllegalArgumentException noSuchProperty) {
      delegate = null;
View Full Code Here

TOP

Related Classes of org.eclipse.core.databinding.property.value.IValueProperty

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.