Skip to main content



      Home
Home » Eclipse Projects » WindowBuilder » Data Binding for JFace Table Viewer
Data Binding for JFace Table Viewer [message #1271266] Fri, 14 March 2014 13:37 Go to next message
Eclipse UserFriend
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 13:37] by Moderator

Re: Data Binding for JFace Table Viewer [message #1271299 is a reply to message #1271266] Fri, 14 March 2014 15:32 Go to previous message
Eclipse UserFriend
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 Jul 25 01:47:19 EDT 2025

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

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

Back to the top