|
Re: Eclipse 4.3 Paste holding unwanted transitions [message #1272701 is a reply to message #1272589] |
Tue, 18 March 2014 14:38 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02796 seconds