Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordstadnik2006-01-11 09:34:11 -0500
committerdstadnik2006-01-11 09:34:11 -0500
commit7bf09dcef6523f4cc4adb59184e23c18efe6f3a5 (patch)
tree85a63e269dc43d14e2d7364fbda1d31c758eb112 /devtools/org.eclipse.gmf.dev.insider
parent3ad4869e7b40ba7e76484b3e287156b36904cdfd (diff)
downloadorg.eclipse.gmf-tooling-7bf09dcef6523f4cc4adb59184e23c18efe6f3a5.tar.gz
org.eclipse.gmf-tooling-7bf09dcef6523f4cc4adb59184e23c18efe6f3a5.tar.xz
org.eclipse.gmf-tooling-7bf09dcef6523f4cc4adb59184e23c18efe6f3a5.zip
sync with changes in gef
Diffstat (limited to 'devtools/org.eclipse.gmf.dev.insider')
-rw-r--r--devtools/org.eclipse.gmf.dev.insider/src/org/eclipse/gmf/dev/insider/internal/EditPartContentBuilder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/devtools/org.eclipse.gmf.dev.insider/src/org/eclipse/gmf/dev/insider/internal/EditPartContentBuilder.java b/devtools/org.eclipse.gmf.dev.insider/src/org/eclipse/gmf/dev/insider/internal/EditPartContentBuilder.java
index 3e84ece91..3edd0727e 100644
--- a/devtools/org.eclipse.gmf.dev.insider/src/org/eclipse/gmf/dev/insider/internal/EditPartContentBuilder.java
+++ b/devtools/org.eclipse.gmf.dev.insider/src/org/eclipse/gmf/dev/insider/internal/EditPartContentBuilder.java
@@ -63,11 +63,11 @@ public class EditPartContentBuilder extends AbstractContentBuilder {
allChildren.addAll(gEditPart.getTargetConnections());
}
if (editPart instanceof AbstractEditPart) {
- Object editPolicyKeysObject = ReflectionUtil.getFieldValue(editPart, "editPolicyKeys", AbstractEditPart.class);
- if (editPolicyKeysObject instanceof List) {
- List editPolicyKeys = (List) editPolicyKeysObject;
- for (int i = 0; i < editPolicyKeys.size(); i++) {
- EditPolicy editPolicy = editPart.getEditPolicy(editPolicyKeys.get(i));
+ Object policiesObject = ReflectionUtil.getFieldValue(editPart, "policies", AbstractEditPart.class);
+ if (policiesObject instanceof Object[]) {
+ Object[] policies = (Object[]) policiesObject;
+ for (int i = 0; i < policies.length; i += 2) {
+ EditPolicy editPolicy = (EditPolicy) policies[i + 1];
if (editPolicy != null) {
allChildren.add(editPolicy);
}

Back to the top