Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Help with Quick Fix
Help with Quick Fix [message #304820] Thu, 15 June 2006 15:28 Go to next message
Eclipse UserFriend
Originally posted by: awm_abu.yahoo.com

Folks,

I am trying to implement a Quick Fix-type functionality for my text editor
and I am having some difficulties.

I have one part of it working to my satisfaction.
When you right click an Error in the Problem View and select Quick Fix from
the Menu you are presented with a list of fixes
If you select one of these fixes the method called is :

CorrectionMarkerResolutionGenerator.getResolutions(IMarker)

However I have been unable as yet to figure out how to get JDT-like editor
quick fixes.
In other words the quick fix icon that appears on the vertical ruler and
allows you to invoke a quick fix
by clicking the icon or using the Ctrl + 1 shortcut.

Can anyone help me out in this regard ?
An article/class in JDT/anything would be greatly appreciated.

Thanks.
Re: Help with Quick Fix [message #305014 is a reply to message #304820] Wed, 21 June 2006 09:43 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Frank Abercorn wrote:

>Folks,
>
>I am trying to implement a Quick Fix-type functionality for my text editor
>and I am having some difficulties.
>
>I have one part of it working to my satisfaction.
>When you right click an Error in the Problem View and select Quick Fix from
>the Menu you are presented with a list of fixes
>If you select one of these fixes the method called is :
>
>CorrectionMarkerResolutionGenerator.getResolutions(IMarker)
>
>However I have been unable as yet to figure out how to get JDT-like editor
>quick fixes.
>In other words the quick fix icon that appears on the vertical ruler and
>allows you to invoke a quick fix
>by clicking the icon or using the Ctrl + 1 shortcut.
>
>Can anyone help me out in this regard ?
>
>
Quick assist/fix functionality has been added during 3.2 i.e. you need
at least 3.2 RC7 to have this. Take a look at the
'org.eclipse.jface.text.quickassist' package in JFace Text. As an
example of an non-Java editor you could look at the PDE Manifest editor.
< file:///C:/eclipse/workspaces/Development_3_3/plugins/org.ec lipse.jface.text/src/org/eclipse/jface/text/quickassist/>

HTH
Dani

>An article/class in JDT/anything would be greatly appreciated.
>
>
>Thanks.
>
>
>
>
Previous Topic:How can detect if a perspective is switched to another one
Next Topic:Plugin Development-Custom Editor Layout
Goto Forum:
  


Current Time: Sat Sep 21 03:18:31 GMT 2024

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

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

Back to the top