Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Torregrosa Paez2015-11-24 08:27:51 +0000
committerPablo Torregrosa Paez2015-11-24 08:28:09 +0000
commit9bcd2716b3097a7e8679f68c38bdb8777418f831 (patch)
tree5c4d79e31572e3edf126c124b0589d147a7e61c4 /target_explorer
parentbc02ea7e9462fcc87467d70d90076090664e5126 (diff)
downloadorg.eclipse.tcf-9bcd2716b3097a7e8679f68c38bdb8777418f831.tar.gz
org.eclipse.tcf-9bcd2716b3097a7e8679f68c38bdb8777418f831.tar.xz
org.eclipse.tcf-9bcd2716b3097a7e8679f68c38bdb8777418f831.zip
Target Explorer: Overwrite layout data on AbstractSectionDialog
Change-Id: If3c09fb25b595e567070785203c8308dbc7b4e6b Signed-off-by: Pablo Torregrosa Paez <pablo.torregrosa@windriver.com>
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/dialogs/AbstractSectionDialog.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/dialogs/AbstractSectionDialog.java b/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/dialogs/AbstractSectionDialog.java
index 9de7645a3..854648e87 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/dialogs/AbstractSectionDialog.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui/src/org/eclipse/tcf/te/ui/dialogs/AbstractSectionDialog.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2013, 2014 Wind River Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2013, 2015 Wind River Systems, Inc. and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
@@ -115,7 +115,7 @@ public abstract class AbstractSectionDialog extends CustomTitleAreaDialog implem
FormToolkit toolkit = new FormToolkit(getShell().getDisplay());
ScrolledForm scrolledForm = new CustomFormToolkit(toolkit).createScrolledForm(parent, null, true);
- scrolledForm.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
+ scrolledForm.setLayoutData(getSectionAreaLayoutData());
scrolledForm.getBody().setLayout(FormLayoutFactory.createClearGridLayout(false, 1));
IManagedForm form = new ManagedForm(toolkit, scrolledForm) {
@@ -349,4 +349,8 @@ public abstract class AbstractSectionDialog extends CustomTitleAreaDialog implem
protected boolean doAdditionalValidation(ValidationResult result) {
return true;
}
+
+ protected GridData getSectionAreaLayoutData() {
+ return new GridData(SWT.FILL, SWT.CENTER, true, false);
+ }
}

Back to the top