/******************************************************************************* * Copyright (c) 2012 CEA LIST. * 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 * * Contributors: * Gregoire Dupe (Mia-Software) - Initial API * Nicolas Bros (Mia-Software) - Bug 372865 - FacetSet selection dialog *******************************************************************************/ package org.eclipse.emf.facet.util.ui.internal.exported.dialog; /** * A callback used to return a dialog's result asynchronously. This interface makes it possible to open a second * "pre-commit" dialog when the user commits their selection in the first dialog. This second dialog is given the * opportunity to open before the first dialog closes. This can be useful to ask the user for confirmation for example. *
* The second dialog should either: *
null
from this method, you
* mustn't call {@link IDialogCallback#committed(Object)} or the commit will be done twice
* @return the pre-commit dialog (for unit tests), or null
if no pre-commit callback is needed
*/
D openPrecommitDialog(T1 result, IDialogCallback