1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 23:15:24 +02:00

Bug 498941 - GDB preference page can grow huge with long debugger path

Change-Id: Iaacfc18fdb28eee1e64e5de8073114738d25ff79
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This commit is contained in:
Marc-Andre Laperle 2016-10-10 15:04:17 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent bd2fc5fc6a
commit 1f89d55074

View file

@ -81,6 +81,8 @@ import org.eclipse.ui.PlatformUI;
*/
public class GdbDebugPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
private static final int DEFAULT_GDB_COMMAND_LABEL_WIDTH_HINT = 300;
/**
* A vehicle in order to be able to register a selection listener with
* a {@link BooleanFieldEditor}.
@ -543,6 +545,9 @@ public class GdbDebugPreferencePage extends FieldEditorPreferencePage implements
group1);
stringFieldEditorCommand.fillIntoGrid(group1, 2);
GridData stringFieldLayoutData = (GridData) stringFieldEditorCommand.getTextControl(group1).getLayoutData();
stringFieldLayoutData.widthHint = DEFAULT_GDB_COMMAND_LABEL_WIDTH_HINT;
addField(stringFieldEditorCommand);
Button browsebutton = new Button(group1, SWT.PUSH);
browsebutton.setText(MessagesForPreferences.GdbDebugPreferencePage_Browse_button);