Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » light weight Decorators
light weight Decorators [message #288973] Wed, 27 July 2005 05:43
Eclipse UserFriend
Originally posted by: bartoszb.poczta.fm

Is it possible to add a decorator to a class witch not implements
IResouce Interface?

I want to add a decorator to all classes witch extend abstract class
TreeElement
I tried to do it but it doesn't work
Where is my mistake?


My plugin.xml
<extension point="org.eclipse.ui.decorators">
<decorator
id="borass.telescope.decorators.unsaved.unsavedelementdecorator "
label="Unsaved element"
state="true"

class="borass.telescope.decorators.unsaved.UnsavedElementDecorator "
lightweight="true"
location="TOP_LEFT">
<enablement >
<objectClass name="borass.telescope.views.TreeElement" />
</enablement >

</decorator>
</extension>

and
public abstract class TreeElement {} {
(some code)
}





Is it possible to add a decorator to a class witch not implements
IResouce Interface?

I want to add a decorator to all classes witch extend abstract class
TreeElement
I tried to do it but it doesn't work
Where is my mistake?


My plugin.xml
<extension point="org.eclipse.ui.decorators">
<decorator
id="borass.telescope.decorators.unsaved.unsavedelementdecorator "
label="Unsaved element"
state="true"

class="borass.telescope.decorators.unsaved.UnsavedElementDecorator "
lightweight="true"
location="TOP_LEFT">
<enablement >
<objectClass name="borass.telescope.views.TreeElement" />
</enablement >

</decorator>
</extension>

and
public abstract class TreeElement {} {
(some code)
}
Previous Topic:How to create pulldown editor action?
Next Topic:StatusLineContributionItem in Eclipse 3.1: discouraged access
Goto Forum:
  


Current Time: Thu Jul 17 11:43:40 EDT 2025

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

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

Back to the top