Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-07-06 19:19:10 +0000
committerEugene Tarassov2014-07-06 19:19:10 +0000
commitecba7077369fdcb49bb0f2ffdfd25acb2e3953ba (patch)
tree43095df24dd81bcb9dd67122bf2400bf6770fbc8
parente2df43dc40c53798bfacbcc8ccbe3a85ee6470da (diff)
downloadorg.eclipse.tcf-ecba7077369fdcb49bb0f2ffdfd25acb2e3953ba.tar.gz
org.eclipse.tcf-ecba7077369fdcb49bb0f2ffdfd25acb2e3953ba.tar.xz
org.eclipse.tcf-ecba7077369fdcb49bb0f2ffdfd25acb2e3953ba.zip
TCF Debugger: fixed crazy behavior of Path Map dialog when user tries to re-size table columns
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/launch/TCFPathMapTab.java42
1 files changed, 0 insertions, 42 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 a632fe669..2464c6d5f 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
@@ -51,9 +51,7 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Table;
@@ -309,7 +307,6 @@ public class TCFPathMapTab extends AbstractLaunchConfigurationTab {
colQuery.setAlignment(SWT.LEFT);
colQuery.setText(getColumnText(3));
}
- final TableColumn finColQuery = colQuery;
TableLayout layout = new TableLayout();
layout.addColumnData(new ColumnPixelData(30));
@@ -318,45 +315,6 @@ public class TCFPathMapTab extends AbstractLaunchConfigurationTab {
if (showContextQuery())
layout.addColumnData(new ColumnPixelData(100));
- table.addListener(SWT.Resize, new Listener() {
- @Override
- public void handleEvent(Event event) {
- int width = table.getSize().x - 4 - colEnable.getWidth();
- colSource.setWidth(Math.max(width/2, 200));
- colDest.setWidth(Math.max(width/2, 200));
- }
- });
-
- Listener listener = new Listener() {
- @Override
- public void handleEvent(Event event) {
- if (event.widget instanceof TableColumn) {
- TableColumn col = (TableColumn)event.widget;
- int colWidth = col.getWidth();
- if (colWidth < 200) {
- event.doit = false;
- col.setWidth(200);
- }
- }
- }
- };
-
- colSource.addListener(SWT.Resize, listener);
- colDest.addListener(SWT.Resize, listener);
-
- if (showContextQuery()) {
- finColQuery.addListener(SWT.Resize, new Listener() {
- @Override
- public void handleEvent(Event event) {
- int colWidth = finColQuery.getWidth();
- if (colWidth < 80) {
- event.doit = false;
- finColQuery.setWidth(80);
- }
- }
- });
- }
-
table.setLayout(layout);
table.setHeaderVisible(true);
table.setLinesVisible(true);

Back to the top