]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.views.swt.client/src/org/simantics/views/swt/client/base/SingleSWTViewNode.java
Several Wiki documentation view improvements.
[simantics/platform.git] / bundles / org.simantics.views.swt.client / src / org / simantics / views / swt / client / base / SingleSWTViewNode.java
index 0312cc48f9c169198d02064d0bd970b2fe4e3bc3..55ac799d3ba9509630e54c64c9c36f7ec4d1ef2f 100644 (file)
@@ -27,7 +27,7 @@ import org.simantics.ui.colors.Colors;
 import org.simantics.ui.fonts.Fonts;\r
 import org.simantics.utils.threads.IThreadWorkQueue;\r
 import org.simantics.utils.threads.SWTThread;\r
-import org.simantics.views.ViewUtils.GridDataBean;\r
+import org.simantics.views.ViewUtils.LayoutDataBean;\r
 \r
 abstract public class SingleSWTViewNode<T extends Control> extends SWTParentNode implements LoaderNode {\r
        \r
@@ -36,7 +36,7 @@ abstract public class SingleSWTViewNode<T extends Control> extends SWTParentNode
        private Map<String, Object> genericProperties = new HashMap<String, Object>();\r
        \r
        public Function2<String, Object, Boolean> propertyCallback;\r
-       public GridDataBean layoutData;\r
+       public LayoutDataBean layoutData;\r
        public int style;\r
        public String text;\r
        public RGB.Integer background;\r
@@ -178,7 +178,7 @@ abstract public class SingleSWTViewNode<T extends Control> extends SWTParentNode
                                                                } catch (IllegalAccessException e) {\r
                                                                        e.printStackTrace();\r
                                                                } catch (InvocationTargetException e) {\r
-                                                                       e.printStackTrace();\r
+                                                                       e.getCause().printStackTrace();\r
                                                                }\r
                                                        }\r
        \r
@@ -225,7 +225,7 @@ abstract public class SingleSWTViewNode<T extends Control> extends SWTParentNode
                        } catch (IllegalAccessException e) {\r
                                throw new RuntimeException("Failed to get property '" + propertyName + "' for " + getClass().getName(), e);\r
                        } catch (InvocationTargetException e) {\r
-                               throw new RuntimeException("Failed to get property '" + propertyName + "' for " + getClass().getName(), e);\r
+                               throw new RuntimeException("Failed to get property '" + propertyName + "' for " + getClass().getName(), e.getCause());\r
                        }\r
                        \r
                } else {\r
@@ -247,7 +247,7 @@ abstract public class SingleSWTViewNode<T extends Control> extends SWTParentNode
                                } catch (IllegalAccessException e) {\r
                                        throw new RuntimeException("Failed to set property '" + fieldName + "' for " + getClass().getName(), e);\r
                                } catch (InvocationTargetException e) {\r
-                                       throw new RuntimeException("Failed to set property '" + fieldName + "' for " + getClass().getName(), e);\r
+                                       throw new RuntimeException("Failed to set property '" + fieldName + "' for " + getClass().getName(), e.getCause());\r
                                }\r
                        }\r
                }\r
@@ -292,8 +292,8 @@ abstract public class SingleSWTViewNode<T extends Control> extends SWTParentNode
        final public void synchronizeStyle(int style) {\r
        }\r
 \r
-       final public void synchronizeLayoutData(GridDataBean layoutData) {\r
-               if(layoutData != null) control.setLayoutData(SWTViewUtils.toGridData(layoutData));\r
+       final public void synchronizeLayoutData(LayoutDataBean layoutData) {\r
+               if(layoutData != null) control.setLayoutData(SWTViewUtils.toLayoutData(layoutData));\r
        }\r
        \r
 }\r