@@ -133,13 +133,13 @@ public void bindSpyKeyBinding(MBindingTable spyBindingTable, String keySequence,
133133
134134
135135 // Search for the key binding if already present
136- for (MKeyBinding kb : spyBindingTable .getBindings ())
136+ for (MKeyBinding kb : spyBindingTable .getBindings ()) {
137137 if (keySequence .equals (kb .getKeySequence ())) {
138138 // A binding with this key sequence is already present. Check if
139139 // command is the same
140- if (kb .getCommand ().getElementId ().equals (cmd .getElementId ()))
140+ if (kb .getCommand ().getElementId ().equals (cmd .getElementId ())) {
141141 return ;
142- else {
142+ } else {
143143 // Must log an error : key binding already exists in this
144144 // table but with another command
145145 System .out .println ("WARNING : Cannot bind the command '" + cmd .getElementId ()
@@ -148,6 +148,7 @@ public void bindSpyKeyBinding(MBindingTable spyBindingTable, String keySequence,
148148 return ;
149149 }
150150 }
151+ }
151152
152153 // Key binding is not yet in table... can add it now.
153154 MKeyBinding binding = modelService .createModelElement (MKeyBinding .class );
@@ -180,10 +181,11 @@ private MBindingTable getBindingTable() {
180181 // Then can add the KeyBinding if not already added
181182
182183 MBindingTable spyBindingTable = null ;
183- for (MBindingTable bt : application .getBindingTables ())
184+ for (MBindingTable bt : application .getBindingTables ()) {
184185 if (E4_SPIES_BINDING_TABLE .equals (bt .getElementId ())) {
185186 spyBindingTable = bt ;
186187 }
188+ }
187189
188190 // Binding table has not been yet added... Create it and bind it to
189191 // org.eclipse.ui.contexts.dialogAndWindow binding context
0 commit comments