Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-04-09 04:58:34 -0400
committerUwe Stieber2013-04-09 04:58:34 -0400
commit3dc3211274b69bb3dd7c58089c0c13eb5ea3aa28 (patch)
treeebdf9af79c750da7adf4594d3feea989b48a2a8f /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf
parent9042daf4c16e9bdc547056d76b0d5d2abe7887b7 (diff)
downloadorg.eclipse.tcf-3dc3211274b69bb3dd7c58089c0c13eb5ea3aa28.tar.gz
org.eclipse.tcf-3dc3211274b69bb3dd7c58089c0c13eb5ea3aa28.tar.xz
org.eclipse.tcf-3dc3211274b69bb3dd7c58089c0c13eb5ea3aa28.zip
Target Explorer: Make sure title area dialogs get a vertical scroll bar if resized below the actual content size
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/AgentSelectionDialog.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/AgentSelectionDialog.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/AgentSelectionDialog.java
index f218f6d03..29b8cd9c6 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/AgentSelectionDialog.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/AgentSelectionDialog.java
@@ -107,18 +107,18 @@ public class AgentSelectionDialog extends CustomTitleAreaDialog {
}
/* (non-Javadoc)
- * @see org.eclipse.tcf.te.ui.jface.dialogs.CustomTitleAreaDialog#createDialogArea(org.eclipse.swt.widgets.Composite)
+ * @see org.eclipse.tcf.te.ui.jface.dialogs.CustomTitleAreaDialog#createDialogAreaContent(org.eclipse.swt.widgets.Composite)
*/
@Override
- protected Control createDialogArea(Composite parent) {
- Composite top = (Composite)super.createDialogArea(parent);
+ protected void createDialogAreaContent(Composite parent) {
+ super.createDialogAreaContent(parent);
setDialogTitle(getDialogTitle());
setTitle(getTitle());
setDefaultMessage(getDefaultMessage(), IMessageProvider.NONE);
// Create the table viewer
- viewer = new TableViewer(top, (supportsMultiSelection() ? SWT.MULTI : SWT.SINGLE) | SWT.BORDER);
+ viewer = new TableViewer(parent, (supportsMultiSelection() ? SWT.MULTI : SWT.SINGLE) | SWT.BORDER);
// Configure the table
Table table = viewer.getTable();
@@ -146,7 +146,7 @@ public class AgentSelectionDialog extends CustomTitleAreaDialog {
viewer.setLabelProvider(new DecoratingLabelProvider(labelProvider, labelProvider));
// Create the filter buttons area
- createFilterButtons(top);
+ createFilterButtons(parent);
// Subclasses may customize the viewer before setting the input
configureTableViewer(viewer);
@@ -167,8 +167,6 @@ public class AgentSelectionDialog extends CustomTitleAreaDialog {
}
}
});
-
- return top;
}
/**

Back to the top