@Override protected Object getValue(Object object) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); Object value = propertySource.getPropertyValue(propertyID); IPropertySource valuePropertySource = propertySourceProvider .getPropertySource(value); if (valuePropertySource != null) { value = valuePropertySource.getEditableValue(); } return value; }
@Override protected Object getValue(Object object) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); Object value = propertySource.getPropertyValue(propertyID); IPropertySource valuePropertySource = propertySourceProvider .getPropertySource(value); if (valuePropertySource != null) { value = valuePropertySource.getEditableValue(); } return value; }
@Override public String getText(Object object) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); IPropertyDescriptor[] propertyDescriptors = propertySource .getPropertyDescriptors(); for (IPropertyDescriptor propertyDescriptor : propertyDescriptors) { if (propertyID.equals(propertyDescriptor.getId())) { return propertyDescriptor.getLabelProvider().getText( propertySource.getPropertyValue(propertyID)); } } return ""; //$NON-NLS-1$ }
@Override public String getText(Object object) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); IPropertyDescriptor[] propertyDescriptors = propertySource .getPropertyDescriptors(); for (IPropertyDescriptor propertyDescriptor : propertyDescriptors) { if (propertyID.equals(propertyDescriptor.getId())) { return propertyDescriptor.getLabelProvider().getText( propertySource.getPropertyValue(propertyID)); } } return ""; //$NON-NLS-1$ }
@Override public Image getImage(Object object) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); IPropertyDescriptor[] propertyDescriptors = propertySource .getPropertyDescriptors(); for (IPropertyDescriptor propertyDescriptor : propertyDescriptors) { if (propertyID.equals(propertyDescriptor.getId())) { return propertyDescriptor.getLabelProvider().getImage( propertySource.getPropertyValue(propertyID)); } } return null; } }
@Override public Image getImage(Object object) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); IPropertyDescriptor[] propertyDescriptors = propertySource .getPropertyDescriptors(); for (IPropertyDescriptor propertyDescriptor : propertyDescriptors) { if (propertyID.equals(propertyDescriptor.getId())) { return propertyDescriptor.getLabelProvider().getImage( propertySource.getPropertyValue(propertyID)); } } return null; } }
/** * Update our value objects. We ask our parent for the property values based * on our descriptor. */ private void refreshValues() { // get our parent's value objects Object[] currentSources = parent.getValues(); // loop through the objects getting our property value from each Object[] newValues = new Object[currentSources.length]; for (int i = 0; i < currentSources.length; i++) { IPropertySource source = parent.getPropertySource(currentSources[i]); newValues[i] = source.getPropertyValue(descriptor.getId()); } // set our new values setValues(newValues); }
/** * Update our value objects. We ask our parent for the property values based * on our descriptor. */ private void refreshValues() { // get our parent's value objects Object[] currentSources = parent.getValues(); // loop through the objects getting our property value from each Object[] newValues = new Object[currentSources.length]; for (int i = 0; i < currentSources.length; i++) { IPropertySource source = parent .getPropertySource(currentSources[i]); newValues[i] = source.getPropertyValue(descriptor.getId()); } // set our new values setValues(newValues); }
/** * Update our value objects. We ask our parent for the property values based * on our descriptor. */ private void refreshValues() { // get our parent's value objects Object[] currentSources = parent.getValues(); // loop through the objects getting our property value from each Object[] newValues = new Object[currentSources.length]; for (int i = 0; i < currentSources.length; i++) { IPropertySource source = parent .getPropertySource(currentSources[i]); newValues[i] = source.getPropertyValue(descriptor.getId()); } // set our new values setValues(newValues); }