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 09:21
Walter Mising name is currently offline Walter Mising name
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: Thu Aug 21 14:14:15 EDT 2014

Powered by FUDForum. Page generated in 0.01399 seconds