aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorghillairet2012-05-18 13:03:27 (EDT)
committermgolubev2012-05-18 13:03:27 (EDT)
commit3e6a60bb9f093f39a59c9da39f5f03627d987388 (patch)
treede1f41d300a018083a84aa873223a6b55e2f0d2f
parent345119a883a15eb0f19f6a9c2c6aff60af8b6d7d (diff)
downloadorg.eclipse.gmf-tooling-3e6a60bb9f093f39a59c9da39f5f03627d987388.zip
org.eclipse.gmf-tooling-3e6a60bb9f093f39a59c9da39f5f03627d987388.tar.gz
org.eclipse.gmf-tooling-3e6a60bb9f093f39a59c9da39f5f03627d987388.tar.bz2
Removed call to class attribute by call to method.
-rw-r--r--plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/VisualIdentifierDispenserFacade.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/VisualIdentifierDispenserFacade.java b/plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/VisualIdentifierDispenserFacade.java
index d896632..f94b00a 100644
--- a/plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/VisualIdentifierDispenserFacade.java
+++ b/plugins/org.eclipse.gmf.bridge/src/org/eclipse/gmf/internal/bridge/genmodel/VisualIdentifierDispenserFacade.java
@@ -34,33 +34,34 @@ public class VisualIdentifierDispenserFacade {
@Operation(contextual = true, kind = Kind.QUERY)
public int getVisualID(Object self) {
- assert Provider.dispenser != null;
+ VisualIdentifierDispenser dispenser = Provider.getDisenser();
+ assert dispenser != null;
int visualID = -1;
if (self instanceof GenDiagram)
- visualID = Provider.getDisenser().get((GenDiagram) self);
+ visualID = dispenser.get((GenDiagram) self);
else if (self instanceof GenTopLevelNode)
- visualID = Provider.getDisenser().get((GenTopLevelNode) self);
+ visualID = dispenser.get((GenTopLevelNode) self);
else if (self instanceof GenChildNode)
- visualID = Provider.getDisenser().get((GenChildNode) self);
+ visualID = dispenser.get((GenChildNode) self);
else if (self instanceof GenCompartment)
- visualID = Provider.getDisenser().get((GenCompartment) self);
+ visualID = dispenser.get((GenCompartment) self);
else if (self instanceof GenNodeLabel)
- visualID = Provider.getDisenser().get((GenNodeLabel) self);
+ visualID = dispenser.get((GenNodeLabel) self);
else if (self instanceof GenLink)
- visualID = Provider.getDisenser().get((GenLink) self);
+ visualID = dispenser.get((GenLink) self);
else if (self instanceof GenLinkLabel)
- visualID = Provider.getDisenser().get((GenLinkLabel) self);
+ visualID = dispenser.get((GenLinkLabel) self);
else if (self instanceof ToolGroup)
- visualID = Provider.getDisenser().get((ToolGroup) self);
+ visualID = dispenser.get((ToolGroup) self);
return visualID;
}