Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Core Expression: activeEditor adapts to ITextEditor
Core Expression: activeEditor adapts to ITextEditor [message #511075] Fri, 29 January 2010 17:26 Go to next message
Eclipse UserFriend
Originally posted by:


I am trying to enable a handler if the active editor adapts to
ITextEditor. I'm using this expression:


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,

Re: Core Expression: activeEditor adapts to ITextEditor [message #511089 is a reply to message #511075] Fri, 29 January 2010 18:23 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

CoreExpressions only has access to the IAdapterManager (because it can't
see contributed bundles). Something has to register the MPEP so it can
be adapted by the IAdapterManager to the ITextEditor.


Paul Webster .platform.doc.isv/guide/workbench.htm

Previous Topic:[Databinding] How to manipulate record order in a TableViewer
Next Topic:popup menu: dynamic objectContribution
Goto Forum:

Current Time: Sun May 27 03:43:13 GMT 2018

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

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

Back to the top