Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Declarative lightweight decorator(how to enable it?)
Declarative lightweight decorator [message #684847] Thu, 16 June 2011 10:45 Go to next message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

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 18:58 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
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
Previous Topic:How to prevent perspective switch
Next Topic:Selection Service
Goto Forum:
  


Current Time: Fri Apr 26 06:50:55 GMT 2024

Powered by FUDForum. Page generated in 0.03383 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top