예제 #1
0
  @Override
  protected void doBinding() {
    editor.setOrdered(input.isOrdered(propertyPath));
    editor.setUnique(input.isUnique(propertyPath));
    editor.setDirectCreation(input.getDirectCreation(propertyPath));
    ReferenceValueFactory factory = input.getValueFactory(propertyPath);
    if (factory != null) {
      editor.setFactory(input.getValueFactory(propertyPath));
    }

    IStaticContentProvider provider = input.getContentProvider(propertyPath);
    if (provider != null) {
      editor.setContentProvider(provider);
    }

    if (getInputObservableList() instanceof ICommitListener) {
      editor.addCommitListener((ICommitListener) getInputObservableList());
    }

    super.doBinding();
  }
예제 #2
0
 /** @return the ListViewer associated to this editor */
 public TreeViewer getViewer() {
   return editor.getViewer();
 }