@Override public String getDisplayName() { return descriptor.getDisplayName(); }
public Object getId() { return _inner.getId(); }
@Override public String getDescription() { return descriptor.getDescription(); }
@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$ }
.isCompatibleWith((IPropertyDescriptor) object)) { intersection.remove(ids[j]); IPropertyDescriptor[] firstDescs = firstSource.getPropertyDescriptors(); for (IPropertyDescriptor desc : firstDescs) { if (intersection.containsKey(desc.getId())) { result.add(desc);
public ILabelProvider getLabelProvider() { return _inner.getLabelProvider(); }
@Override protected CellEditor getCellEditor(Object object) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); IPropertyDescriptor[] propertyDescriptors = propertySource .getPropertyDescriptors(); for (IPropertyDescriptor propertyDescriptor : propertyDescriptors) { if (propertyID.equals(propertyDescriptor.getId())) { return propertyDescriptor .createPropertyEditor((Composite) getViewer() .getControl()); } } return null; }
/** * The <code>SimplePropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method returns true if the other * property has the same id and category and <code>getAlwaysIncompatible()</code> * returns false */ @Override public boolean isCompatibleWith(IPropertyDescriptor anotherProperty) { if (getAlwaysIncompatible()) { return false; } // Compare id Object id1 = getId(); Object id2 = anotherProperty.getId(); if (!id1.equals(id2)) { return false; } // Compare Category (may be null) if (getCategory() == null) { if (anotherProperty.getCategory() != null) { return false; } } else { if (!getCategory().equals(anotherProperty.getCategory())) { return false; } } return true; }
public CellEditor createCellEditor(Composite parent1) { if (_inner != null) { return _inner.createPropertyEditor(parent1); } return new TextCellEditor(parent1); } };
public String[] getFilterFlags() { if (_inner != null) { return _inner.getFilterFlags(); } return null; }
public Object getHelpContextIds() { return descriptor.getHelpContextIds(); }
public boolean isCompatibleWith(IPropertyDescriptor anotherProperty) { if (anotherProperty instanceof PropertyDescriptorWrapper) { return _inner .isCompatibleWith(((PropertyDescriptorWrapper) anotherProperty) .getInner()); } return _inner.isCompatibleWith(anotherProperty); }
public String getCategory() { return descriptor.getCategory(); }
@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; } }
.isCompatibleWith((IPropertyDescriptor) object)) { intersection.remove(ids[j]); IPropertyDescriptor[] firstDescs = firstSource.getPropertyDescriptors(); for (IPropertyDescriptor desc : firstDescs) { if (intersection.containsKey(desc.getId())) { result.add(desc);
@Override public Image getImage() { ILabelProvider provider = descriptor.getLabelProvider(); if (provider == null) { return null; } return provider.getImage(editValue); }
@Override protected CellEditor getCellEditor(Object object) { IPropertySource propertySource = propertySourceProvider .getPropertySource(object); IPropertyDescriptor[] propertyDescriptors = propertySource .getPropertyDescriptors(); for (IPropertyDescriptor propertyDescriptor : propertyDescriptors) { if (propertyID.equals(propertyDescriptor.getId())) { return propertyDescriptor .createPropertyEditor((Composite) getViewer() .getControl()); } } return null; }
/** * The <code>SimplePropertyDescriptor</code> implementation of this * <code>IPropertyDescriptor</code> method returns true if the other * property has the same id and category and <code>getAlwaysIncompatible()</code> * returns false */ public boolean isCompatibleWith(IPropertyDescriptor anotherProperty) { if (getAlwaysIncompatible()) { return false; } // Compare id Object id1 = getId(); Object id2 = anotherProperty.getId(); if (!id1.equals(id2)) { return false; } // Compare Category (may be null) if (getCategory() == null) { if (anotherProperty.getCategory() != null) { return false; } } else { if (!getCategory().equals(anotherProperty.getCategory())) { return false; } } return true; }
public CellEditor getCellEditor(Object o, int col) { IPropertyDescriptor pd = propertyDescriptorFactory.createPropertyDescriptor(o); return pd != null ? pd.createPropertyEditor(control) : null; } }
@Override public String getFilters()[] { return descriptor.getFilterFlags(); }