Skip to content

Package: DialogWrapper

DialogWrapper

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: *
14: *******************************************************************************/
15: package org.eclipse.emf.ecp.edit.internal.swt.util;
16:
17: import org.eclipse.emf.ecp.edit.spi.swt.util.ECPDialogExecutor;
18: import org.eclipse.jface.dialogs.Dialog;
19:
20: /**
21: * Interface to provide a wrapper for opening JFace dialogs.
22: *
23: * @author Eugen Neufeld
24: *
25: */
26: public interface DialogWrapper {
27:
28:         /**
29:          * The wrapper opens the provided JFace Dialog and returns the result via the provided callback.
30:          *
31:          * @param dialog the JFace {@link Dialog}
32:          * @param callBack the {@link ECPDialogExecutor} called
33:          */
34:         void openDialog(Dialog dialog, ECPDialogExecutor callBack);
35: }