import org.argeo.ArgeoException;
import org.argeo.eclipse.ui.workbench.WorkbenchConstants;
import org.argeo.jcr.JcrUtils;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.layout.GridData;
// thus it is still possible to save after a tab
// change.
super.commit(onSave);
+ if (currentNode.getSession().hasPendingChanges())
+ currentNode.getSession().save();
}
} catch (RepositoryException re) {
throw new ArgeoException(
AbstractFormPart part, Property prop) {
GridData gd;
try {
- if (prop.getType() == PropertyType.STRING) {
- Text txt = tk.createText(parent, prop.getString());
+ if (prop.getType() == PropertyType.STRING && !prop.isMultiple()) {
+ Text txt = tk.createText(parent, prop.getString(), SWT.WRAP
+ | SWT.MULTI);
gd = new GridData(GridData.FILL_HORIZONTAL);
txt.setLayoutData(gd);
txt.addModifyListener(new ModifiedFieldListener(part));