Re-Post - no marker icon with IWorkspaceRunnable [message #150039] |
Tue, 28 October 2003 01:21  |
Eclipse User |
|
|
|
Originally posted by: kachung_ho.hotmail.com
Hi,
First of all, sorry for the re-post but I really need some help asap.
I have been working on custom markers for quite a while now. Everything
seems ok with the use of workspace.run and IWorkspaceRunnable.
However, I've got a problem which I can't find a solution from previous
posts.
What I want to do is to create a marker file (not the one in .metadata) so
that the user can have a copy of the marker file in the CVS server. And
everytime when someone checkout the project which has a marker file, my
plugin will re-create the markers using the information from the marker
file.
My plugin registered a resource change listener and it receives event when
a marker is added, deleted or changed as well as when a project is
checked-out from the cvs server.
However, I don't have the marker icons on the left ruler bar when a
project is checked-out. I know the markers have been created because
resource.findMarkers gives me the markers that I have created.
I tried to workspace.run the IWorkspaceRunnable inside the
display.asyncExec but still no luck.
(* I don't have any editor opened when creating markers. Would it be
the problem?)
Any help will be very much appreciated!!
Thank you very much!!!
Tim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #153114 is a reply to message #152009] |
Wed, 05 November 2003 11:33  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Tim wrote:
>Hi Daniel,
>
>I did set the lineNumber attribute but with only this value the marker
>won't display. For my case I must have the line, char start and end
>attributes set. Why is that?
>
>
No idea. It works for me. You must ensure that
- you use IMarker.LINE_NUMBER
- start and end are bot not
- the line number is valid
Dani
>Tim
>
>
>Daniel Megert wrote:
>
>
>
>>Tim wrote:
>>
>>
>
>
>
>>>Hi Daniel,
>>>
>>>It WORKS!!!!
>>>Thanks very very much.
>>>But why is that? Why must I set the char start and char end values?
>>>
>>>
>>>
>>>
>>You can either have char start/end or the line attribute set. If none of
>>them is valid then the editor cannot know where to put the marker and
>>hence ignores it.
>>
>>
>
>
>
>>>Tim
>>>
>>>
>>>Daniel Megert wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Tim wrote:
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>>Hi Daniel,
>>>>>
>>>>>I tried to use WorkspaceModifyOperation and still there is no icon there.
>>>>>I also tried to use ModalContext myself but still no luck.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>Check whether the markers you create
>>>>- have valid start end values
>>>>- are of correct marker type
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>>Dani
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04944 seconds