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