コード例 #1
0
ファイル: MultiString.java プロジェクト: go2zo/ju4pa
  @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
ファイル: MultiString.java プロジェクト: go2zo/ju4pa
 /** @return the ListViewer associated to this editor */
 public TreeViewer getViewer() {
   return editor.getViewer();
 }