Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-04-11 11:08:04 +0000
committerUwe Stieber2013-04-11 11:08:04 +0000
commit902ec1e3a213082f30ce5c70157e1dc6c195c4c0 (patch)
treea64552e6653e049f7766f01fb3e98e98cdfcd243 /plugins
parentd2c30d669b6f356278c16cd106391f75561bc37f (diff)
downloadorg.eclipse.tcf-902ec1e3a213082f30ce5c70157e1dc6c195c4c0.tar.gz
org.eclipse.tcf-902ec1e3a213082f30ce5c70157e1dc6c195c4c0.tar.xz
org.eclipse.tcf-902ec1e3a213082f30ce5c70157e1dc6c195c4c0.zip
Target Explorer: Fix path map table layouts columns badly if embedded in editor page. Table is to width and user must scroll to see buttons.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFPathMapTab.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFPathMapTab.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFPathMapTab.java
index 2b35c3817..31d0eba9b 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFPathMapTab.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFPathMapTab.java
@@ -151,6 +151,7 @@ public class TCFPathMapTab extends AbstractLaunchConfigurationTab {
viewer = new TableViewer(composite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.FULL_SELECTION);
Table table = viewer.getTable();
+
table.setLayoutData(new GridData(GridData.FILL_BOTH));
table.setHeaderVisible(true);
table.setLinesVisible(true);
@@ -161,8 +162,8 @@ public class TCFPathMapTab extends AbstractLaunchConfigurationTab {
for (int i = 0; i < column_ids.length; i++) {
TableColumn c = new TableColumn(table, SWT.NONE, i);
- c.setText(column_ids[i]);
- c.setWidth(column_size[i]);
+ c.setText(getColumnText(i));
+ c.setWidth(getColumnWidth(i));
}
createTableButtons(composite);
viewer.addSelectionChangedListener(new ISelectionChangedListener() {
@@ -180,6 +181,14 @@ public class TCFPathMapTab extends AbstractLaunchConfigurationTab {
}
});
}
+
+ protected String getColumnText(int column) {
+ return column_ids[column];
+ }
+
+ protected int getColumnWidth(int column) {
+ return column_size[column];
+ }
private void createTableButtons(Composite parent) {
Font font = parent.getFont();

Back to the top