"Greedy" Content Assist [message #629499] |
Tue, 28 September 2010 09:57  |
Eclipse User |
|
|
|
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 07:02   |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
Re: "Greedy" Content Assist [message #669270 is a reply to message #630607] |
Mon, 09 May 2011 12:49  |
Eclipse User |
|
|
|
Hi
I found this old post.
since I have a similar issue, having embedded an editor in another editor (in the property view of the editor), and the content assist does not work, I'd like to try this solution, and would like to know whether the problem of multiple languages raised by Sebastian is actually an issue.
thanks in advance
Lorenzo
|
|
|
Powered by
FUDForum. Page generated in 0.05493 seconds