Commit | Line | Data |
---|---|---|
d132bcc7 | 1 | /********************************************************************** |
a6e6f7b4 | 2 | * Copyright (c) 2012, 2013 Ericsson |
cfdb727a | 3 | * |
d132bcc7 BH |
4 | * All rights reserved. This program and the accompanying materials are |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
cfdb727a AM |
8 | * |
9 | * Contributors: | |
d132bcc7 BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | **********************************************************************/ | |
115b4a01 | 12 | package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; |
d132bcc7 BH |
13 | |
14 | import org.eclipse.swt.widgets.Shell; | |
15 | ||
16 | /** | |
d132bcc7 BH |
17 | * <p> |
18 | * Interface for a confirmation dialog. | |
19 | * </p> | |
cfdb727a | 20 | * |
dbd4432d | 21 | * @author Bernd Hufmann |
d132bcc7 BH |
22 | */ |
23 | public interface IConfirmDialog { | |
cfdb727a AM |
24 | |
25 | /** | |
26 | * Open a confirmation dialog | |
27 | * | |
28 | * @param parent | |
29 | * The parent shell | |
30 | * @param title | |
31 | * The title of the dialog window | |
32 | * @param message | |
33 | * The message in the dialog window | |
34 | * @return If the user clicked OK (true) or Cancel (false) | |
35 | */ | |
a6e6f7b4 | 36 | boolean openConfirm(Shell parent, String title, String message); |
cfdb727a | 37 | |
d132bcc7 | 38 | } |