Commit | Line | Data |
---|---|---|
d132bcc7 | 1 | /********************************************************************** |
ed902a2b | 2 | * Copyright (c) 2012, 2014 Ericsson |
11252342 | 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 | |
11252342 AM |
8 | * |
9 | * Contributors: | |
d132bcc7 BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | **********************************************************************/ | |
12 | ||
9bc60be7 | 13 | package org.eclipse.tracecompass.internal.lttng2.control.ui.views.dialogs; |
d132bcc7 BH |
14 | |
15 | ||
16 | import org.eclipse.jface.dialogs.MessageDialog; | |
d132bcc7 | 17 | import org.eclipse.swt.widgets.Shell; |
9bc60be7 | 18 | import org.eclipse.tracecompass.internal.lttng2.control.ui.views.messages.Messages; |
d132bcc7 BH |
19 | |
20 | /** | |
d132bcc7 BH |
21 | * <p> |
22 | * Confirmation dialog implementation. | |
23 | * </p> | |
11252342 | 24 | * |
dbd4432d | 25 | * @author Bernd Hufmann |
d132bcc7 BH |
26 | */ |
27 | ||
28 | public class ConfirmDialog implements IConfirmDialog { | |
29 | ||
d132bcc7 BH |
30 | @Override |
31 | public boolean openConfirm(Shell parent, String title, String message) { | |
11252342 AM |
32 | return MessageDialog.openConfirm(parent, |
33 | Messages.TraceControl_DestroyConfirmationTitle, | |
d132bcc7 BH |
34 | Messages.TraceControl_DestroyConfirmationMessage); |
35 | } | |
36 | } |