Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
richardcatlin wrote:I create a new WindowBuilder/RCP/ViewPart in the "Editor" project, drop a TableViewer onto the ViewPart, switch to the DataBinding, then I click on the EMF icon next to the beans icon, but no EMF object appear. What am I doing wrong?
Joel.Rosi-Schwartz wrote:Here is a screen shot that shows how I am wiring this and the (non) results I am getting
Eric Clayberg wrote:Joel.Rosi-Schwartz wrote:Here is a screen shot that shows how I am wiring this and the (non) results I am getting
Please post the source for the entire class.
Joel.Rosi-Schwartz wrote:I still think that supplying the source for "EMF Data Bindings" project in the docs (which appears to be based on the EMf Library example) would be very useful as a learning exercise.
Eric Clayberg wrote:Joel.Rosi-Schwartz wrote:I still think that supplying the source for "EMF Data Bindings" project in the docs (which appears to be based on the EMf Library example) would be very useful as a learning exercise.
The code for the screen shots in the docs is attached, but it is not a working example.
/**
* @model
*/
public interface IBase extends EObject {
/**
* @model
*/
public String getTitle();
/**
* @model default="false" changeable="true" unsettable="true"
*/
public boolean isUnused();
...
}
/**
* @model
*/
public interface World extends IBase {
/**
* @model
*/
public String getAuthor();
/**
* @model opposite="world" containment="true"
*/
public EList<Book> getBook();
...
}
/**
* @model
*/
public interface Book extends IBase {
/**
* @model opposite="book"
*/
World getWorld();
/**
* @model
*/
Project getProject();
...
}
public class WorldOverview extends FormPage {
private DataBindingContext m_bindingContext;
private World world;
...
private IBase iWorld = world;
EList<Book> books;
books = world.getBook();
Users browsing this forum: Google [Bot] and 2 guests