Marker, update view [message #327758] |
Wed, 30 April 2008 11:34 |
Eclipse User |
|
|
|
I want to apply a marker to a resource and have the resource decorated
with my icon in the appropriate views. I'm using extensions
org.eclipse.core.resources.markers to define the marker
org.eclipse.ui.docorators and an ILightweightLabelDecorator to define the
decorator
org.eclipse.ui.popupMenus and an IObjectActionDelegate to mark the resource
Specifically, in my IObjectActionDelegate I create the marker with
IMarker marker = resource.createMarker("myMarker");
marker.setAttribute("attr", true);
This all works, except the label decorator isn't called when the marker is
created. If I close and reopen the project, the resource is decorated the
way I want it, so I know the basic stuff is working.
I must be missing some event to notify the right listeners that the
resource has changed. I can't figure out how to fire this event. Any
suggestions?
|
|
|
Powered by
FUDForum. Page generated in 0.03612 seconds