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:
parent
bd2fc5fc6a
commit
1f89d55074
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue