|
|
Re: hide single property attribute [message #189124 is a reply to message #189107] |
Fri, 23 May 2008 13:43 |
Eclipse User |
|
|
|
Originally posted by: gmerin.integranova.com
Hi Paolo,
You could have achieve that just changing the "property type" to "None"
within your genmodel. It changes the below code for you automatically.
Regards,
Gabriel.
paolo escribió:
> don't know if it's the better way, but I did by commenting out
>
> public List getPropertyDescriptors(Object object) {
> if (itemPropertyDescriptors == null) {
> super.getPropertyDescriptors(object);
> [...]
> addCSSPaddingRightPropertyDescriptor(object);
> addRenderedELPropertyDescriptor(object);
> //addCustomCodePropertyDescriptor(object); //don't get displayed!!
> addRequiredPropertyDescriptor(object);
> addStyleClassPropertyDescriptor(object);
> [...]
> }
> return itemPropertyDescriptors;
> }
>
>
> in xxxxxItemProvider.java
>
> This does not remove the eattribute, but prevents only to be enlisted in
> the property sheets. Anyway you can access it by get/set methods if you
> need to, this is the case if you do a custom tab sheet property view
> with a specific editor for a property (here I have a large swt textarea
> where to paste & edit code inside).
>
|
|
|
Powered by
FUDForum. Page generated in 0.02951 seconds