Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 93686 | Differences between
and this patch

Collapse All | Expand All

(-)BreakpointWorkingSetPage.java (+33 lines)
Lines 19-24 Link Here
19
import org.eclipse.debug.core.model.IBreakpoint;
19
import org.eclipse.debug.core.model.IBreakpoint;
20
import org.eclipse.debug.internal.ui.DebugPluginImages;
20
import org.eclipse.debug.internal.ui.DebugPluginImages;
21
import org.eclipse.debug.internal.ui.DebugUIPlugin;
21
import org.eclipse.debug.internal.ui.DebugUIPlugin;
22
import org.eclipse.debug.internal.ui.SWTUtil;
22
import org.eclipse.debug.internal.ui.views.DebugUIViewsMessages;
23
import org.eclipse.debug.internal.ui.views.DebugUIViewsMessages;
23
import org.eclipse.debug.ui.DebugUITools;
24
import org.eclipse.debug.ui.DebugUITools;
24
import org.eclipse.debug.ui.IDebugUIConstants;
25
import org.eclipse.debug.ui.IDebugUIConstants;
Lines 37-44 Link Here
37
import org.eclipse.swt.custom.BusyIndicator;
38
import org.eclipse.swt.custom.BusyIndicator;
38
import org.eclipse.swt.events.ModifyEvent;
39
import org.eclipse.swt.events.ModifyEvent;
39
import org.eclipse.swt.events.ModifyListener;
40
import org.eclipse.swt.events.ModifyListener;
41
import org.eclipse.swt.events.SelectionAdapter;
42
import org.eclipse.swt.events.SelectionEvent;
40
import org.eclipse.swt.layout.GridData;
43
import org.eclipse.swt.layout.GridData;
41
import org.eclipse.swt.layout.GridLayout;
44
import org.eclipse.swt.layout.GridLayout;
45
import org.eclipse.swt.widgets.Button;
42
import org.eclipse.swt.widgets.Composite;
46
import org.eclipse.swt.widgets.Composite;
43
import org.eclipse.swt.widgets.Label;
47
import org.eclipse.swt.widgets.Label;
44
import org.eclipse.swt.widgets.Text;
48
import org.eclipse.swt.widgets.Text;
Lines 169-174 Link Here
169
				validateInput();
173
				validateInput();
170
			}
174
			}
171
		});
175
		});
176
177
		// Add select / deselect all buttons for bug 46669
178
		Composite buttonComposite = new Composite(composite, SWT.NONE);
179
		buttonComposite.setLayout(new GridLayout(2, false));
180
		buttonComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
181
		
182
		Button selectAllButton = new Button(buttonComposite, SWT.PUSH);
183
		selectAllButton.setText(DebugUIViewsMessages.BreakpointWorkingSetPage_selectAll_label);
184
		selectAllButton.setToolTipText(DebugUIViewsMessages.BreakpointWorkingSetPage_selectAll_toolTip);
185
		selectAllButton.addSelectionListener(new SelectionAdapter() {
186
			public void widgetSelected(SelectionEvent selectionEvent) {
187
				fTree.setCheckedElements(fTreeContentProvider.getElements(fTree.getInput()));
188
				validateInput();
189
			}
190
		});
191
		selectAllButton.setLayoutData(new GridData());
192
		SWTUtil.setButtonDimensionHint(selectAllButton);
193
		
194
		Button deselectAllButton = new Button(buttonComposite, SWT.PUSH);
195
		deselectAllButton.setText(DebugUIViewsMessages.BreakpointWorkingSetPage_deselectAll_label);
196
		deselectAllButton.setToolTipText(DebugUIViewsMessages.BreakpointWorkingSetPage_deselectAll_toolTip);
197
		deselectAllButton.addSelectionListener(new SelectionAdapter() {
198
			public void widgetSelected(SelectionEvent selectionEvent) {
199
				fTree.setCheckedElements(new Object[0]);
200
				validateInput();
201
			}
202
		});
203
		deselectAllButton.setLayoutData(new GridData());
204
		SWTUtil.setButtonDimensionHint(deselectAllButton);
172
		
205
		
173
		if (fWorkingSet != null)
206
		if (fWorkingSet != null)
174
			fWorkingSetName.setText(fWorkingSet.getName());
207
			fWorkingSetName.setText(fWorkingSet.getName());

Return to bug 93686