Add missing break in switch 52/13752/2
Vincent COUVERT [Fri, 14 Feb 2014 14:51:17 +0000 (15:51 +0100)]
Change-Id: I623e445c617b529758f21d46d8a5df79bc5fa717

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/tab/SwingScilabCommonPanel.java
scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/tab/SwingScilabTabGroup.java
scilab/modules/renderer/src/java/org/scilab/modules/renderer/JoGLView/interaction/DragZoomRotateInteraction.java

index 609039c..c3c35f1 100644 (file)
@@ -243,6 +243,7 @@ public class SwingScilabCommonPanel {
                 Integer[] padding = (Integer[]) GraphicController.getController().getProperty(component.getId(), __GO_BORDER_OPT_PADDING__);
                 component.getWidgetPane().setLayout(new BorderLayout(padding[0], padding[1]));
                 component.getWidgetPane().setLayout(new BorderLayout());
+                break;
             }
             case __GO_UI_ICON__ : {
                 File file = new File((String)value);
index e99fbe1..c6e6132 100644 (file)
@@ -90,13 +90,15 @@ public class SwingScilabTabGroup extends JTabbedPane implements SwingViewObject
                 for (int i = 0 ; i < getTabCount() ; i++) {
                     setTitleAt(i, null);
                 }
+                break;
             }
             case __GO_POSITION__ :
                 Double[] positions = (Double[]) value;
                 setSize(positions[2].intValue(), positions[3].intValue());
                 Position javaPosition = PositionConverter.scilabToJava(new Position(positions[0].intValue(), positions[1].intValue()),
-                        new Size(getSize().width, getSize().height), getParent());
+                                        new Size(getSize().width, getSize().height), getParent());
                 setLocation(javaPosition.getX(), javaPosition.getY());
+                break;
         }
     }
 
@@ -131,10 +133,10 @@ public class SwingScilabTabGroup extends JTabbedPane implements SwingViewObject
 
         Font oldFont = label.getFont();
         Font font = new Font(
-                fontName.equals("") == false ? fontName : oldFont.getFontName(), 
-                        fontStyle,
-                        fontSize != 0.0 ? fontSize.intValue() : oldFont.getSize());
-        
+            fontName.equals("") == false ? fontName : oldFont.getFontName(),
+            fontStyle,
+            fontSize != 0.0 ? fontSize.intValue() : oldFont.getSize());
+
         label.setFont(font);
 
         if (title != null) {
index 1d617ae..152933e 100644 (file)
@@ -233,6 +233,7 @@ public class DragZoomRotateInteraction extends FigureInteraction {
                         doRotation(e);
                         break;
                     }
+                    break;
                 case XY_TRANSLATION_MODIFIER:
                     if (translateEnabled) {
                         doXYTranslation(e);