Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bonita-studio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
bonita
bonita-studio
Commits
74262cb4
Commit
74262cb4
authored
Dec 05, 2018
by
Romain Bioteau
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release-7.8.0'
parents
17c2c39f
f7b945e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
bundles/plugins/org.bonitasoft.studio.common/src/org/bonitasoft/studio/common/emf/tools/EMFModelUpdater.java
...g/bonitasoft/studio/common/emf/tools/EMFModelUpdater.java
+10
-1
No files found.
bundles/plugins/org.bonitasoft.studio.common/src/org/bonitasoft/studio/common/emf/tools/EMFModelUpdater.java
View file @
74262cb4
...
...
@@ -15,8 +15,10 @@
package
org.bonitasoft.studio.common.emf.tools
;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Objects
;
import
java.util.Set
;
import
org.bonitasoft.studio.common.Activator
;
import
org.bonitasoft.studio.common.log.BonitaStudioLog
;
...
...
@@ -44,6 +46,7 @@ public class EMFModelUpdater<T extends EObject> {
private
T
workingCopy
;
private
CustomCopier
copier
=
new
CustomCopier
();
private
List
<
EObject
>
synched
=
new
ArrayList
<>();
private
Set
<
String
>
manyFeaturesSynched
=
new
HashSet
<>();
/**
* Original (before edition) EMF object with UUID
...
...
@@ -82,6 +85,7 @@ public class EMFModelUpdater<T extends EObject> {
@Override
protected
void
doExecute
()
{
synched
.
clear
();
manyFeaturesSynched
.
clear
();
deepEObjectUpdate
(
source
,
workingCopy
);
}
};
...
...
@@ -116,7 +120,12 @@ public class EMFModelUpdater<T extends EObject> {
})
.
forEach
(
feature
->
{
if
(
feature
.
isMany
())
{
handleManyCase
(
source
,
target
,
feature
);
String
uuid
=
getEObjectID
(
source
);
String
key
=
uuid
+
feature
.
getName
();
if
(!
manyFeaturesSynched
.
contains
(
key
))
{
manyFeaturesSynched
.
add
(
key
);
handleManyCase
(
source
,
target
,
feature
);
}
}
else
{
Object
sourceRef
=
source
.
eGet
(
feature
);
Object
targetRef
=
target
.
eGet
(
feature
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment