|
Re: Different Properties in properties view for multiple objects selction [message #892824 is a reply to message #890176] |
Fri, 29 June 2012 22:48 |
|
Hi ModelGeek,
What kinds of org.eclipse.ui.views.properties.IPropertyDescriptor do you use?
Maybe you could take a look at this method, which is defined by the org.eclipse.ui.views.properties.IPropertyDescriptor :
/**
* Returns whether this property descriptor and the given one are compatible.
* <p>
* The property sheet uses this method during multiple selection to determine
* whether two property descriptors with the same id are in fact the same
* property and can be displayed as a single entry in the property sheet.
* </p>
*
* @param anotherProperty the other property descriptor
* @return <code>true</code> if the property descriptors are compatible, and
* <code>false</code> otherwise
*/
public boolean isCompatibleWith(IPropertyDescriptor anotherProperty);
You could derive your own class from the default org.eclipse.ui.views.properties.PropertyDescriptor and override the isCompatibleWith method, or use the org.eclipse.ui.views.properties.PropertyDescriptor#setAlwaysIncompatible(boolean flag) method, so that the isCompatibleWith always returns false.
I hope this is what you actually want to achieve and that I was able to help you again.
Do not hesitate to ask further question, if something is unclear or I missunderstood what you really want to achieve.
Best regards,
Simon
|
|
|
Powered by
FUDForum. Page generated in 0.02841 seconds