Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT. Support for TableColumnLayout.
XWT. Support for TableColumnLayout. [message #526966] Tue, 13 April 2010 11:12 Go to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
Does XWT support org.eclipse.jface.layout.TableColumnLayout, org.eclipse.jface.viewers.ColumnPixelData and org.eclipse.jface.viewers.ColumnWeightData? Same for Tree variants?

Following code throws exception.

<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"
	xmlns:p1="clr-namespace:org.eclipse.jface.layout"
	xmlns:p2="clr-namespace:org.eclipse.jface.viewers">
	<Shell.layout>
		<FillLayout/>
	</Shell.layout>
	<Composite>
		<Composite.layout>
			<p1:TableColumnLayout/>
		</Composite.layout>
		<TableViewer>
			<TableViewer.table>
				<TableColumn text="New Column">
					<TableColumn.layoutData>
						<p2:ColumnPixelData widthInPixels="100"/>
					</TableColumn.layoutData>
				</TableColumn>
			</TableViewer.table>
		</TableViewer>
	</Composite>
</Shell>


org.eclipse.core.runtime.AssertionFailedException: assertion failed: Unknown column layout data
	at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
	at org.eclipse.jface.layout.AbstractColumnLayout.layoutTableTree(AbstractColumnLayout.java:173)
	at org.eclipse.jface.layout.AbstractColumnLayout.layout(AbstractColumnLayout.java:247)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1237)
	at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:1626)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4035)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4757)
	at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2439)
	at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable.java:80)
	at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control.java:4771)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4045)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4757)
	at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
	at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1453)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:2795)
	at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:980)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:2756)
	at org.eclipse.swt.widgets.Control.setBounds(Control.java:2752)
	at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:201)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1237)
	at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1223)
	at org.eclipse.swt.widgets.Composite.layout(Composite.java:626)
	at org.eclipse.swt.widgets.Composite.layout(Composite.java:584)
	at org.eclipse.swt.widgets.Composite.layout(Composite.java:547)
	at org.eclipse.e4.xwt.javabean.ResourceLoader.createCLRElement(ResourceLoader.java:375)
	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,
Google, Inc.
Re: XWT. Support for TableColumnLayout. [message #527125 is a reply to message #526966] Wed, 14 April 2010 03:49 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
Not yet work on this case. Please fill a bug and we will look at it ASAP.

Thanks
Yves
"Konstantin Scheglov" <Konstantin.Scheglov@gmail.com> wrote in message
news:hq21ko$7ve$1@build.eclipse.org...
> Does XWT support org.eclipse.jface.layout.TableColumnLayout,
> org.eclipse.jface.viewers.ColumnPixelData and
> org.eclipse.jface.viewers.ColumnWeightData? Same for Tree variants?
>
> Following code throws exception.
>
> <Shell xmlns="http://www.eclipse.org/xwt/presentation"
> xmlns:x="http://www.eclipse.org/xwt"
> xmlns:p1="clr-namespace:org.eclipse.jface.layout"
> xmlns:p2="clr-namespace:org.eclipse.jface.viewers">
> <Shell.layout>
> <FillLayout/>
> </Shell.layout>
> <Composite>
> <Composite.layout>
> <p1:TableColumnLayout/>
> </Composite.layout>
> <TableViewer>
> <TableViewer.table>
> <TableColumn text="New Column">
> <TableColumn.layoutData>
> <p2:ColumnPixelData widthInPixels="100"/>
> </TableColumn.layoutData>
> </TableColumn>
> </TableViewer.table>
> </TableViewer>
> </Composite>
> </Shell>
>
> org.eclipse.core.runtime.AssertionFailedException: assertion failed:
> Unknown column layout data
> at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
> at
> org.eclipse.jface.layout.AbstractColumnLayout.layoutTableTre e(AbstractColumnLayout.java:173)
> at
> org.eclipse.jface.layout.AbstractColumnLayout.layout(Abstrac tColumnLayout.java:247)
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:1237)
> at org.eclipse.swt.widgets.Composite.WM_SIZE(Composite.java:162 6)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4035 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4757 )
> at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
> at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2439 )
> at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:80)
> at org.eclipse.swt.widgets.Control.WM_WINDOWPOSCHANGED(Control. java:4771)
> at org.eclipse.swt.widgets.Control.windowProc(Control.java:4045 )
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:4757 )
> at org.eclipse.swt.internal.win32.OS.SetWindowPos(Native Method)
> at org.eclipse.swt.widgets.Widget.SetWindowPos(Widget.java:1453 )
> at org.eclipse.swt.widgets.Control.setBounds(Control.java:2795)
> at org.eclipse.swt.widgets.Composite.setBounds(Composite.java:9 80)
> at org.eclipse.swt.widgets.Control.setBounds(Control.java:2756)
> at org.eclipse.swt.widgets.Control.setBounds(Control.java:2752)
> at org.eclipse.swt.layout.FillLayout.layout(FillLayout.java:201 )
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:1237)
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.jav a:1223)
> at org.eclipse.swt.widgets.Composite.layout(Composite.java:626)
> at org.eclipse.swt.widgets.Composite.layout(Composite.java:584)
> at org.eclipse.swt.widgets.Composite.layout(Composite.java:547)
> at
> org.eclipse.e4.xwt.javabean.ResourceLoader.createCLRElement( ResourceLoader.java:375)
> 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.
Previous Topic:XWT.
Next Topic:XWT. Support for TableColumnLayout.
Goto Forum:
  


Current Time: Wed Apr 16 00:47:25 EDT 2014

Powered by FUDForum. Page generated in 0.01455 seconds