Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Marker, update view
Marker, update view [message #327758] Wed, 30 April 2008 15:34
Carl Hagenmaier is currently offline Carl HagenmaierFriend
Messages: 11
Registered: July 2009
Junior Member
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: Thu Aug 29 12:35:25 GMT 2024

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

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

Back to the top