supplierPlanTreeViewer = new TreeViewer(composite_1, SWT.BORDER);
Tree supplierPlanTree = supplierPlanTreeViewer.getTree();
supplierPlanTree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
new Label(composite_1, SWT.NONE);
new Label(composite_1, SWT.NONE);
supplierPlanTreeViewer.setContentProvider(new ContentProvider(ContentProvider.SUPPLIERS));
supplierPlanTreeViewer.setLabelProvider(new LabelProvider());
supplierPlansExpanditem.setHeight(supplierPlansExpanditem.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
constantsExpanditem = new ExpandItem(expandBar, SWT.NONE);
constantsExpanditem.setImage(ResourceManager.getPluginImage("Tool", "icons/constant.gif"));
constantsExpanditem.setText("Constants");
Composite composite_2 = new Composite(expandBar, SWT.NONE);
constantsExpanditem.setControl(composite_2);
composite_2.setLayout(new GridLayout(1, false));
constantsTreeViewer = new TreeViewer(composite_2, SWT.BORDER);
constantsTreeViewer.addDoubleClickListener(new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event) {
ITreeSelection selection = (ITreeSelection)event.getSelection();
ToolConstant constant = (ToolConstant)selection.getFirstElement();
ConstantDialog.show(constant);
}
});
constantsTreeViewer.setAutoExpandLevel(1);
Tree constantsTree = constantsTreeViewer.getTree();
GridData gd_constantsTree = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);
gd_constantsTree.minimumHeight = 300;
constantsTree.setLayoutData(gd_constantsTree);
constantsTreeViewer.setContentProvider(new ContentProvider(ContentProvider.CONSTANTS));
constantsTreeViewer.setLabelProvider(new LabelProvider());
constantsExpanditem.setHeight(constantsExpanditem.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);
if (this.model != null){
bind();
}