|
Lines 37-44
Link Here
|
| 37 |
import org.eclipse.swt.custom.BusyIndicator; |
37 |
import org.eclipse.swt.custom.BusyIndicator; |
| 38 |
import org.eclipse.swt.events.ModifyEvent; |
38 |
import org.eclipse.swt.events.ModifyEvent; |
| 39 |
import org.eclipse.swt.events.ModifyListener; |
39 |
import org.eclipse.swt.events.ModifyListener; |
|
|
40 |
import org.eclipse.swt.events.SelectionAdapter; |
| 41 |
import org.eclipse.swt.events.SelectionEvent; |
| 40 |
import org.eclipse.swt.layout.GridData; |
42 |
import org.eclipse.swt.layout.GridData; |
| 41 |
import org.eclipse.swt.layout.GridLayout; |
43 |
import org.eclipse.swt.layout.GridLayout; |
|
|
44 |
import org.eclipse.swt.widgets.Button; |
| 42 |
import org.eclipse.swt.widgets.Composite; |
45 |
import org.eclipse.swt.widgets.Composite; |
| 43 |
import org.eclipse.swt.widgets.Label; |
46 |
import org.eclipse.swt.widgets.Label; |
| 44 |
import org.eclipse.swt.widgets.Text; |
47 |
import org.eclipse.swt.widgets.Text; |
|
Lines 169-174
Link Here
|
| 169 |
validateInput(); |
172 |
validateInput(); |
| 170 |
} |
173 |
} |
| 171 |
}); |
174 |
}); |
|
|
175 |
|
| 176 |
// Add select / deselect all buttons for bug 46669 |
| 177 |
Composite buttonComposite = new Composite(composite, SWT.NONE); |
| 178 |
buttonComposite.setLayout(new GridLayout(2, false)); |
| 179 |
buttonComposite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL)); |
| 180 |
|
| 181 |
Button selectAllButton = new Button(buttonComposite, SWT.PUSH); |
| 182 |
selectAllButton.setText(DebugUIViewsMessages.BreakpointWorkingSetPage_selectAll_label); |
| 183 |
selectAllButton.setToolTipText(DebugUIViewsMessages.BreakpointWorkingSetPage_selectAll_toolTip); |
| 184 |
selectAllButton.addSelectionListener(new SelectionAdapter() { |
| 185 |
public void widgetSelected(SelectionEvent selectionEvent) { |
| 186 |
fTree.setCheckedElements(fTreeContentProvider.getElements(fTree.getInput())); |
| 187 |
validateInput(); |
| 188 |
} |
| 189 |
}); |
| 190 |
|
| 191 |
Button deselectAllButton = new Button(buttonComposite, SWT.PUSH); |
| 192 |
deselectAllButton.setText(DebugUIViewsMessages.BreakpointWorkingSetPage_deselectAll_label); |
| 193 |
deselectAllButton.setToolTipText(DebugUIViewsMessages.BreakpointWorkingSetPage_deselectAll_toolTip); |
| 194 |
deselectAllButton.addSelectionListener(new SelectionAdapter() { |
| 195 |
public void widgetSelected(SelectionEvent selectionEvent) { |
| 196 |
fTree.setCheckedElements(new Object[0]); |
| 197 |
validateInput(); |
| 198 |
} |
| 199 |
}); |
| 172 |
|
200 |
|
| 173 |
if (fWorkingSet != null) |
201 |
if (fWorkingSet != null) |
| 174 |
fWorkingSetName.setText(fWorkingSet.getName()); |
202 |
fWorkingSetName.setText(fWorkingSet.getName()); |