Declarative lightweight decorator [message #684847] |
Thu, 16 June 2011 06:45  |
Eclipse User |
|
|
|
Hi,
I've implemented custom declarative lightweight decorator in my RCP application, but I cannot obtain to enable it based on "objectState". That's my plugin.xml relevant snippet:
<decorator
lightweight="true"
location="BOTTOM_LEFT"
label="Label"
icon="icons/[some_pic].gif"
state="true"
id="xxx.mycompany.MyObjectDecorator">
<description>
Indicates whether an object is...
</description>
<enablement>
<and>
<objectClass
name="xxx.mycompany.MyObject"/>
<objectState name="[xxx]BooleanProperty" value="false"/>
</and>
</enablement>
</decorator>
The "objectClass" entry works fine, the "objectState" entry was ignored.....any help?
Thank you,
Giovanni
|
|
|
(no subject) [message #692585 is a reply to message #684847] |
Mon, 04 July 2011 14:58  |
Eclipse User |
|
|
|
Hi,
Is the plugin active that provides the state?
Regards,
Wim Jongman
> Hi,
>
> I've implemented custom declarative lightweight decorator in my RCP
application, but I cannot obtain to enable it based on "objectState". That's
my plugin.xml relevant snippet:
>
> <decorator
> lightweight="true"
> location="BOTTOM_LEFT"
> label="Label"
> icon="icons/[some_pic].gif"
> state="true"
> id="xxx.mycompany.MyObjectDecorator">
> <description>
> Indicates whether an object is...
> </description>
> <enablement>
> <and>
> <objectClass
> name="xxx.mycompany.MyObject"/>
> <objectState name="[xxx]BooleanProperty" value="false"/>
> </and>
> </enablement>
> </decorator>
>
> The "objectClass" entry works fine, the "objectState" entry was
ignored.....any help?
>
> Thank you,
>
> Giovanni
|
|
|
Powered by
FUDForum. Page generated in 0.03762 seconds