public EditablePropertyString(Composite parent, int style, Node node, String propertyName, String message)
throws RepositoryException {
super(parent, style, node, true);
-
+ //setUseTextAsLabel(true);
this.propertyName = propertyName;
this.message = message;
public synchronized void startEditing() {
CmsUiUtils.style(getControl(), FormStyle.propertyText);
-// getControl().setData(STYLE, propertyText.style());
super.startEditing();
}
public synchronized void stopEditing() {
if (EclipseUiUtils.isEmpty(((Text) getControl()).getText()))
CmsUiUtils.style(getControl(), FormStyle.propertyMessage);
-// getControl().setData(STYLE, propertyMessage.style());
else
CmsUiUtils.style(getControl(), FormStyle.propertyText);
-// getControl().setData(STYLE, propertyText.style());
super.stopEditing();
}