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);
}