[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Having trouble to make label decorator working

Hi,

I'm still stuck at this point.
My overlay image meet the requirements described in http://www.eclipse.org/articles/Article-UI-Guidelines/Contents.html#IconSpecsSize_VDG
It seems to be easy but I can't make that working.


Thanks for the help,
Regards,
Julien


Julien a écrit :
Hello,


I don't succeed in implementing a Label decoration for a TreeViewer. I just need to have image decoration so I assume I only need a LightWeight decorator. I have defined it according to what I have understood from eclispe Help (Platform Plug-in Developer Guide > Programmer's Guide > Advanced workbench concepts > Decorators).


Here is what i have done:
in plugin.xml:

<extension
         point="org.eclipse.ui.decorators">
      <decorator
            icon="icons/question_ov.gif"
            id="azerty.decorator"
            label="label"
            lightweight="true"
            location="BOTTOM_RIGHT"
            state="false">
         <enablement>
            <objectClass
                  name="azerty.NavigationView$TreeObject">
            </objectClass>
         </enablement>
      </decorator>
   </extension>

I must be missing something. Does a complete example of this kind of implementation exists?

Regards,
Julien