mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Cosmetic changes in the 'MIPreferencePage' class.
This commit is contained in:
parent
21e625463a
commit
d24ccf7f26
2 changed files with 10 additions and 14 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2003-03-26 Mikhail Khodjaiants
|
||||||
|
Cosmetic changes in the 'MIPreferencePage' class.
|
||||||
|
* MIPreferencePage.java
|
||||||
|
|
||||||
2003-02-12 Mikhail Khodjaiants
|
2003-02-12 Mikhail Khodjaiants
|
||||||
Changes in the 'Automatically Load Symbols' action because of the removal of the
|
Changes in the 'Automatically Load Symbols' action because of the removal of the
|
||||||
'setAutoSolib' method from ICDISharedLibraryManager.
|
'setAutoSolib' method from ICDISharedLibraryManager.
|
||||||
|
|
|
@ -11,6 +11,7 @@ import org.eclipse.cdt.debug.mi.core.IMIConstants;
|
||||||
import org.eclipse.cdt.debug.mi.core.MIPlugin;
|
import org.eclipse.cdt.debug.mi.core.MIPlugin;
|
||||||
import org.eclipse.cdt.debug.mi.internal.ui.IMIHelpContextIds;
|
import org.eclipse.cdt.debug.mi.internal.ui.IMIHelpContextIds;
|
||||||
import org.eclipse.cdt.debug.mi.internal.ui.MIUIPlugin;
|
import org.eclipse.cdt.debug.mi.internal.ui.MIUIPlugin;
|
||||||
|
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
|
||||||
import org.eclipse.jface.preference.FieldEditor;
|
import org.eclipse.jface.preference.FieldEditor;
|
||||||
import org.eclipse.jface.preference.IntegerFieldEditor;
|
import org.eclipse.jface.preference.IntegerFieldEditor;
|
||||||
import org.eclipse.jface.preference.PreferencePage;
|
import org.eclipse.jface.preference.PreferencePage;
|
||||||
|
@ -22,7 +23,6 @@ import org.eclipse.swt.layout.GridData;
|
||||||
import org.eclipse.swt.layout.GridLayout;
|
import org.eclipse.swt.layout.GridLayout;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
import org.eclipse.swt.widgets.Control;
|
import org.eclipse.swt.widgets.Control;
|
||||||
import org.eclipse.swt.widgets.Group;
|
|
||||||
import org.eclipse.swt.widgets.Label;
|
import org.eclipse.swt.widgets.Label;
|
||||||
import org.eclipse.ui.IWorkbench;
|
import org.eclipse.ui.IWorkbench;
|
||||||
import org.eclipse.ui.IWorkbenchPreferencePage;
|
import org.eclipse.ui.IWorkbenchPreferencePage;
|
||||||
|
@ -86,18 +86,7 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
|
||||||
*/
|
*/
|
||||||
private Composite createGroupComposite( Composite parent, int numColumns, String labelText )
|
private Composite createGroupComposite( Composite parent, int numColumns, String labelText )
|
||||||
{
|
{
|
||||||
Group comp = new Group( parent, SWT.NONE );
|
return ControlFactory.createGroup( parent, labelText, numColumns );
|
||||||
//GridLayout
|
|
||||||
GridLayout layout = new GridLayout();
|
|
||||||
layout.numColumns = numColumns;
|
|
||||||
comp.setLayout( layout );
|
|
||||||
//GridData
|
|
||||||
GridData gd = new GridData();
|
|
||||||
gd.verticalAlignment = GridData.FILL;
|
|
||||||
gd.horizontalAlignment = GridData.FILL;
|
|
||||||
comp.setLayoutData( gd );
|
|
||||||
comp.setText( labelText );
|
|
||||||
return comp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -157,11 +146,14 @@ public class MIPreferencePage extends PreferencePage implements IWorkbenchPrefer
|
||||||
Composite spacingComposite = new Composite( comp, SWT.NONE );
|
Composite spacingComposite = new Composite( comp, SWT.NONE );
|
||||||
GridLayout layout = new GridLayout();
|
GridLayout layout = new GridLayout();
|
||||||
spacingComposite.setLayout( layout );
|
spacingComposite.setLayout( layout );
|
||||||
GridData data = new GridData( GridData.GRAB_HORIZONTAL | GridData.FILL_HORIZONTAL );
|
GridData data = new GridData();
|
||||||
data.horizontalSpan = 2;
|
data.horizontalSpan = 2;
|
||||||
spacingComposite.setLayoutData( data );
|
spacingComposite.setLayoutData( data );
|
||||||
|
|
||||||
fTimeoutText = new IntegerFieldEditor( IMIConstants.PREF_REQUEST_TIMEOUT, "Debugger &timeout (ms):", spacingComposite );
|
fTimeoutText = new IntegerFieldEditor( IMIConstants.PREF_REQUEST_TIMEOUT, "Debugger &timeout (ms):", spacingComposite );
|
||||||
|
data = new GridData();
|
||||||
|
data.widthHint = convertWidthInCharsToPixels( 10 );
|
||||||
|
fTimeoutText.getTextControl( spacingComposite ).setLayoutData( data );
|
||||||
fTimeoutText.setPreferenceStore( MIUIPlugin.getDefault().getPreferenceStore() );
|
fTimeoutText.setPreferenceStore( MIUIPlugin.getDefault().getPreferenceStore() );
|
||||||
fTimeoutText.setPreferencePage( this );
|
fTimeoutText.setPreferencePage( this );
|
||||||
fTimeoutText.setValidateStrategy( StringFieldEditor.VALIDATE_ON_KEY_STROKE );
|
fTimeoutText.setValidateStrategy( StringFieldEditor.VALIDATE_ON_KEY_STROKE );
|
||||||
|
|
Loading…
Add table
Reference in a new issue