Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Marker, update view
Marker, update view [message #327758] Wed, 30 April 2008 11:34
Eclipse UserFriend
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?
Previous Topic:EFS – FILESTORE – EDITORS …
Next Topic:Re: EMF.Edit CreateNewChildAction contribution to common Navigator based Viewer
Goto Forum:
  


Current Time: Fri May 02 14:25:57 EDT 2025

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

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

Back to the top