]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.views.swt.client/src/org/simantics/views/swt/client/base/SingleSWTViewNode.java
Sync git svn branch with SVN repository r33144.
[simantics/platform.git] / bundles / org.simantics.views.swt.client / src / org / simantics / views / swt / client / base / SingleSWTViewNode.java
index 0312cc48f9c169198d02064d0bd970b2fe4e3bc3..182aee594f3c5e1af6a7ec538787586354a383cf 100644 (file)
@@ -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