Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java')
-rw-r--r--bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java19
1 files changed, 16 insertions, 3 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java
index 37fac45fc84..da55f28153e 100644
--- a/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java
+++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2010 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* IBM Corporation - initial API and implementation
* Marc R. Hoffmann <hoffmann@mountainminds.com> - Bug 284265 [JFace]
* DialogSettings.save() silently ignores IOException
+ * Ruediger Herrmann <ruediger.herrmann@gmx.de> - bug 92518
*******************************************************************************/
package org.eclipse.jface.dialogs;
@@ -120,14 +121,25 @@ public class DialogSettings implements IDialogSettings {
return section;
}
- /* (non-Javadoc)
+ /* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void addSection(IDialogSettings section) {
sections.put(section.getName(), section);
}
- /* (non-Javadoc)
+ /**
+ * Remove a section in the receiver. If the given section does not exist, nothing is done.
+ *
+ * @param section
+ * the section to be removed
+ * @since 3.9
+ */
+ public void removeSection(IDialogSettings section) {
+ sections.remove(section.getName());
+ }
+
+ /* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public String get(String key) {
@@ -591,4 +603,5 @@ public class DialogSettings implements IDialogSettings {
return null;
}
}
+
}

Back to the top