|
|
Re: Eclipse plugin [message #1050018 is a reply to message #1049999] |
Fri, 26 April 2013 15:27 |
Nick Sira Messages: 3 Registered: April 2013 |
Junior Member |
|
|
Thanks for answering
..well CreateNatTable it is simple class with this constructor
public class CreateNatTable {
public static final String ID = "com.project.CreateNatTable";
private Composite parent = null;
private NatTable natTable = null;
public CreateNatTable(Composite parent) {
this.parent = parent;
DummyBodyDataProvider bodyDataProvider = new DummyBodyDataProvider(2, 10);
SelectionLayer selectionLayer = new SelectionLayer(new DataLayer(bodyDataProvider));
DataLayer colDataLayer = new DataLayer(new DummyColumnHeaderDataProvider(bodyDataProvider));
ILayer columnHeaderLayer = new ColumnHeaderLayer(colDataLayer, selectionLayer, selectionLayer);
CompositeLayer compositeLayer = new CompositeLayer(1, 2);
compositeLayer.setChildLayer(GridRegion.COLUMN_HEADER, columnHeaderLayer, 0, 0);
compositeLayer.setChildLayer(GridRegion.BODY, selectionLayer, 0, 1);
natTable = new NatTable(this.parent, compositeLayer, false);
}
Oh i see..this method SelectionLayer selectionLayer = new SelectionLayer(new DataLayer(bodyDataProvider)); trying to get datas and crushing.
I just want to run simple example without any datas on columns and raws.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02983 seconds