]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.views.swt.client/src/org/simantics/views/swt/client/impl/SWTSashForm.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.views.swt.client / src / org / simantics / views / swt / client / impl / SWTSashForm.java
index af79bdc8d04aa389b93cf1891b95b57eee6b9231..fe1d2565f15ee35d733a7a68a64c0d853021be29 100644 (file)
@@ -1,48 +1,48 @@
-package org.simantics.views.swt.client.impl;\r
-\r
-import org.eclipse.swt.custom.SashForm;\r
-import org.eclipse.swt.widgets.Control;\r
-import org.eclipse.swt.widgets.Sash;\r
-import org.simantics.views.ViewUtils.LayoutBean;\r
-import org.simantics.views.swt.client.base.SWTViewUtils;\r
-import org.simantics.views.swt.client.base.SingleSWTViewNode;\r
-\r
-public class SWTSashForm extends SingleSWTViewNode<SashForm> {\r
-       \r
-       private static final long serialVersionUID = 7932335224632082902L;\r
-       \r
-       public LayoutBean layout;\r
-       public int[] weights;\r
-       public Integer orientation;\r
-       \r
-       @Override\r
-       public void createControls(org.eclipse.swt.widgets.Composite parent) {\r
-               \r
-       control = new SashForm(parent, style);\r
-       \r
-       createChildComposites();\r
-       \r
-       setProperties();\r
-       \r
-       }\r
-\r
-       final public void synchronizeLayout(LayoutBean layout) {\r
-               if(layout != null) control.setLayout(SWTViewUtils.toLayout(layout));\r
-       }\r
-\r
-       final public void synchronizeWeights(int[] weights) {\r
-               if(weights != null) {\r
-                       int childCount = 0; \r
-                       for(Control c : control.getChildren()) {\r
-                               if (c instanceof Sash) continue;\r
-                               childCount++;\r
-                       }\r
-                       if(weights.length != childCount) throw new IllegalStateException("Got " + weights.length + " weights, but had " + childCount + " children.");\r
-                       control.setWeights(weights);\r
-               }\r
-       }\r
-       final public void synchronizeOrientation(Integer orientation) {\r
-               if(orientation != null) control.setOrientation(orientation);\r
-       }\r
-       \r
-}\r
+package org.simantics.views.swt.client.impl;
+
+import org.eclipse.swt.custom.SashForm;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Sash;
+import org.simantics.views.ViewUtils.LayoutBean;
+import org.simantics.views.swt.client.base.SWTViewUtils;
+import org.simantics.views.swt.client.base.SingleSWTViewNode;
+
+public class SWTSashForm extends SingleSWTViewNode<SashForm> {
+       
+       private static final long serialVersionUID = 7932335224632082902L;
+       
+       public LayoutBean layout;
+       public int[] weights;
+       public Integer orientation;
+       
+       @Override
+       public void createControls(org.eclipse.swt.widgets.Composite parent) {
+               
+       control = new SashForm(parent, style);
+       
+       createChildComposites();
+       
+       setProperties();
+       
+       }
+
+       final public void synchronizeLayout(LayoutBean layout) {
+               if(layout != null) control.setLayout(SWTViewUtils.toLayout(layout));
+       }
+
+       final public void synchronizeWeights(int[] weights) {
+               if(weights != null) {
+                       int childCount = 0; 
+                       for(Control c : control.getChildren()) {
+                               if (c instanceof Sash) continue;
+                               childCount++;
+                       }
+                       if(weights.length != childCount) throw new IllegalStateException("Got " + weights.length + " weights, but had " + childCount + " children.");
+                       control.setWeights(weights);
+               }
+       }
+       final public void synchronizeOrientation(Integer orientation) {
+               if(orientation != null) control.setOrientation(orientation);
+       }
+       
+}