![JAR search and dependency download from the Maven repository](/logo.png)
org.eclipse.rap.rwt.widgets.DialogUtil Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2011, 2016 EclipseSource and others.
* 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:
* EclipseSource - initial API and implementation
******************************************************************************/
package org.eclipse.rap.rwt.widgets;
import org.eclipse.rap.rwt.internal.util.ParamCheck;
import org.eclipse.swt.widgets.Dialog;
/**
* Utility class to work with non-blocking dialogs.
*
* @see Dialog
* @since 2.0
* @deprecated Use the methods on Dialog
instead
*/
@Deprecated
public final class DialogUtil {
/**
* Opens the given dialog
in a non-blocking way and brings it to the front of the
* display. If given, the dialogCallback
is notified when the dialog is closed.
*
* Use this method instead of the open()
method from the respective
* Dialog
implementation when running in JEE_COMPATIBILITY mode.
*
*
* @param dialog the dialog to open, must not be null
.
* @param dialogCallback the callback to be notified when the dialog was closed or
* null
if no callback should be notified.
*
* @see Dialog
* @see DialogCallback
* @see org.eclipse.rap.rwt.application.Application.OperationMode
* @deprecated Use Dialog.open( DialogCallback )
instead
*/
@Deprecated
public static void open( Dialog dialog, DialogCallback dialogCallback ) {
ParamCheck.notNull( dialog, "dialog" );
dialog.open( dialogCallback );
}
private DialogUtil() {
// prevent instantiation
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy