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
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
} catch (IllegalAccessException e) {\r
e.printStackTrace();\r
} catch (InvocationTargetException e) {\r
- e.printStackTrace();\r
+ e.getCause().printStackTrace();\r
}\r
}\r
\r
} 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
} 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
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