Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [Fwd: refactoring framework and EMF2DOMSSE]
[Fwd: refactoring framework and EMF2DOMSSE] [message #332700] Wed, 05 November 2008 21:00 Go to next message
Eclipse UserFriend
Originally posted by: anton.kraev.net

This is a multi-part message in MIME format.
--------------010909070608040509060009
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Forwarding to platform, because refactoring belongs here

--------------010909070608040509060009
Content-Type: message/rfc822;
name="refactoring framework and EMF2DOMSSE.eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="refactoring framework and EMF2DOMSSE.eml"

Path: build.eclipse.org!not-for-mail
From: Anton Kraev <anton@kraev.net>
Newsgroups: eclipse.webtools
Subject: refactoring framework and EMF2DOMSSE
Date: Wed, 05 Nov 2008 15:57:54 -0500
Organization: EclipseCorner
Message-ID: <get1cg$9mr$1@build.eclipse.org>
NNTP-Posting-Host: cpe001e378a57d6-cm001ceab606b2.cpe.net.cable.rogers.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: build.eclipse.org 1225918672 9947 72.138.245.248 (5 Nov 2008 20:57:52 GMT)
X-Complaints-To: news@build.eclipse.org
NNTP-Posting-Date: Wed, 5 Nov 2008 20:57:52 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
Xref: build.eclipse.org eclipse.webtools:17692

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!

--------------010909070608040509060009--
Re: [Fwd: refactoring framework and EMF2DOMSSE] [message #332721 is a reply to message #332700] Thu, 06 November 2008 15:30 Go to previous message
Eclipse UserFriend
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:
> Forwarding to platform, because refactoring belongs here
>
> ------------------------------------------------------------ ------------
>
> Subject:
> refactoring framework and EMF2DOMSSE
> From:
> Anton Kraev <anton@kraev.net>
> Date:
> Wed, 05 Nov 2008 15:57:54 -0500
>
> Newsgroups:
> eclipse.webtools
>
>
> 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:Multiline TreeViewer
Next Topic:Replacing the splash image (via an update)
Goto Forum:
  


Current Time: Thu Apr 25 19:44:03 GMT 2024

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

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

Back to the top