XWT. [message #574054] |
Tue, 13 April 2010 14:43 |
Konstantin Scheglov Messages: 555 Registered: July 2009 |
Senior Member |
|
|
Following code causes exception.
It seems that by some reason "headerVisible" is trying to apply to TreeColumn instead of Tree itself.
Same code, with replacement of word "Tree" with "Table" works without any problem.
<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt">
<Shell.layout>
<RowLayout/>
</Shell.layout>
<TreeViewer x:Style="BORDER">
<TreeViewer.tree headerVisible="true" linesVisible="true">
<TreeColumn text="New Column" width="100"/>
</TreeViewer.tree>
</TreeViewer>
</Shell>
java.lang.IllegalArgumentException: object is not an instance of declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.e4.xwt.javabean.metadata.properties.BeanProperty .setValue(BeanProperty.java:72)
at org.eclipse.e4.xwt.javabean.ResourceLoader.initSegmentAttrib ute(ResourceLoader.java:1610)
at org.eclipse.e4.xwt.javabean.ResourceLoader.initAttribute(Res ourceLoader.java:1388)
at org.eclipse.e4.xwt.javabean.ResourceLoader.init(ResourceLoad er.java:1056)
at org.eclipse.e4.xwt.javabean.ResourceLoader.initSegmentAttrib ute(ResourceLoader.java:1643)
at org.eclipse.e4.xwt.javabean.ResourceLoader.initAttribute(Res ourceLoader.java:1388)
at org.eclipse.e4.xwt.javabean.ResourceLoader.init(ResourceLoad er.java:1056)
at org.eclipse.e4.xwt.javabean.ResourceLoader.doCreate(Resource Loader.java:622)
at org.eclipse.e4.xwt.javabean.ResourceLoader.doCreate(Resource Loader.java:658)
at org.eclipse.e4.xwt.javabean.ResourceLoader.createCLRElement( ResourceLoader.java:363)
at org.eclipse.e4.xwt.internal.core.Core.createCLRElement(Core. java:606)
at org.eclipse.e4.xwt.internal.core.Core.load(Core.java:646)
at org.eclipse.e4.xwt.internal.core.Core.load(Core.java:633)
at org.eclipse.e4.xwt.XWTLoader.loadWithOptions(XWTLoader.java: 835)
at org.eclipse.e4.xwt.XWTLoader$1.run(XWTLoader.java:768)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.e4.xwt.XWTLoader.open(XWTLoader.java:762)
at org.eclipse.e4.xwt.XWTLoader.open(XWTLoader.java:714)
at org.eclipse.e4.xwt.XWT.open(XWT.java:416)
at test.MyTest.main(MyTest.java:21)
--
Konstantin Scheglov,
Instantiations, Inc.
Konstantin Scheglov,
Google, Inc.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02812 seconds