quick fix popups classes [message #326525] |
Fri, 21 March 2008 17:04  |
Eclipse User |
|
|
|
Hello,
I need to programatically show the popups that Eclipse displays when the
user clicks on a markerAnnotation located in the ruler, or when the user
presses ctrl+1 on a marked area of the text. There are 2 popups that I
need : the one that shows the Quick Fixes and the one that shows the
Problem Description.
Does anybody know what classes are involved here ?
Thank you very much,
George
|
|
|
|
|
Re: quick fix popups classes [message #326853 is a reply to message #326632] |
Wed, 02 April 2008 03:38  |
Eclipse User |
|
|
|
George Ganea wrote:
> Daniel Megert wrote:
>
>> George Ganea wrote:
>>> Hello,
>>>
>>> I need to programatically show the popups that Eclipse displays when
>>> the user clicks on a markerAnnotation located in the ruler, or when
>>> the user presses ctrl+1 on a marked area of the text.
>> Are you writing your own editor or do you want this in the Java editor?
> I need this in the Java editor.
> I've enhanced the Java editor with my own Ruler Column, my own markers
> and my own annotations.I've isolated my Ruler Column (mouse event
> wise) from the other rulers, and this is why I need to instantiate
> these classes by hand.
Do something like this:
action= new
TextOperationAction(EditorMessages.getBundleForConstructedKe ys(),
"Editor.QuickAssist.", yourEditor, ISourceViewer.QUICK_ASSIST);
//$NON-NLS-1$
action.run();
Or if you can get hold on to the viewer:
org.eclipse.jface.text.TextViewer.doOperationISourceViewer.Q UICK_ASSIST)
Dani
>
> Thanks, George
>
>> Dani
>>> There are 2 popups that I need : the one that shows the Quick Fixes
>>> and the one that shows the Problem Description. Does anybody know
>>> what classes are involved here ?
>>> Thank you very much,
>>> George
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02999 seconds