/** * removeAcl method is called when the user select a or a list of acls to remove from the list. It first display a * confirmation box to the user asking to confirm the removal. If the user selected ok, it deletes selected acls from * the list * * @throws Exception */ public void removeAcl() throws Exception { confirmBox.open(); }
confirmBox.open(); } catch ( Exception e ) { if ( mainController == null || !mainController.handleLostRepository( e ) ) {
confirmBox.open();
confirmBox.open(); } else { returnType = TYPE.NO_OP;
confirmBox.open();
confirmBox.open();
confirm.open();
public void showConfirm( final JavaScriptObject callback, String message, String title, String okText, String cancelText ) throws XulException { XulConfirmBox confirm = (XulConfirmBox) wizard.getMainWizardContainer().getDocumentRoot().createElement( "confirmbox" ); confirm.setTitle( title ); confirm.setMessage( message ); confirm.setAcceptLabel( okText ); confirm.setCancelLabel( cancelText ); confirm.addDialogCallback( new XulDialogCallback<String>() { public void onClose( XulComponent component, Status status, String value ) { if ( status == XulDialogCallback.Status.ACCEPT ) { notifyDialogCallbackSuccess( callback, value ); } } public void onError( XulComponent component, Throwable err ) { notifyDialogCallbackError( callback, err.getMessage() ); } } ); confirm.open(); }
@Bindable public void clearFields() { try { XulConfirmBox confirm = (XulConfirmBox) document.createElement( "confirmbox" ); //$NON-NLS-1$ confirm.setTitle( ModelerMessagesHolder.getMessages().getString( "clear_model_title" ) ); //$NON-NLS-1$ confirm.setMessage( ModelerMessagesHolder.getMessages().getString( "clear_model_msg" ) ); //$NON-NLS-1$ confirm.setAcceptLabel( ModelerMessagesHolder.getMessages().getString( "yes" ) ); //$NON-NLS-1$ confirm.setCancelLabel( ModelerMessagesHolder.getMessages().getString( "no" ) ); //$NON-NLS-1$ confirm.addDialogCallback( new XulDialogCallback() { public void onClose( XulComponent sender, Status returnCode, Object retVal ) { if ( returnCode == Status.ACCEPT ) { clearTreeModel(); } } public void onError( XulComponent sender, Throwable t ) { } } ); confirm.open(); } catch ( Exception e ) { e.printStackTrace(); } }
confirm.open();
private void showAutoModelConfirmDialog() throws XulException { XulConfirmBox confirm = (XulConfirmBox) document.createElement( "confirmbox" ); //$NON-NLS-1$ confirm.setTitle( ModelerMessagesHolder.getMessages().getString( "auto_populate_title" ) ); //$NON-NLS-1$ confirm.setMessage( getAutoPopulateMsg() ); confirm.setAcceptLabel( ModelerMessagesHolder.getMessages().getString( "yes" ) ); //$NON-NLS-1$ confirm.setCancelLabel( ModelerMessagesHolder.getMessages().getString( "no" ) ); //$NON-NLS-1$ confirm.addDialogCallback( new XulDialogCallback() { public void onClose( XulComponent sender, Status returnCode, Object retVal ) { if ( returnCode == Status.ACCEPT ) { autoPopulate(); } } public void onError( XulComponent sender, Throwable t ) { } } ); confirm.open(); }
confirm.open();