Если вы используете стандартную страницу свойств из Eclipse, то от реализации IPropertyDescriptor
, возвращаемой IPropertySource.getPropertyDescriptors
, зависит, будет ли ваше свойство редактироваться в представлении.
Если вы посмотрите на JavaDoc IPropertyDescriptor
, вы увидите следующее:
Clients may implement this interface to provide specialized property
descriptors; however, there are standard implementations declared in this
package that take care of the most common cases:
* PropertyDescriptor - read-only property
* TextPropertyDescriptor - edits with a TextCellEditor
* CheckboxPropertyDescriptor - edits with a CheckboxCellEditor
* ComboBoxPropertyDescriptor - edits with a ComboBoxCellEditor
* ColorPropertyDescriptor - edits with a ColorCellEditor
Так что для вашего случая возвращение PropertyDescriptor
должно сработать.