Package com.onpositive.semantic.model.ui.property.editors

Examples of com.onpositive.semantic.model.ui.property.editors.ViewerTextElement


    gr.setLayoutManager(new OneElementOnLineLayouter());

    // CompositeEditor ce = new CompositeEditor();
    // ce.setLayoutManager(new OneElementOnLineLayouter());

    final ViewerTextElement tm = new ViewerTextElement() {
      protected void setValue(IBinding binding, Object value) {
        if (value instanceof Text) {
          Text c = (Text) value;
          super.setValue(binding, c.getValue());
        }
      }

      protected void doCommit(final IBinding binding2) {
        commitToBinding(new Text(getText()));
      }

    };
    tm.setWrapText(false);
    // ce.add(tm);
    gr.add(tm);

    if (needNullButton) {
      addIsNullButtonSelector(binding, gr, null);
    }

    owner.add(gr);
    gr.getLayoutHints().setGrabVertical(true);
    gr.getLayoutHints().setMinimumSize(new Point(200, 200));
    tm.setBinding(binding);
  }
View Full Code Here

TOP

Related Classes of com.onpositive.semantic.model.ui.property.editors.ViewerTextElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.