Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problems with problem markers decoration in the Project Explorer
Problems with problem markers decoration in the Project Explorer [message #335569] Wed, 15 April 2009 13:05
Vasiliy K. is currently offline Vasiliy K.Friend
Messages: 1
Registered: July 2009
Junior Member
Hi.

I am developing an IDE for a specific language as an Eclipse plug-in.
There I have a specific builder which puts error markers on the files when
required. And the problem is that I am failing to make Eclipse to display
the markers correctly in the Project Explorer(whereas they are correctly
displayed in the "Problems" view and source editors).

In fact the situation concerns only the first build in the current Eclipse
session. I represent it as follows.

1. I am running Eclipse and opening a workspace. The project there already
has some markers from the previous build and they are displayed correctly
in the Project Explorer.
2. I am changing something in sources and run my builder.
3. But after the build is completed the Project Explorer shows only
problem markers on files which have already had problem markers before
build (and they are displayed correctly: if a file had only warnings but
now has erors, it is decorated with the error overlay). The error overlay
then usually appears on a file after I change its source and save it.
4. On all the subsequent builds the Project Explorer shows the problem
markers correctly.

I have done some investigations on the issue. Specifically, I have
installed a listener onto the decorator manager and found that there is a
difference between the way the decorator manager fires its "changed" event
in the case of incorrect markers decoration and in the case of correct
one. In the second case it fires one message for all the changed elements
whereas in the first case it reports the changed elements in two messages:
some - in the first message and the rest - in the second one. Looks like
some threading issue. Probably, there is a way to put markers on the files
which is more compatible with Project Explorer and allowing to avoid this
threading issue, isn't? Does anyone know?

Then I've tried to find the decorator which makes problem markers
decoration to study its behaviour more thoroughfully. But problem overlays
in the Project Explorer appear even when I turn all the decorators off in
the workspace preferences. Does anyone know which class does the problem
markers decoration?

Regards,
Vasiliy.
Previous Topic:is this the right place to post CNF questions?
Next Topic:Responce time
Goto Forum:
  


Current Time: Wed Nov 26 05:48:06 GMT 2014

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

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