Register Listener on Editor Changes [message #1499616] |
Fri, 05 December 2014 04:13  |
Eclipse User |
|
|
|
Hi,
how can I register a listener on changes of Papyrus Editor content?
I found org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IContentChangedListener, which sounds suitable.
However, I can't find out how to register it from an external plugin.
I don't want to write a new Editor, I just want to have a logging plugin which registers a listener on the existing diagram editor(s).
|
|
|
Re: Register Listener on Editor Changes [message #1499819 is a reply to message #1499616] |
Fri, 05 December 2014 07:40   |
Eclipse User |
|
|
|
Hi,
What kinds of changes do you want to listen for? Opening and closing
of diagram pages? Changes within the diagrams? Changes to the UML
model content?
There are different listener protocols for all of these:
IPageLifecycleEventsListener attached to the editor's
ISashWindowsContainer adapter, various GEF/GMF APIs, and various
EMF/EMF-Transaction APIs plus IPapyrusListener, respectively.
Cheers,
Christian
On 2014-12-05 09:13:40 +0000, Grischa Liebel said:
> Hi,
>
> how can I register a listener on changes of Papyrus Editor content?
>
> I found
> org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IContentChangedListener,
> which sounds suitable.
> However, I can't find out how to register it from an external plugin.
> I don't want to write a new Editor, I just want to have a logging
> plugin which registers a listener on the existing diagram editor(s).
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04202 seconds