Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Team revert causing undoing of EMF model changes
Team revert causing undoing of EMF model changes [message #494144] Thu, 29 October 2009 11:18 Go to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi All,

I am not pretty much aware of EMF.I have a very basic question.
I have a Form based editor which is based on a EMF model underlying.Now updating the widget data updates the EMF model.
So if i make my project team enabled, then if i go and change sometihing in the FormEditor the EMF model is changed and then i want to revert the file to its repository state.Doing this would require undoing of the EMF model changes done earlier.
Is this EMF undone operation is being supported from Team actions.Team does have Logical Model mapping, is that the way to go i am not sure.

Please provide your input on this.

Thanks and Regards,
Saurav


[Updated on: Thu, 29 October 2009 11:19]

Report message to a moderator

Re: Team revert causing undoing of EMF model changes [message #494152 is a reply to message #494144] Thu, 29 October 2009 11:51 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Saurav,

Comments below.

saurav wrote:
> Hi All,
>
> I am not pretty much aware of EMF.I have a very basic question.
> I have a Form based editor which is based on a EMF model underlying
> and updating the widget data updates the EMF model.
> So if i make my project team enabled, then if i go and change
> sometihing in the FormEditor the EMF model is changed and then i want
> to revert the file to its repository state.Doing this would require
> undoing of the EMF model changes done earlier.
The old model needs to be tossed away (Resource.unload) and the new
version needs to be loaded. The command stack needs to be flushed as well.
> Is this EMF undone operation is being supported from Team actions.Team
> does have Logical Model mapping, is that the way to go i am not sure.
>
> Please provide your input on this.
Have a look at how the generated editors resource delta listener handles
this.
>
> Thanks and Regards,
> Saurav


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Team revert causing undoing of EMF model changes [message #494175 is a reply to message #494144] Thu, 29 October 2009 13:26 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Thanks Ed for the reply....but in my case i need the old version of the metamodel for the repository version.I would like to know any integtration with Team is there for EMF?

Re: Team revert causing undoing of EMF model changes [message #494190 is a reply to message #494175] Thu, 29 October 2009 14:04 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030409010901080809060105
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi Saurav,

As far as team integration goes, the way to access a repository version
of a file differs for each and every team plugin (so much for a team
"framework"). You can look at the specific code I have in the code base
of EMF Compare to retrieve specific versions of specific files from
code. Namely, plugin "org.eclipse.emf.compare.team.subversive" holds
class "SubversiveTeamHandler" which role is to access files for
subversive, while plugin "org.eclipse.emf.compare.ui" holds class
"RevisionComparisonHandler" which role is to access files under CVS.

I never took a look at the team integration for any of the others
(subclipse, git, clearcase, ...) so I can't help you more than this on
the subject. Guess you'll have to ask the different development teams ...

Laurent Goubet
Obeo

saurav a écrit :
> Thanks Ed for the reply....but in my case i need the old version of the
> metamodel for the repository version.I would like to know any
> integtration with Team is there for EMF?


--------------030409010901080809060105
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyLyI+T2JlbzwvYT4NCmVtYWls O2ludGVybmV0
OmxhdXJlbnQuZ291YmV0QG9iZW8uZnINCnVybDpodHRwOi8vd3d3Lm9iZW8u ZnINCnZlcnNp
b246Mi4xDQplbmQ6dmNhcmQNCg0K
--------------030409010901080809060105--
Previous Topic:Delete elements in the model
Next Topic:[newbee] Howto create children programmatically?
Goto Forum:
  


Current Time: Fri Apr 19 21:10:17 GMT 2024

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

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

Back to the top