Skip to main content

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 ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
As I understand, "" 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=""
<TableViewerColumn width="80" text="column0"/>
<TableViewerColumn width="80" text="column1"/>

But this also works

<Shell xmlns="" xmlns:x="">
<FillLayout type="VERTICAL"/>
<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"/>
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 Sep 24 12:35:01 GMT 2020

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

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

Back to the top