Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Show marker in the editor without reopen.
Show marker in the editor without reopen. [message #177343] Thu, 08 January 2004 14:29 Go to next message
Eclipse UserFriend
Hi,
I use IResource.createMarker() to add a marker to the text file. But the
text editor wouldn’t show the marker in the editor area until I reopen the
file.
Anyway I can make the editor show the marker without manually reopen the
file?

Thanks
Elwin
Re: Show marker in the editor without reopen. [message #177593 is a reply to message #177343] Fri, 09 January 2004 01:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

Elwin <elwin_ho@hp.com> wrote:

Do you use MarkerUtilities.createMarker, i.e. create markers in
IWorkspaceRunnable?

> I use IResource.createMarker() to add a marker to the text file. But the
> text editor wouldn▓t show the marker in the editor area until I reopen the
> file.
> Anyway I can make the editor show the marker without manually reopen the
> file?

> Thanks
> Elwin



--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Re: Show marker in the editor without reopen. [message #177764 is a reply to message #177593] Fri, 09 January 2004 10:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: meshcheryakovsemen.hotmail.com

As far as I remember, I had pain is the ... with the Markers also.
My final (simpliest) version works ok:

protected IMarker createMarker(
IResource resource,
String type,
Map attributes)
throws Exception
{
IMarker m = resource.createMarker(type);
m.setAttributes(attributes);
return m;
}

PS. This is not related to the temporary marks that appear
while you are editing the file.

--
Sam - http://openrules.com
It's better to view source code than comments to it.
Re: Show marker in the editor without reopen. [message #177969 is a reply to message #177593] Fri, 09 January 2004 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi
Even I change my code to use MarkerUtilities.createMarker(..), the editor
still doesn’t show the marker automatically. Any clue?

Thanks
Elwin


Konstantin Scheglov wrote:

> Elwin <elwin_ho@hp.com> wrote:

> Do you use MarkerUtilities.createMarker, i.e. create markers in
> IWorkspaceRunnable?

> > I use IResource.createMarker() to add a marker to the text file. But the
> > text editor wouldn’t show the marker in the editor area until I reopen the
> > file.
> > Anyway I can make the editor show the marker without manually reopen the
> > file?

> > Thanks
> > Elwin
Re: Show marker in the editor without reopen. [message #178079 is a reply to message #177343] Sat, 10 January 2004 13:24 Go to previous messageGo to next message
Eclipse UserFriend
Elwin wrote:

>Hi,
>I use IResource.createMarker() to add a marker to the text file. But the
>text editor wouldn?t show the marker in the editor area until I reopen the
>file.
>Anyway I can make the editor show the marker without manually reopen the
>file?
>
>Thanks
>Elwin
>
>
>
>
I have noticed this problem too in 3.0M6. It seems to be a matter of
luck whether it shows in the editor or not ...

--
Genady Beryozkin
http://www.genady.net/
Re: Show marker in the editor without reopen. [message #178481 is a reply to message #178079] Mon, 12 January 2004 04:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Genady wrote:

> Elwin wrote:
>
>> Hi, I use IResource.createMarker() to add a marker to the text file.
>> But the
>> text editor wouldn?t show the marker in the editor area until I
>> reopen the
>> file.
>> Anyway I can make the editor show the marker without manually reopen the
>> file?
>>
>> Thanks
>> Elwin
>>
>>
>>
>>
> I have noticed this problem too in 3.0M6. It seems to be a matter of
> luck whether it shows in the editor or not ...

You probably run into bug 49373
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=49373>

Dani
Re: Show marker in the editor without reopen. [message #178678 is a reply to message #178481] Mon, 12 January 2004 12:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

> You probably run into bug 49373
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=49373

Good news, thanks Daniel!
-- Daniel Megert
-- Fixed. Available in builds > 20040112

Daniel, Is it fixed in 2.X and 3.X?
How to find this in Bugzilla?
(Sorry for my incompetence:)

--
Sam - http://openrules.com
It's better to view source code than comments to it.
Re: Show marker in the editor without reopen. [message #179062 is a reply to message #178678] Tue, 13 January 2004 04:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

smesh wrote:

>>You probably run into bug 49373
>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=49373
>>
>>
>
>Good news, thanks Daniel!
>-- Daniel Megert
>-- Fixed. Available in builds > 20040112
>
>Daniel, Is it fixed in 2.X and 3.X?
>
>
In 3.0 stream (see target milestone). The PR is not relevant for 2.x
since this has been introduced by new 3.0 code anyway.

Dani

>How to find this in Bugzilla?
>(Sorry for my incompetence:)
>
>
>
Re: Show marker in the editor without reopen. [message #179235 is a reply to message #179062] Tue, 13 January 2004 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

So, there is no such a bug in 2.X "stream" ?

--
Sam - http://openrules.com
It's better to view source code than comments to it.
Re: Show marker in the editor without reopen. [message #179310 is a reply to message #179235] Tue, 13 January 2004 12:59 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

smesh wrote:

>So, there is no such a bug in 2.X "stream" ?
>
>
>
Check bugzilla - it has a huger memory than I do ;-)

Dani
Previous Topic:Rich Client Platform (RCP) Status
Next Topic:compare files
Goto Forum:
  


Current Time: Fri Jul 18 11:13:37 EDT 2025

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

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

Back to the top