blob: 8de7d0ad7d744ec745177050e36a33a2535f2007 [file] [log] [blame]
/**
* Copyright (c) Soft-Maint.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Thomas Cicognani (Soft-Maint) - Bug 406565 - Ok Dialog
* Thomas Cicognani (Soft-Maint) - Bug 430545 - OKDialog may throws InvalidThreadAccess
*/
package org.eclipse.modisco.facet.util.ui.internal.exported.dialog;
import org.eclipse.modisco.facet.util.ui.internal.dialog.OkDialogFactory;
import org.eclipse.modisco.facet.util.ui.internal.sync.generated.SynchronizedOkDialogFactory;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
/**
*
* @author tcicognani
*
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
* @since 0.4
*/
public interface IOkDialogFactory {
IOkDialogFactory DEFAULT = new SynchronizedOkDialogFactory(
new OkDialogFactory(), Display.getDefault());
IOkDialog openDialog(Shell parentShell, int kind, String title,
String message, IDialogCallback<Void> iDialogCallback);
IOkDialog openDialog(Shell parentShell, int kind, String title,
String message);
IOkDialog openInformationDialog(Shell parentShell, String title,
String message, IDialogCallback<Void> iDialogCallback);
IOkDialog openInformationDialog(Shell parentShell, String title,
String message);
IOkDialog openWarningDialog(Shell parentShell, String title,
String message, IDialogCallback<Void> iDialogCallback);
IOkDialog openWarningDialog(Shell parentShell, String title, String message);
IOkDialog openErrorDialog(Shell parentShell, String title, String message,
IDialogCallback<Void> iDialogCallback);
IOkDialog openErrorDialog(Shell parentShell, String title, String message);
IOkDialog openErrorDialog(Shell parentShell, Exception exception,
String message);
}