"Greedy" Content Assist [message #629499] |
Tue, 28 September 2010 13:57 |
Christoph Zwicker Messages: 16 Registered: April 2010 |
Junior Member |
|
|
Hi,
I have a problem with the behavior of the content assist handler provided in the org.eclipse.xtext.ui plugin. The "activeWhen" element only checks for activeEditor, which stays set (I believe) even when another part is activated (which may also provide content assist). Due to this, the command is handled by org.eclipse.xtext.ui.editor.handler.ContentAssistHandler and org.eclipse.jface.fieldassist.ContentProposalAdapter does not get a shot at the event (at least that's what I figure from a 30' read through the sources).
Is there a reason why the handler is not activated only when the editor is "really" active?
Thanks,
Chris
|
|
|
|
|
|
Re: "Greedy" Content Assist [message #630009 is a reply to message #629961] |
Thu, 30 September 2010 11:02 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Chris,
did you try the activePartID selector?
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 30.09.10 08:56, schrieb Christoph Zwicker:
> Hi Sebastian,
>
> I tried to deactivate the handler by adding a version referencing
> "activePart" instead of "activeEditor" to my own plugin.xml, but there
> is no effect, the handler stays active. Eclipse seems to treat both
> handlers as possible candidates and checks each one's condition. When
> both match, one of them wins and the handler is active. On the other
> hand, if my handler does not match, the original one still does and the
> handler stays active...
>
> Thanks,
> Chris
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02460 seconds