projects
/
gpl
/
argeo-suite.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cancel form submission if a listener has failed
[gpl/argeo-suite.git]
/
swt
/
org.argeo.app.ui
/
src
/
org
/
argeo
/
app
/
ui
/
SuiteUiUtils.java
diff --git
a/swt/org.argeo.app.ui/src/org/argeo/app/ui/SuiteUiUtils.java
b/swt/org.argeo.app.ui/src/org/argeo/app/ui/SuiteUiUtils.java
index 7cda3f89299a5e634a55bd5a4de453fb9ee78cbf..504e8eda75c87f6ea07a5b91508cad0c93bc35c0 100644
(file)
--- a/
swt/org.argeo.app.ui/src/org/argeo/app/ui/SuiteUiUtils.java
+++ b/
swt/org.argeo.app.ui/src/org/argeo/app/ui/SuiteUiUtils.java
@@
-71,6
+71,10
@@
public class SuiteUiUtils {
}
}
}
}
+ public static Label addFormLabel(Composite parent, Localized msg) {
+ return addFormLabel(parent, msg.lead());
+ }
+
public static Label addFormLabel(Composite parent, String label) {
Label lbl = new Label(parent, SWT.WRAP);
lbl.setText(label);
public static Label addFormLabel(Composite parent, String label) {
Label lbl = new Label(parent, SWT.WRAP);
lbl.setText(label);
@@
-238,7
+242,8
@@
public class SuiteUiUtils {
boolean test = false;
if (test) {
try (InputStream in = JcrUtils.getFileAsStream(fileNode);
boolean test = false;
if (test) {
try (InputStream in = JcrUtils.getFileAsStream(fileNode);
- OutputStream out = Files.newOutputStream(Paths.get("/home/mbaudier/tmp/" + fileNode.getName()));) {
+ OutputStream out = Files.newOutputStream(
+ Paths.get(System.getProperty("user.home") + "/tmp/" + fileNode.getName()));) {
// BufferedImage img = ImageIO.read(in);
// System.out.println(fileNode.getName() + ": width=" + img.getWidth() + ", height=" + img.getHeight());
IOUtils.copy(in, out);
// BufferedImage img = ImageIO.read(in);
// System.out.println(fileNode.getName() + ": width=" + img.getWidth() + ", height=" + img.getHeight());
IOUtils.copy(in, out);
@@
-419,7
+424,7
@@
public class SuiteUiUtils {
lbl.setText(txt);
lbl.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, true, false));
}
lbl.setText(txt);
lbl.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, true, false));
}
- CmsSwtUtils.sendEventOnSelect(button, Suite
Event.switchLayer.topic(), Suite
Event.LAYER, layer);
+ CmsSwtUtils.sendEventOnSelect(button, Suite
UxEvent.switchLayer.topic(), SuiteUx
Event.LAYER, layer);
return button;
}
return button;
}