Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Re-Post - no marker icon with IWorkspaceRunnable
Re-Post - no marker icon with IWorkspaceRunnable [message #150039] Tue, 28 October 2003 01:21 Go to next message
Eclipse UserFriend
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 #150047 is a reply to message #150039] Tue, 28 October 2003 03:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

Tim <kachung_ho@hotmail.com> wrote:


No sure if this will help you, but look on class
org.eclipse.ui.texteditor.MarkerUtilities and method createMarker.

> 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



--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #150063 is a reply to message #150039] Tue, 28 October 2003 05:38 Go to previous messageGo to next message
Eclipse UserFriend
Please have a look at the following plugin:

http://www.zclipse.org/projects/insectivore/

It may already do what you are trying to do. Personnally
I'm not using it (already too much plugins to test), but
would be glad to know if it is working properly for you.

BTW, these people would probably be happy for any
feedback/suggestion they will receive, like all people in
the community. Maybe just ask them ;-)

--
Steve
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #150139 is a reply to message #150039] Tue, 28 October 2003 08:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Tim wrote:

>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.
>
>
You should follow Konstantin's tip and in addition create the markers
inside a WorkspaceModifyOperation.

Dani

>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 #150159 is a reply to message #150039] Tue, 28 October 2003 09:19 Go to previous messageGo to next message
Eclipse UserFriend
Tim wrote:

<skip>

> 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.

<skip>

What is the "left ruler bar"? If the markers are created already,
does the ruler bar display other markers? Maybe, you should implement
some kind of Decorator?

For example, the Navigator view (Eclipse 2.1.1) doesn't display problem
markers, while Package Explorer does.

regards,
/Sergey
Thanks for all your help. I will try again. (no message body) [message #150524 is a reply to message #150039] Wed, 29 October 2003 01:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kachung_ho.hotmail.com

Thanks.

Tim
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #151238 is a reply to message #150047] Wed, 29 October 2003 17:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kachung_ho.hotmail.com

Hi Konstantin,

I tried to use that method without success. In fact when I look at the
code they are the same as the code that I wrote.

Tim


Konstantin Scheglov wrote:

> Tim <kachung_ho@hotmail.com> wrote:


> No sure if this will help you, but look on class
> org.eclipse.ui.texteditor.MarkerUtilities and method createMarker.

> > 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 #151246 is a reply to message #150139] Wed, 29 October 2003 17:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kachung_ho.hotmail.com

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.

Tim


Daniel Megert wrote:

> Tim wrote:

> >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.
> >
> >
> You should follow Konstantin's tip and in addition create the markers
> inside a WorkspaceModifyOperation.

> Dani
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #151254 is a reply to message #150159] Wed, 29 October 2003 17:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kachung_ho.hotmail.com

Hi Sergey,

Decorator? Can I have more pointers for that please? It will be great if
there are some code samples around.

Tim


Sergey Bushkov wrote:

> Tim wrote:

> <skip>

> > 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.

> <skip>

> What is the "left ruler bar"? If the markers are created already,
> does the ruler bar display other markers? Maybe, you should implement
> some kind of Decorator?

> For example, the Navigator view (Eclipse 2.1.1) doesn't display problem
> markers, while Package Explorer does.

> regards,
> /Sergey
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #151263 is a reply to message #150159] Wed, 29 October 2003 17:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kachung_ho.hotmail.com

Hi Sergey,

Decorator? Can I have more pointers for that please? It will be great if
there are some code samples around.

Tim


Sergey Bushkov wrote:

> Tim wrote:

> <skip>

> > 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.

> <skip>

> What is the "left ruler bar"? If the markers are created already,
> does the ruler bar display other markers? Maybe, you should implement
> some kind of Decorator?

> For example, the Navigator view (Eclipse 2.1.1) doesn't display problem
> markers, while Package Explorer does.

> regards,
> /Sergey
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #151358 is a reply to message #151246] Thu, 30 October 2003 04:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

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

>Tim
>
>
>Daniel Megert wrote:
>
>
>
>>Tim wrote:
>>
>>
>
>
>
>>>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.
>>>
>>>
>>>
>>>
>>You should follow Konstantin's tip and in addition create the markers
>>inside a WorkspaceModifyOperation.
>>
>>
>
>
>
>>Dani
>>
>>
>
>
>
>
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #151804 is a reply to message #151358] Fri, 31 October 2003 08:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kachung_ho.hotmail.com

Hi Daniel,

It WORKS!!!!
Thanks very very much.
But why is that? Why must I set the char start and char end values?

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

> >
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #151851 is a reply to message #151358] Fri, 31 October 2003 09:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kachung_ho.hotmail.com

Hi Daniel,

It WORKS!!!!
Thanks very very much.
But why is that? Why must I set the char start and char end values?

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

> >
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #151859 is a reply to message #151358] Fri, 31 October 2003 09:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kachung_ho.hotmail.com

Hi Daniel,

It WORKS!!!!
Thanks very very much.
But why is that? Why must I set the char start and char end values?

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

> >
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #151879 is a reply to message #151851] Fri, 31 October 2003 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

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
>>
>>
>
>
>
>
>
>
>
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #152009 is a reply to message #151879] Fri, 31 October 2003 22:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kachung_ho.hotmail.com

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?

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
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
Re: Re-Post - no marker icon with IWorkspaceRunnable [message #153114 is a reply to message #152009] Wed, 05 November 2003 11:33 Go to previous message
Eclipse UserFriend
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
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
Previous Topic:Extending TypeHierarchyViewer in custom class hierarchy viewer for JDO
Next Topic:How to get IDs of Views
Goto Forum:
  


Current Time: Tue May 06 18:25:32 EDT 2025

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

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

Back to the top