summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-12-19 05:29:29 (EST)
committerEike Stepper2007-12-19 05:29:29 (EST)
commit848122ec627d1c0e36484821ce2d56495b08fabc (patch)
treea166c2696b39f3e5ab47c2433affec0d700c7fb5
parent770c31135140717474bba3c790362a0538b46b5b (diff)
downloadcdo-848122ec627d1c0e36484821ce2d56495b08fabc.zip
cdo-848122ec627d1c0e36484821ce2d56495b08fabc.tar.gz
cdo-848122ec627d1c0e36484821ce2d56495b08fabc.tar.bz2
[213432] Make commit timeout configurable
https://bugs.eclipse.org/bugs/show_bug.cgi?id=213432
-rw-r--r--plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOPreferencePage.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOPreferencePage.java b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOPreferencePage.java
index 5fa4413..2af0b41 100644
--- a/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOPreferencePage.java
+++ b/plugins/org.eclipse.emf.cdo.ui/src/org/eclipse/emf/cdo/internal/ui/preferences/CDOPreferencePage.java
@@ -18,6 +18,7 @@ import org.eclipse.net4j.util.ui.prefs.OMPreferencePage;
import org.eclipse.net4j.util.ui.widgets.TextAndDisable;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
@@ -54,6 +55,7 @@ public class CDOPreferencePage extends OMPreferencePage
protected Control createUI(Composite parent)
{
Composite composite = UIUtil.createGridComposite(parent, 1);
+ ((GridLayout)composite.getLayout()).verticalSpacing = 5;
composite.setLayoutData(UIUtil.createGridData());
Group sessionGroup = new Group(composite, SWT.NONE);
@@ -94,8 +96,17 @@ public class CDOPreferencePage extends OMPreferencePage
transactionGroup.setText("Transaction Defaults");
transactionGroup.setLayoutData(UIUtil.createGridData(true, false));
- new Label(transactionGroup, SWT.NONE).setText("Default commit timeout:");
- commitTimeout = new TextAndDisable(transactionGroup, SWT.BORDER, "0");
+ new Label(transactionGroup, SWT.NONE).setText("Commit timeout (millis):");
+ commitTimeout = new TextAndDisable(transactionGroup, SWT.BORDER, "0")
+ {
+ @Override
+ protected GridData createTextLayoutData()
+ {
+ GridData gd = super.createTextLayoutData();
+ gd.widthHint = 64;
+ return gd;
+ }
+ };
commitTimeout.setLayoutData(UIUtil.createGridData(true, false));
initValues();