Пример #1
0
  private void createGui() {
    sash = new SashForm(guiControl, SWT.HORIZONTAL);
    control = sash;
    control.setLayoutData(new GridData(GridData.FILL_BOTH));

    component = new XModelObjectTreeViewComponent(this);
    component.setModelObject(object);
    component.setCache(new XModelObjectCache(object));
    for (int i = 0; i < filters.length; i++) component.addFilter(filters[i]);
    component.createControl(sash);
  }
Пример #2
0
 protected void disposeGui() {
   if (component != null) component.dispose();
   component = null;
   if (sash != null && !sash.isDisposed()) sash.dispose();
   sash = null;
   super.disposeGui();
 }
Пример #3
0
 public ISelectionProvider getSelectionProvider() {
   return component == null ? null : component.getSelectionProvider();
 }
Пример #4
0
 public TreeViewer getTreeViewer() {
   return component == null ? null : component.getViewer();
 }