Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Eclipse 4.3 Paste holding unwanted transitions(Eclipse 4.3 Paste holding unwanted transitions)
Eclipse 4.3 Paste holding unwanted transitions [message #1272589] Tue, 18 March 2014 09:11 Go to next message
Sindhura Pappula is currently offline Sindhura PappulaFriend
Messages: 2
Registered: November 2012
Junior Member
Hi,

We have developed our own studio, using eclipse-plugins and GMF. In that we have something like palette from where we can add different elements.

The copy-paste feature was not working fine with Eclipse 4.2,but with Eclipse 4.3 it is working but holding unwanted references.

For example,i have a menu element and five choice elements connected with five transitions(One transition for one choice). During copy i have selected only menu and one choice element, and pasted in another file. But in diagram file it is holding the values of all unselected transitions also and thus corrupting the file.

Can you please tell me, do i need to install any additional plugin or i need to change any settings to make Copy-paste work correctly.

Or Can you suggest is there a way to change the contents of IEditorInput file before saving, so that i can traverse the input and delete unwanted transitions?

Any useful information related to this will be helpful.

Thanks in advance.
Re: Eclipse 4.3 Paste holding unwanted transitions [message #1272701 is a reply to message #1272589] Tue, 18 March 2014 14:38 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33146
Registered: July 2009
Senior Member
Comments below.

On 18/03/2014 2:11 AM, Sindhura Pappula wrote:
> Hi,
>
> We have developed our own studio, using eclipse-plugins and GMF. In
> that we have something like palette from where we can add different
> elements.
>
> The copy-paste feature was not working fine with Eclipse 4.2,but with
> Eclipse 4.3 it is working but holding unwanted references.
>
> For example,i have a menu element and five choice elements connected
> with five transitions(One transition for one choice). During copy i
> have selected only menu and one choice element, and pasted in another
> file.
I'm not sure which references are containment and which are
non-containment. In general, when you copy an object, all contained
references will be copied recursively. Also, all non-bidirectional
cross references will continue to reference the original non-copied
object...
> But in diagram file it is holding the values of all unselected
> transitions also and thus corrupting the file.
I'm not sure why that makes it corrupted. Why is this bad?
>
> Can you please tell me, do i need to install any additional plugin or
> i need to change any settings to make Copy-paste work correctly.
Perhaps you can specialize
org.eclipse.emf.edit.command.InitializeCopyCommand to do what you want
differently for your case...
>
> Or Can you suggest is there a way to change the contents of
> IEditorInput file before saving, so that i can traverse the input and
> delete unwanted transitions?
How will you know/detect what's unwanted?
>
> Any useful information related to this will be helpful.
Perhaps this is a more of a GMF question...
>
> Thanks in advance.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[XCORE] How to define a non cross reference
Next Topic:[EMF] How to get the extension for an EObject/EClass
Goto Forum:
  


Current Time: Thu May 09 08:35:26 GMT 2024

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

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

Back to the top