views:

190

answers:

0

Hi all.

I am developing an Eclipse plugin in which the elements shown on my Editor (a GEF one) can have properties modified within the Eclipse Properties View.

The problem is that, in some cases, depending on a readOnly flag set in the element, its properties should be displayed but not modified.

Is there a way to achieve this behavior without having to create a new view? I thought about doing something in the public IPropertyDescriptor[] getPropertyDescriptors() method in my element part, from where I can check the read-only flag. But I can't see anything in the org.eclipse.ui.views.properties.IPropertyDescriptor interface that could help.

Thanks in advance, Othon