diff options
author | Michael Rennie | 2006-09-12 14:58:33 +0000 |
---|---|---|
committer | Michael Rennie | 2006-09-12 14:58:33 +0000 |
commit | 4b4c01b51692d209933f6f3981094f77f292aadb (patch) | |
tree | 5bca68b9c37082d24192a98b1169d6d761dcb95b /org.eclipse.debug.ui | |
parent | 5b0f8a2efdef846feaa2dcc770d156598b0f57be (diff) | |
download | eclipse.platform.debug-4b4c01b51692d209933f6f3981094f77f292aadb.tar.gz eclipse.platform.debug-4b4c01b51692d209933f6f3981094f77f292aadb.tar.xz eclipse.platform.debug-4b4c01b51692d209933f6f3981094f77f292aadb.zip |
Bug 157042
[java 1.6] Need way to input counts for all instances / references
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java | 13 | ||||
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencePage.java | 19 |
2 files changed, 18 insertions, 14 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java index fcf120094..0fd75204d 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/SWTUtil.java @@ -274,6 +274,19 @@ public class SWTUtil { } /** + * creates a horizontal spacer for seperating components + * @param comp + * @param numlines + * @since 3.3 + */ + public static void createHorizontalSpacer(Composite comp, int numlines) { + Label lbl = new Label(comp, SWT.NONE); + GridData gd = new GridData(GridData.FILL_HORIZONTAL); + gd.horizontalSpan = numlines; + lbl.setLayoutData(gd); + } + + /** * Creates a Composite widget * @param parent the parent composite to add this composite to * @param columns the number of columns within the composite diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencePage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencePage.java index e3f03ce83..f15e0b35e 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencePage.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/preferences/DebugPreferencePage.java @@ -13,15 +13,14 @@ package org.eclipse.debug.internal.ui.preferences; import org.eclipse.debug.internal.ui.DebugUIPlugin; import org.eclipse.debug.internal.ui.IDebugHelpContextIds; import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; +import org.eclipse.debug.internal.ui.SWTUtil; import org.eclipse.debug.ui.IDebugUIConstants; import org.eclipse.jface.preference.BooleanFieldEditor; import org.eclipse.jface.preference.ColorFieldEditor; import org.eclipse.jface.preference.FieldEditorPreferencePage; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.swt.SWT; -import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; import org.eclipse.ui.PlatformUI; @@ -53,18 +52,18 @@ public class DebugPreferencePage extends FieldEditorPreferencePage implements IW protected void createFieldEditors() { addField(new BooleanFieldEditor(IDebugUIConstants.PREF_REUSE_EDITOR, DebugPreferencesMessages.DebugPreferencePage_2, SWT.NONE, getFieldEditorParent())); - createSpacer(getFieldEditorParent(), 2); + SWTUtil.createHorizontalSpacer(getFieldEditorParent(), 2); addField(new BooleanFieldEditor(IDebugUIConstants.PREF_ACTIVATE_WORKBENCH, DebugPreferencesMessages.DebugPreferencePage_3, SWT.NONE, getFieldEditorParent())); addField(new BooleanFieldEditor(IInternalDebugUIConstants.PREF_ACTIVATE_DEBUG_VIEW, DebugPreferencesMessages.DebugPreferencePage_26, SWT.NONE, getFieldEditorParent())); - createSpacer(getFieldEditorParent(), 2); + SWTUtil.createHorizontalSpacer(getFieldEditorParent(), 2); addField(new BooleanFieldEditor(IDebugUIConstants.PREF_SKIP_BREAKPOINTS_DURING_RUN_TO_LINE, DebugPreferencesMessages.DebugPreferencePage_25, SWT.NONE, getFieldEditorParent())); addField(new BooleanFieldEditor(IDebugPreferenceConstants.PREF_PROMPT_REMOVE_ALL_BREAKPOINTS, DebugPreferencesMessages.DebugPreferencePage_29, SWT.NONE, getFieldEditorParent())); addField(new BooleanFieldEditor(IDebugPreferenceConstants.PREF_PROMPT_REMOVE_BREAKPOINTS_FROM_CONTAINER, DebugPreferencesMessages.DebugPreferencePage_30, SWT.NONE, getFieldEditorParent())); - createSpacer(getFieldEditorParent(), 2); + SWTUtil.createHorizontalSpacer(getFieldEditorParent(), 2); ColorFieldEditor mem= new ColorFieldEditor(IDebugUIConstants.PREF_CHANGED_DEBUG_ELEMENT_COLOR, DebugPreferencesMessages.DebugPreferencePage_4, getFieldEditorParent()); addField(mem); mem = new ColorFieldEditor(IInternalDebugUIConstants.PREF_CHANGED_VALUE_BACKGROUND, DebugPreferencesMessages.DebugPreferencePage_28, getFieldEditorParent()); @@ -78,16 +77,8 @@ public class DebugPreferencePage extends FieldEditorPreferencePage implements IW /** * @see IWorkbenchPreferencePage#init(IWorkbench) */ - public void init(IWorkbench workbench) { - } + public void init(IWorkbench workbench) {} - protected void createSpacer(Composite composite, int columnSpan) { - Label label = new Label(composite, SWT.NONE); - GridData gd = new GridData(); - gd.horizontalSpan = columnSpan; - label.setLayoutData(gd); - } - /* (non-Javadoc) * @see org.eclipse.jface.preference.IPreferencePage#performOk() */ |