public class InteractiveConfirmationProvider extends Object implements IConfirmationProvider
Modifier and Type | Class and Description |
---|---|
static class |
InteractiveConfirmationProvider.Factory |
IConfirmationProvider.Provider
Constructor and Description |
---|
InteractiveConfirmationProvider() |
Modifier and Type | Method and Description |
---|---|
Confirmation |
confirm(String subject,
String message,
Set<Confirmation> acceptable,
Confirmation suggestion)
Requests confirmation of some action/operation/consequence pertaining to a
subject and described by a message . |
boolean |
isInteractive() |
public boolean isInteractive()
isInteractive
in interface IConfirmationProvider
public Confirmation confirm(String subject, String message, Set<Confirmation> acceptable, Confirmation suggestion)
IConfirmationProvider
subject
and described by a message
. Any of the non-empty
set of acceptable
responses may be returned, and the requester
may optionally provide a suggestion
of a suitable/safe default
answer.confirm
in interface IConfirmationProvider
Copyright (c) 2014 Eike Stepper (Berlin, Germany) 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 http://www.eclipse.org/legal/epl-v10.html