Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormgolubev2012-04-30 23:58:12 +0000
committermgolubev2012-04-30 23:58:12 +0000
commit5a476095cf73a852cdb3b24a3e51811edc371ee4 (patch)
treecd8773b9d8e621bf7cfe367933cafc256b85df9c
parentbd6565465e8d68a4a7d1a61d9437876866b20f57 (diff)
downloadorg.eclipse.gmf-tooling-5a476095cf73a852cdb3b24a3e51811edc371ee4.tar.gz
org.eclipse.gmf-tooling-5a476095cf73a852cdb3b24a3e51811edc371ee4.tar.xz
org.eclipse.gmf-tooling-5a476095cf73a852cdb3b24a3e51811edc371ee4.zip
minor refactoring: we don't need getOclTrackerFactory anymore, supplied
at construction time, inlined
-rw-r--r--plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/edit/policies/effect/AbstractOclVisualEffectEditPolicy.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/edit/policies/effect/AbstractOclVisualEffectEditPolicy.java b/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/edit/policies/effect/AbstractOclVisualEffectEditPolicy.java
index d3f467717..a0fc96f6a 100644
--- a/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/edit/policies/effect/AbstractOclVisualEffectEditPolicy.java
+++ b/plugins/org.eclipse.gmf.tooling.runtime/src/org/eclipse/gmf/tooling/runtime/edit/policies/effect/AbstractOclVisualEffectEditPolicy.java
@@ -45,16 +45,11 @@ public abstract class AbstractOclVisualEffectEditPolicy extends CanonicalEditPol
private OclTracker getOclTracker() {
if (myOclTracker == null) {
- OclTrackerFactory factory = getOclTrackerFactory();
- myOclTracker = factory.createOclTracker(getExpressionBody(), false);
+ myOclTracker = myOclTrackerFactory.createOclTracker(getExpressionBody(), false);
}
return myOclTracker;
}
- protected final OclTrackerFactory getOclTrackerFactory() {
- return myOclTrackerFactory;
- }
-
private boolean initializeOclTracker() {
EObject context = getContext();
if (context == null) {
@@ -94,7 +89,7 @@ public abstract class AbstractOclVisualEffectEditPolicy extends CanonicalEditPol
installVisualEffect();
refreshVisualEffect();
}
-
+
@Override
protected void refreshSemantic() {
//Important - we are NOT actually CanonicalEditPolicy, and not capable to perform semantic refresh

Back to the top