X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng2.ui%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Finternal%2Flttng2%2Fui%2Fviews%2Fcontrol%2Fdialogs%2FIConfirmDialog.java;h=8942e9c2df313e37ddd4e2d09ac2a8f21928e167;hb=a6e6f7b4c37dc5adce8b2deeaf1d360b1284ad46;hp=70f0cdf6773be71d29dc4cc1dc9b10fe2bc64e98;hpb=7c94f49001b043cd9605cd2a9d733257993c63c6;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/IConfirmDialog.java b/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/IConfirmDialog.java index 70f0cdf677..8942e9c2df 100644 --- a/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/IConfirmDialog.java +++ b/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/dialogs/IConfirmDialog.java @@ -1,12 +1,12 @@ /********************************************************************** - * Copyright (c) 2012 Ericsson - * + * Copyright (c) 2012, 2013 Ericsson + * * 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: + * + * Contributors: * Bernd Hufmann - Initial API and implementation **********************************************************************/ package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; @@ -14,13 +14,25 @@ package org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs; import org.eclipse.swt.widgets.Shell; /** - * IConfirmDialog *
* Interface for a confirmation dialog. *
+ * + * @author Bernd Hufmann */ public interface IConfirmDialog { - - public boolean openConfirm(Shell parent, String title, String message); - + + /** + * Open a confirmation dialog + * + * @param parent + * The parent shell + * @param title + * The title of the dialog window + * @param message + * The message in the dialog window + * @return If the user clicked OK (true) or Cancel (false) + */ + boolean openConfirm(Shell parent, String title, String message); + }