Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Data Binding for JFace Table Viewer
Data Binding for JFace Table Viewer [message #1271266] Fri, 14 March 2014 17:37 Go to next message
JINGJIE JIANG is currently offline JINGJIE JIANGFriend
Messages: 9
Registered: March 2014
Junior Member
I create a class as below:
public class DataTest{
	private long Id;
	private String Info;
	
	public DataTest (long id, String info) {
	    this.Id = id;
	    this.Info = info;
	}

	public long getID() {
		return Id;
	}

	public void setID(long id) {
		Id = id;
	}

	public String getInfo() {
		return Info;
	}

	public void setInfo(String info) {
		Info = info;
	}
	
}


I want to bind the property " input" of tableViewer to the object of this class, either Id or Info, but the button "Finish" never turns to a valid one, which means that I can bind this class that I created, could you tell me why and how to fix it?

[Updated on: Fri, 14 March 2014 17:37]

Report message to a moderator

Re: Data Binding for JFace Table Viewer [message #1271299 is a reply to message #1271266] Fri, 14 March 2014 19:32 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
That class doesn't look like a valid input to a TableViewer.

I would recommend reviewing the JFace Data Binding docs as well as the WB docs on JFace Data Binding.

You can also look at the Data Binding example provided with WB (which shows how to use a TableViewer).
Previous Topic:SWT controls or JFace Viewwer
Next Topic:getContentPane() doesn't resize
Goto Forum:
  


Current Time: Fri Apr 19 22:03:50 GMT 2024

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

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

Back to the top