refactoring framework and EMF2DOMSSE [message #223501] |
Wed, 05 November 2008 20:57 |
Eclipse User |
|
|
|
Originally posted by: anton.kraev.net
As a result of refactoring, DocumentChange instance is created. It then
gets executed (changing corresponding IDocument). Refactored source
happens to be open by EMF2DOMSSE-based editor. EMF2DOMSSE receives
notification of change from command stack. This leads to editor being dirty.
The question is, how to get event from refactoring framework that
refactoring change is committed? DocumentChange.commit is empty. I could
override this method to manually notify open editors (if any), but I am
trying to avoid this dependency (refactoring plugin must depend on
editor plugin to notify it).
Any ideas?
Thanks for reading this!
|
|
|
Re: refactoring framework and EMF2DOMSSE [message #223589 is a reply to message #223501] |
Thu, 06 November 2008 15:31 |
Eclipse User |
|
|
|
Originally posted by: anton.kraev.net
Ok, reply to myself. Use TextFileChange instead of DocumentChange, that
will save actual file, that can later be picked up by
IResourceChangeListener
Anton Kraev wrote:
> As a result of refactoring, DocumentChange instance is created. It then
> gets executed (changing corresponding IDocument). Refactored source
> happens to be open by EMF2DOMSSE-based editor. EMF2DOMSSE receives
> notification of change from command stack. This leads to editor being
> dirty.
>
> The question is, how to get event from refactoring framework that
> refactoring change is committed? DocumentChange.commit is empty. I could
> override this method to manually notify open editors (if any), but I am
> trying to avoid this dependency (refactoring plugin must depend on
> editor plugin to notify it).
>
> Any ideas?
>
> Thanks for reading this!
|
|
|
Powered by
FUDForum. Page generated in 0.03011 seconds