Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Distinguishing Quick Fix Popup vs. Content Assist Popup
icon5.gif  Distinguishing Quick Fix Popup vs. Content Assist Popup [message #724313] Mon, 12 September 2011 04:06 Go to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi everyone,

I know that both of these popups are represented with the same object. Is there a way to distinguish quick fix popup and content assist popup assuming that I have the reference for CompletionProposalPopup object?

Specifically, I am looking for a method/field/detail that would help me do following:

CompletionProposalPopup popup = ... // Assume that I have retrieved this object.
if ( popup.isQuickFix() ) // This method does not exists, I am looking for it
{
    // Do some stuff
}
else
{
    // Do nothing.
}


Thanks, best regards,

[Updated on: Mon, 12 September 2011 04:47]

Report message to a moderator

Re: Distinguishing Quick Fix Popup vs. Content Assist Popup [message #725188 is a reply to message #724313] Wed, 14 September 2011 07:26 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 12.09.2011 06:06, Kivanc Muslu wrote:
> Hi everyone,
>
> I know that both of these popups are represented with the same object.
> Is there a way to distinguish quick fix popup and content assist popup
> assuming that I have the reference for CompletionProposalPopup object?
Why exactly do you need this?

Dani
> Specifically, I am looking for a method/field/detail that would help
> me do following:
>
>
> CompletionProposalPopup popup = ... // Assume that I have retrieved
> this object.
> if ( popup.isQuickFix() ) // This method does not exists, I am looking
> for it
> {
> // Do some stuff
> }
> else
> {
> // Do nothing.
> }
>
>
> Thanks, best regards,
Re: Distinguishing Quick Fix Popup vs. Content Assist Popup [message #725335 is a reply to message #725188] Wed, 14 September 2011 14:35 Go to previous message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi Dani,

I want to add extra information to the quick fix menus (popup) but not to the content assist popup.

Thanks,
Previous Topic:(no subject)
Next Topic:Re: Distinguishing Quick Fix Popup vs. Content Assist Popup
Goto Forum:
  


Current Time: Fri Apr 19 12:16:52 GMT 2024

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

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

Back to the top