commit | bd5de56bc75abc861a8ad69b5bbe156cef2a4d11 | [log] [tgz] |
---|---|---|
author | tkaiser <tkaiser> | Wed Jun 29 11:56:18 2011 +0000 |
committer | tkaiser <tkaiser> | Wed Jun 29 11:56:18 2011 +0000 |
tree | ab5aa10863233a92cfaa556c27fb97bc4072a973 | |
parent | cf97f4c0a83fe07a6f077857c39349da4b8de893 [diff] |
RESOLVED - bug 348772: DefaultToolBehaviorProvider has spelling error in public API https://bugs.eclipse.org/bugs/show_bug.cgi?id=348772
diff --git a/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SwitchModeFeature.java b/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SwitchModeFeature.java index 03f39a0..2337320 100644 --- a/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SwitchModeFeature.java +++ b/tests/org.eclipse.graphiti.testtool.sketch/src/org/eclipse/graphiti/testtool/sketch/features/SwitchModeFeature.java
@@ -35,7 +35,7 @@ IDiagramTypeProvider dtp = getFeatureProvider().getDiagramTypeProvider(); IToolBehaviorProvider[] availableToolBehaviorProviders = dtp.getAvailableToolBehaviorProviders(); int providerCount = availableToolBehaviorProviders.length; - int newIndex = (dtp.getCurrentToolBahaviorIndex() + 1) % providerCount; + int newIndex = (dtp.getCurrentToolBehaviorIndex() + 1) % providerCount; return newIndex; } @@ -53,7 +53,7 @@ public void execute(ICustomContext context) { IDiagramTypeProvider dtp = getFeatureProvider().getDiagramTypeProvider(); int newIndex = calculateNextTBPIndex(); - dtp.setCurrentToolBahaviorIndex(newIndex); + dtp.setCurrentToolBehaviorIndex(newIndex); } @Override