Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » refactoring framework and EMF2DOMSSE
refactoring framework and EMF2DOMSSE [message #223501] Wed, 05 November 2008 20:57 Go to next message
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 Go to previous message
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!
Previous Topic:XML Editor content assist
Next Topic:EJB deployment - Project dependencies
Goto Forum:
  


Current Time: Thu Oct 23 02:30:29 GMT 2014

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

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