Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMélanie Bats2016-09-27 15:13:14 +0000
committerMélanie Bats2016-09-29 14:01:34 +0000
commitf441572d2a498294b0beff852917f4e3225490de (patch)
tree66fee9abf9b22fde524ffd9252497402de72eb9d
parent31b7718afc6946a342c263a00da91dfb08e0e211 (diff)
downloadorg.eclipse.eef-f441572d2a498294b0beff852917f4e3225490de.tar.gz
org.eclipse.eef-f441572d2a498294b0beff852917f4e3225490de.tar.xz
org.eclipse.eef-f441572d2a498294b0beff852917f4e3225490de.zip
[496058] Fix the computation of the ID in case of EEFViewCategory
With the new version of the default rules, the groups are created according to the categories defined in the genmodel. In this case Sirius provides an EEFViewCategory object to EEF. This object is just a POJO representing an eObject and a category. This object overrides the hashcode method. Then if we use the System.identityHashCode method to get the hashcode in the computation of the ID we would do not have the expected result for EEFViewCategory objects. Bug: 496058 Change-Id: I51cf399ebbe7a759036103386ec56b8a041d5b94 Signed-off-by: Mélanie Bats <melanie.bats@obeo.fr>
-rw-r--r--plugins/org.eclipse.eef.ide.ui.properties/src/org/eclipse/eef/ide/ui/properties/api/EEFTabDescriptor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.eef.ide.ui.properties/src/org/eclipse/eef/ide/ui/properties/api/EEFTabDescriptor.java b/plugins/org.eclipse.eef.ide.ui.properties/src/org/eclipse/eef/ide/ui/properties/api/EEFTabDescriptor.java
index 830885f17..f77defce9 100644
--- a/plugins/org.eclipse.eef.ide.ui.properties/src/org/eclipse/eef/ide/ui/properties/api/EEFTabDescriptor.java
+++ b/plugins/org.eclipse.eef.ide.ui.properties/src/org/eclipse/eef/ide/ui/properties/api/EEFTabDescriptor.java
@@ -74,7 +74,7 @@ public class EEFTabDescriptor extends AbstractEEFTabDescriptor {
if (groupSemanticElement instanceof EObject) {
identifier.append(EcoreUtil.getURI((EObject) groupSemanticElement));
}
- identifier.append(System.identityHashCode(groupSemanticElement));
+ identifier.append(groupSemanticElement.hashCode());
}
Object pageSemanticElement = this.eefPage.getVariableManager().getVariables().get(EEFExpressionUtils.SELF);

Back to the top