public void showAddUserDialog() throws Exception { securityUser.clear(); securityUser.setMode( Mode.ADD ); userDialog.setTitle( BaseMessages.getString( PKG, "AddUserDialog.Title" ) ); userDialog.show(); }
public void showEditUserDialog() throws Exception { if ( service != null ) { securityUser.clear(); securityUser.setUser( security.getSelectedUser() ); securityUser.setMode( Mode.EDIT ); userDialog.setTitle( BaseMessages.getString( PKG, "EditUserDialog.Title" ) ); userDialog.show(); } }
public void init() { bf = new SwtBindingFactory(); bf.setDocument( this.getXulDomContainer().getDocumentRoot() ); createBindings(); if ( dialog != null && repository != null ) { dialog.setTitle( BaseMessages.getString( PKG, "RepositoryExplorerDialog.DevTitle", repository.getName() ) ); } }
@Override public void showEditUserDialog() throws Exception { if ( service != null && ( (IRoleSupportSecurityManager) service ).getRoles() != null ) { eeSecurityUser.clear(); eeSecurityUser.setUser( security.getSelectedUser(), convertToUIRoleModel( ( (IRoleSupportSecurityManager) service ).getRoles() ) ); eeSecurityUser.setMode( Mode.EDIT ); userDialog.setTitle( BaseMessages.getString( PKG, "EditUserDialog.Title" ) );//$NON-NLS-1$ userDialog.show(); } }
public void showAddUserToRoleDialog() throws Exception { if ( service != null && service.getUsers() != null ) { securityRole.clear(); securityRole.setRole( ( (UIEESecurity) security ).getSelectedRole(), convertToUIUserModel( service.getUsers() ) ); securityRole.setMode( Mode.EDIT_MEMBER ); } roleDialog.setTitle( BaseMessages.getString( PKG, "AddUserToRoleDialog.Title" ) );//$NON-NLS-1$ roleDialog.show(); }
public void showEditRoleDialog() throws Exception { if ( service != null && service.getUsers() != null ) { securityRole.clear(); securityRole.setRole( eeSecurity.getSelectedRole(), convertToUIUserModel( service.getUsers() ) ); securityRole.setMode( Mode.EDIT ); roleDialog.setTitle( BaseMessages.getString( PKG, "EditRoleDialog.Title" ) );//$NON-NLS-1$ roleDialog.show(); } }
public void showAddRoleToUserDialog() throws Exception { if ( service != null && ( (IRoleSupportSecurityManager) service ).getRoles() != null ) { eeSecurityUser.clear(); eeSecurityUser.setUser( security.getSelectedUser(), convertToUIRoleModel( ( (IRoleSupportSecurityManager) service ).getRoles() ) ); eeSecurityUser.setMode( Mode.EDIT_MEMBER ); userDialog.setTitle( BaseMessages.getString( PKG, "AddRoleToUserDialog.Title" ) );//$NON-NLS-1$ userDialog.show(); } }
public void showAddRoleDialog() throws Exception { try { if ( service != null && service.getUsers() != null ) { securityRole.clear(); securityRole.setAvailableUsers( convertToUIUserModel( service.getUsers() ) ); } roleDialog.setTitle( BaseMessages.getString( PKG, "AddRoleDialog.Title" ) );//$NON-NLS-1$ roleDialog.show(); } catch ( KettleException e ) { if ( mainController == null || !mainController.handleLostRepository( e ) ) { messageBox.setTitle( BaseMessages.getString( PKG, "Dialog.Error" ) );//$NON-NLS-1$ messageBox.setAcceptLabel( BaseMessages.getString( PKG, "Dialog.Ok" ) );//$NON-NLS-1$ messageBox.setMessage( BaseMessages.getString( PKG, "SecurityController.AddRole.UnableToShowAddRole", e.getLocalizedMessage() ) );//$NON-NLS-1$ messageBox.open(); } } }
@Override public void showAddUserDialog() throws Exception { try { if ( service != null && ( (IRoleSupportSecurityManager) service ).getRoles() != null ) { eeSecurityUser.clear(); eeSecurityUser.setAvailableRoles( convertToUIRoleModel( ( (IRoleSupportSecurityManager) service ).getRoles() ) ); eeSecurityUser.updateAssignedRoles( convertToUIRoleModel( ( (IRoleSupportSecurityManager) service ) .getDefaultRoles() ) ); } eeSecurityUser.setMode( Mode.ADD ); userDialog.setTitle( BaseMessages.getString( PKG, "AddUserDialog.Title" ) );//$NON-NLS-1$ userDialog.show(); } catch ( KettleException e ) { if ( mainController == null || !mainController.handleLostRepository( e ) ) { messageBox.setTitle( BaseMessages.getString( PKG, "Dialog.Error" ) );//$NON-NLS-1$ messageBox.setAcceptLabel( BaseMessages.getString( PKG, "Dialog.Ok" ) );//$NON-NLS-1$ messageBox.setMessage( BaseMessages.getString( PKG, "SecurityController.AddUser.UnableToShowAddUser", e.getLocalizedMessage() ) );//$NON-NLS-1$ messageBox.open(); } } }
@Bindable public void openSuccesDialog( String title, String message ) { successDialog.setTitle( title ); successLabel.setValue( message ); successDialog.show(); }
@Bindable public void openSuccesDialog( String title, String message ) { successDialog.setTitle( title ); successLabel.setValue( message ); successDialog.show(); }
@Bindable public void openSuccesDialog( String title, String message ) { successDialog.setTitle( title ); successLabel.setValue( message ); successDialog.show(); }
@Bindable public void openSuccesDialog( String title, String message ) { successDialog.setTitle( title ); successLabel.setValue( message ); successDialog.show(); }
protected void displayErrors( JoinError error ) { this.errorDialog.setTitle( error.getTitle() ); this.errorLabel.setValue( error.getError() ); this.errorDialog.show(); }
public void showErrorDialog( String title, String message, boolean showWizardDialog ) { this.showWizardDialog = showWizardDialog; XulDialog errorDialog = (XulDialog) document.getElementById( "errorDialog" ); errorDialog.setTitle( title ); XulLabel errorLabel = (XulLabel) document.getElementById( "errorLabel" ); errorLabel.setValue( message ); errorDialog.show(); }
public void showDialog() { reset(); importDialog.setTitle( resBundle.getString( "importDialog.IMPORT_MONDRIAN", "Import Analysis" ) ); analysisFileLabel.setValue( resBundle.getString( "importDialog.MONDRIAN_FILE", "Mondrian File" ) + ":" ); super.showDialog(); createWorkingForm(); }
public void showErrorDetailsDialog( String title, String message, String detailMessage ) { XulDialog errorDialog = (XulDialog) document.getElementById( "errorDetailsDialog" ); errorDialog.setTitle( title ); XulLabel errorLabel = (XulLabel) document.getElementById( "errorDetailsLabel" ); errorLabel.setValue( message ); XulLabel detailMessageBox = (XulLabel) document.getElementById( "error_dialog_details" ); detailMessageBox.setValue( detailMessage ); errorDialog.show(); }
public void openErrorDialog( String title, String message ) { XulDialog errorDialog = (XulDialog) getXulDomContainer().getDocumentRoot().getElementById( "hadoop-error-dialog" ); errorDialog.setTitle( title ); XulTextbox errorMessage = (XulTextbox) getXulDomContainer().getDocumentRoot().getElementById( "hadoop-error-message" ); errorMessage.setValue( message ); errorDialog.show(); }
public void openErrorDialog( String title, String message ) { XulDialog errorDialog = (XulDialog) getXulDomContainer().getDocumentRoot().getElementById( XUL_AMAZON_EMR_ERROR_DIALOG ); errorDialog.setTitle( title ); XulTextbox errorMessage = (XulTextbox) getXulDomContainer().getDocumentRoot().getElementById( XUL_AMAZON_EMR_ERROR_MESSAGE ); errorMessage.setValue( message ); errorDialog.show(); }
public void openErrorDialog( String title, String message ) { XulDialog errorDialog = (XulDialog) getXulDomContainer().getDocumentRoot().getElementById( "hadoop-error-dialog" ); errorDialog.setTitle( title ); XulTextbox errorMessage = (XulTextbox) getXulDomContainer().getDocumentRoot().getElementById( "hadoop-error-message" ); errorMessage.setValue( message ); errorDialog.show(); }