Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT + DataBinding +DataContext +Replace
XWT + DataBinding +DataContext +Replace [message #566757] Mon, 28 December 2009 14:21
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 126
Registered: July 2009
Senior Member
Problem
---------
In my java code, I have the following

oC = (Control) XWT.load(parent, url, loadModel("SG.xml"));
System.out.println ( XWT.getDataContext(oC)) ;

I would like to refresh the TableViewer with the contents of SGNew.xml in
the runtime.

Since I didn't see setDataContext such as
XWT.setDataContext(oC,loadModel("SGNew.xml")),
I tried setting the input of TableViewer with the result of
loadModel("SGNew.xml"), obviously it threw the following error
"org.eclipse.core.runtime.AssertionFailedException: assertion failed: This
content provider only works with input of type IObservableList"

What is the best way to proceed ?

Thanks,
Best Regards,
Walter G. Prabhakar.
Previous Topic:XWT + TableViewer + Retrieve Table Data
Next Topic:XWT + DataBinding +DataContext +Replace
Goto Forum:
  


Current Time: Sun Dec 21 15:22:05 GMT 2014

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

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