Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2009-09-01 10:11:47 -0400
committerAndrew Gvozdev2009-09-01 10:11:47 -0400
commit5a3ed262e6f736927e75b32297e23a16736b7392 (patch)
tree54c39b3d36a6f40dd8a4fefa4e1a0254efa698ef
parent137d0fdfdc630b94b615a8492342d10771abed2b (diff)
downloadorg.eclipse.cdt-5a3ed262e6f736927e75b32297e23a16736b7392.tar.gz
org.eclipse.cdt-5a3ed262e6f736927e75b32297e23a16736b7392.tar.xz
org.eclipse.cdt-5a3ed262e6f736927e75b32297e23a16736b7392.zip
bug 272912: Tool settings UI layout issues
patch from Gaetano Santoro
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java
index 9f13f76f45..798e739c2f 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolSettingsTab.java
@@ -32,7 +32,6 @@ import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.cdt.managedbuilder.internal.core.MultiConfiguration;
import org.eclipse.cdt.managedbuilder.internal.macros.BuildMacroProvider;
-import org.eclipse.cdt.ui.newui.AbstractPage;
import org.eclipse.cdt.ui.newui.PageLayout;
import org.eclipse.core.resources.IResource;
import org.eclipse.jface.preference.IPreferencePageContainer;
@@ -122,7 +121,7 @@ public class ToolSettingsTab extends AbstractCBuildPropertyTab implements IPrefe
private int calcExtra() {
int x = optionList.getTree().getBorderWidth() * 2;
ScrollBar sb = optionList.getTree().getVerticalBar();
- if (sb != null) x += sb.getSize().x;
+ if (sb != null && sb.isVisible()) x += sb.getSize().x;
return x;
}
@@ -392,13 +391,6 @@ public class ToolSettingsTab extends AbstractCBuildPropertyTab implements IPrefe
} else {
displayOptionsForTool(toolListElement);
}
-
- ScrollBar sb = containerSC.getHorizontalBar();
- if (sb != null && sb.isVisible()) {
- settingsPageContainer.pack(true);
- containerSC.setMinSize(settingsPageContainer.getSize());
- ((AbstractPage)page).resize();
- }
}
}

Back to the top