Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Displsxing message of marker at caret position in status line
Displsxing message of marker at caret position in status line [message #335301] Tue, 31 March 2009 15:41 Go to next message
Patrick Schoenbach is currently offline Patrick SchoenbachFriend
Messages: 110
Registered: July 2009
Senior Member
Hi,

I would like to display the message of the problem marker at the caret
position (if there is one) in the status line (like JDT does).

Could someone please either

1. tell me, if there is an article out there on how to implement this.
2. explain to me how this is done.
3. point me to the corresponding JDT code.

--
Regards,
Patrick

--
Patrick Schönbach
Software Architect

PGP public key available. Key ID: 0B7DDE39
Or email to pgp@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C 902D 62A6 806A 0B7D DE39

web: http://www.itemis.de
mail: schoenbach@itemis.de
xing: https://www.xing.com/profile/Patrick_Schoenbach

itemis AG
Schauenburgerstraße 116
24118 Kiel
Germany

Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
Aufsichtsrat: Dr. Burkhard Igel(Vors.), Stephan Grollmann, Michael
Neuhaus
Re: Displsxing message of marker at caret position in status line [message #335320 is a reply to message #335301] Wed, 01 April 2009 07:54 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Patrick Schönbach wrote:
> Hi,
>
> I would like to display the message of the problem marker at the caret
> position (if there is one) in the status line (like JDT does).
>
> Could someone please either
>
> 1. tell me, if there is an article out there on how to implement this.
> 2. explain to me how this is done.
> 3. point me to the corresponding JDT code.
>
Take a look at:
org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.selectionC hanged() and
updateStatusLine().

Dani
Re: Displsxing message of marker at caret position in status line [message #335329 is a reply to message #335320] Wed, 01 April 2009 17:19 Go to previous messageGo to next message
Patrick Schoenbach is currently offline Patrick SchoenbachFriend
Messages: 110
Registered: July 2009
Senior Member
On Wed, 01 Apr 2009 09:54:38 +0200, Daniel Megert wrote:
> Take a look at:
> org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.selectionC hanged() and
> updateStatusLine().

Basically, this works. However, the selection change listener is fired
only whenever I select something, and not when I move the cursor. How to
overcome that?

--
Regards,
Patrick

--
Patrick Schönbach
Software Architect

PGP public key available. Key ID: 0B7DDE39
Or email to pgp@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C 902D 62A6 806A 0B7D DE39

web: http://www.itemis.de
mail: schoenbach@itemis.de
xing: https://www.xing.com/profile/Patrick_Schoenbach

itemis AG
Schauenburgerstraße 116
24118 Kiel
Germany

Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
Aufsichtsrat: Dr. Burkhard Igel(Vors.), Stephan Grollmann, Michael
Neuhaus
Re: Displsxing message of marker at caret position in status line [message #335331 is a reply to message #335329] Wed, 01 April 2009 18:06 Go to previous message
Patrick Schoenbach is currently offline Patrick SchoenbachFriend
Messages: 110
Registered: July 2009
Senior Member
On Wed, 1 Apr 2009 19:19:23 +0200, Patrick Schönbach wrote:

> On Wed, 01 Apr 2009 09:54:38 +0200, Daniel Megert wrote:
>> Take a look at:
>> org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.selectionC hanged() and
>> updateStatusLine().
>
> Basically, this works. However, the selection change listener is fired
> only whenever I select something, and not when I move the cursor. How to
> overcome that?

Ok, solved.

--
Regards,
Patrick

--
Patrick Schönbach
Software Architect

PGP public key available. Key ID: 0B7DDE39
Or email to pgp@robustsoft.de with subject 'pschoenb'.
Fingerprint: BE80 0E7E B68E CE99 623C 902D 62A6 806A 0B7D DE39

web: http://www.itemis.de
mail: schoenbach@itemis.de
xing: https://www.xing.com/profile/Patrick_Schoenbach

itemis AG
Schauenburgerstraße 116
24118 Kiel
Germany

Rechtlicher Hinweis:
Amtsgericht Dortmund, HRB 20621
Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
Aufsichtsrat: Dr. Burkhard Igel(Vors.), Stephan Grollmann, Michael
Neuhaus
Previous Topic:Feature Verification update warning dialog and Code Signing
Next Topic:global action (registration) listener
Goto Forum:
  


Current Time: Thu Nov 07 12:27:54 GMT 2024

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

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

Back to the top