Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » quick fix popups classes
quick fix popups classes [message #326525] Fri, 21 March 2008 17:04 Go to next message
Eclipse UserFriend
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 #326560 is a reply to message #326525] Tue, 25 March 2008 06:53 Go to previous messageGo to next message
Eclipse UserFriend
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?

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
>
Re: quick fix popups classes [message #326632 is a reply to message #326560] Wed, 26 March 2008 15:10 Go to previous messageGo to next message
Eclipse UserFriend
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.

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
>>
Re: quick fix popups classes [message #326853 is a reply to message #326632] Wed, 02 April 2008 03:38 Go to previous message
Eclipse UserFriend
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
>>>
>
>
Previous Topic:Plugin.start(final BundleContext context) is not called from UI thread
Next Topic:SetInitiallyVisible(boolean) for ActionSet not working
Goto Forum:
  


Current Time: Wed Mar 19 04:23:14 EDT 2025

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

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

Back to the top