import javax.jcr.Node;
import javax.jcr.RepositoryException;
-import org.argeo.cms.ui.util.CmsUiUtils;
+import org.argeo.cms.swt.CmsSwtUtils;
import org.argeo.cms.ui.viewers.EditablePart;
import org.argeo.cms.ui.widgets.StyledControl;
import org.argeo.eclipse.ui.EclipseUiUtils;
/** To be overridden */
protected void setContainerLayoutData(Composite composite) {
- composite.setLayoutData(CmsUiUtils.fillWidth());
+ composite.setLayoutData(CmsSwtUtils.fillWidth());
}
@Override
protected Label createValueLabel(Composite parent, int style, String value) {
Label label = new Label(parent, style);
label.setText("#" + value);
- CmsUiUtils.markup(label);
- CmsUiUtils.style(label, FormStyle.propertyText.style());
+ CmsSwtUtils.markup(label);
+ CmsSwtUtils.style(label, FormStyle.propertyText.style());
return label;
}
Button deleteBtn = new Button(valCmp, SWT.FLAT);
deleteBtn.setData(FormConstants.LINKED_VALUE, value);
deleteBtn.addSelectionListener(removeValueSL);
- CmsUiUtils.style(deleteBtn, FormStyle.delete.style() + FormStyle.BUTTON_SUFFIX);
+ CmsSwtUtils.style(deleteBtn, FormStyle.delete.style() + FormStyle.BUTTON_SUFFIX);
GridData gd = new GridData();
gd.heightHint = btnHeight;
gd.widthHint = btnWidth;
// The "add new value" text is not meant to change, so we can set it on
// creation
text.setMessage(message);
- CmsUiUtils.style(text, style);
+ CmsSwtUtils.style(text, style);
text.setFocus();
text.addTraverseListener(new TraverseListener() {
if (canEdit) {
Label lbl = new Label(box, getStyle());
lbl.setText(message);
- CmsUiUtils.style(lbl, style);
- CmsUiUtils.markup(lbl);
+ CmsSwtUtils.style(lbl, style);
+ CmsSwtUtils.markup(lbl);
if (mouseListener != null)
lbl.addMouseListener(mouseListener);
return lbl;
}
public synchronized void startEditing() {
- CmsUiUtils.style(getControl(), FormStyle.propertyText.style());
+ CmsSwtUtils.style(getControl(), FormStyle.propertyText.style());
// getControl().setData(STYLE, FormStyle.propertyText.style());
super.startEditing();
}
public synchronized void stopEditing() {
- CmsUiUtils.style(getControl(), FormStyle.propertyMessage.style());
+ CmsSwtUtils.style(getControl(), FormStyle.propertyMessage.style());
// getControl().setData(STYLE, FormStyle.propertyMessage.style());
super.stopEditing();
}