Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT. Using TableViewer.columns. Why?
XWT. Using TableViewer.columns. Why? [message #574376] Fri, 16 April 2010 11:08
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 555
Registered: July 2009
Senior Member
As I understand, "Class.property" should be used when you want to set value of "property". However TableViewer has no property "columns" or method "setColumns()", etc. It seems that it works without wrapping TableViewerColumn-s into "TableViewer.columns", so is there reason to use it in code generation?

Here is code from xwt tests.

<TableViewer xmlns="http://www.eclipse.org/xwt/presentation"
xmlns:x="http://www.eclipse.org/xwt"
xmlns:j="clr-namespace:java.lang"
Name="TableViewer">
<TableViewer.columns>
<TableViewerColumn width="80" text="column0"/>
<TableViewerColumn width="80" text="column1"/>
</TableViewer.columns>
</TableViewer>

But this also works

<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt">
<Shell.layout>
<FillLayout type="VERTICAL"/>
</Shell.layout>
<TableViewer x:Style="BORDER | FULL_SELECTION">
<TableViewer.table headerVisible="true" linesVisible="true"/>
<TableViewerColumn width="150" text="Name"/>
<TableViewerColumn width="150" text="Age"/>
<TableViewerColumn width="150" text="Image"/>
</TableViewer>
</Shell>
--
Konstantin Scheglov,
Instantiations, Inc.


Konstantin Scheglov,
Google, Inc.
Previous Topic:How to add custom widgets to XWT designer palette
Next Topic:XWT External property -style
Goto Forum:
  


Current Time: Thu Oct 23 12:03:36 GMT 2014

Powered by FUDForum. Page generated in 0.01753 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software