Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2005-01-15 01:25:35 +0000
committerDarin Wright2005-01-15 01:25:35 +0000
commit633059489a036370509cd6ea0522785aa9d9e2ed (patch)
treed613d701685b6c76d0604984e8bf4ffbe48fab53 /org.eclipse.debug.ui
parent7dc56b27b5262eafe0181966c1b241c29eff33ba (diff)
downloadeclipse.platform.debug-633059489a036370509cd6ea0522785aa9d9e2ed.tar.gz
eclipse.platform.debug-633059489a036370509cd6ea0522785aa9d9e2ed.tar.xz
eclipse.platform.debug-633059489a036370509cd6ea0522785aa9d9e2ed.zip
Bug 82900 - should be able to create empty breakpoint working set
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/DebugUIViewsMessages.properties1
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointWorkingSetPage.java14
2 files changed, 1 insertions, 14 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/DebugUIViewsMessages.properties b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/DebugUIViewsMessages.properties
index 1caa8e158..387e42ae9 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/DebugUIViewsMessages.properties
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/DebugUIViewsMessages.properties
@@ -58,7 +58,6 @@ BreakpointWorkingSetPage.3=Breakpoints:
BreakpointWorkingSetPage.4=The name must not have leading or trailing whitespace
BreakpointWorkingSetPage.5=The name must not be empty
BreakpointWorkingSetPage.6=A working set with that name already exists
-BreakpointWorkingSetPage.7=At least one breakpoint must be checked
BreakpointGroupContainerFactory.0=(no group)
BreakpointFileContainerFactory.0=(no file)
BreakpointTypeContainerFactory.0=(other)
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointWorkingSetPage.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointWorkingSetPage.java
index b0f9a7a1e..ce3a33920 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointWorkingSetPage.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/breakpoints/BreakpointWorkingSetPage.java
@@ -42,7 +42,6 @@ import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
-import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkingSet;
@@ -241,22 +240,11 @@ public class BreakpointWorkingSetPage extends WizardPage implements IWorkingSetP
}
}
}
- if (errorMessage == null && !hasCheckedElement())
- errorMessage= DebugUIViewsMessages.getString("BreakpointWorkingSetPage.7"); //$NON-NLS-1$
setErrorMessage(errorMessage);
setPageComplete(errorMessage == null);
}
-
- private boolean hasCheckedElement() {
- TreeItem[] items= fTree.getTree().getItems();
- for (int i= 0; i < items.length; i++) {
- if (items[i].getChecked())
- return true;
- }
- return false;
- }
-
+
private void findCheckedElements(List checkedResources, Object parent) {
Object[] children= fTreeContentProvider.getChildren(parent);
for (int i= 0; i < children.length; i++) {

Back to the top