diff options
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/PromptingDialog.java')
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/PromptingDialog.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/PromptingDialog.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/PromptingDialog.java index 62a5a6289..622c24dd6 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/PromptingDialog.java +++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/PromptingDialog.java @@ -28,21 +28,21 @@ public class PromptingDialog extends MultipleYesNoPrompter { /** * Prompt for the given resources using the specific condition. The prompt dialog will * have the title specified. - * @param shell - * @param resources - * @param condition - * @param title + * @param shell + * @param resources + * @param condition + * @param title */ public PromptingDialog(Shell shell, IResource[] resources, IPromptCondition condition, String title) { - this(shell, resources, condition, title, false /* all or nothing */); + this(shell, resources, condition, title, false /* all or nothing */); } - + public PromptingDialog(final Shell shell, IResource[] resources, IPromptCondition condition, String title, boolean allOrNothing) { - super(new IShellProvider() { + super(new IShellProvider() { @Override public Shell getShell() { return shell; - } + } }, title, resources.length > 1, allOrNothing); this.resources = resources; this.condition = condition; @@ -52,7 +52,7 @@ public class PromptingDialog extends MultipleYesNoPrompter { * condition a dialog won't be shown. The resources for which the user * confirmed the action are returned. * @return the resources - * + * * @throws InterruptedException * if the user choose to cancel on the prompt dialog */ |