Core Expression: activeEditor adapts to ITextEditor [message #511075] |
Fri, 29 January 2010 17:26 |
Eclipse User |
|
|
|
Originally posted by: thorsten.vitt.uni-wuerzburg.de
Hi,
I am trying to enable a handler if the active editor adapts to
ITextEditor. I'm using this expression:
<activeWhen>
<with
variable="activeEditor">
<adapt
type="org.eclipse.ui.texteditor.ITextEditor">
</adapt>
</with>
</activeWhen>
This works fine for editors that actually implement ITextEditor.
However, the handler remains inactive for MultiPageEditorParts that have
an ITextEditor as a child, although programmatically calling
getAdapter(ITextEditor.class) on them works fine (there's code in
MultiPageEditorPart.getAdapter() that cares for that).
What am I doing wrong?
Thanks for any help,
Thorsten
|
|
|
|
Powered by
FUDForum. Page generated in 0.03859 seconds