public void onAccept() { // save model via PersistenceManager here ... this.xulDialog.hide(); }
public void close() { xulDialog.hide(); }
public void cancelAddRoleDialog() throws Exception { roleDialog.hide(); }
public void closeManageAclsDialog() { manageAclsDialog.hide(); }
public void cancelAddUserDialog() throws Exception { userDialog.hide(); }
public void onCancel() { this.xulDialog.hide(); }
public void widgetDisposed( DisposeEvent arg0 ) { xulDialogComponent.hide(); }
public void close() { xulDialog.hide(); }
public void closeCancel() { dialog.hide(); objects.clear(); }
public void editOriginStep() { StepFieldNode theSelectedStep = (StepFieldNode) this.stepFieldsTree.getSelectedItem(); if ( theSelectedStep != null ) { XulDialog theStepsDialog = (XulDialog) document.getElementById( "stepFieldsDialog" ); theStepsDialog.hide(); } }
/** * Executed when user clicks cancel button on the Repository Login Dialog */ public void closeRepositoryLoginDialog() { loginDialog.hide(); getCallback().onCancel(); }
public void hide() { XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "repository-config-dialog" ); //$NON-NLS-1$ dialog.hide(); }
@Bindable public void closeDialog() { lastClicked = CANCELLED; this.dialog.hide(); Spoon.getInstance().refreshTree(); // listeners may remove themselves, old-style iteration for ( int i = 0; i < listeners.size(); i++ ) { listeners.get( i ).onDialogCancel(); } }
private void close() { XulComponent window = document.getElementById( "general-datasource-window" ); if ( window == null ) { // window must be root window = document.getRootElement(); } if ( window instanceof XulDialog ) { ( (XulDialog) window ).hide(); } else if ( window instanceof XulWindow ) { ( (XulWindow) window ).close(); } }
public void cancel() { if ( !repositoryConfigDialog.isHidden() ) { repositoryConfigDialog.hide(); getCallback().onCancel(); } }
/** * updateRole method is called when user has click ok on a edit role dialog. The method updates the role * * @throws Exception */ private void updateRole() { if ( service != null ) { try { IUIRole uiRole = eeSecurity.getSelectedRole(); Set<IUIUser> previousUserList = new HashSet<IUIUser>(); previousUserList.addAll( uiRole.getUsers() ); uiRole.setDescription( securityRole.getDescription() ); uiRole.setUsers( new HashSet<IUIUser>( securityRole.getAssignedUsers() ) ); ( (IRoleSupportSecurityManager) service ).updateRole( uiRole.getRole() ); eeSecurity.updateRole( uiRole, previousUserList ); roleDialog.hide(); } catch ( Throwable th ) { 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, "UpdateRole.UnableToUpdateRole", th.getLocalizedMessage() ) );//$NON-NLS-1$ messageBox.open(); } } }
/** * addRole method is called when user has click ok on a add role dialog. The method add the role * * @throws Exception */ private void addRole() { if ( service != null ) { try { IRole role = securityRole.getRole( (IRoleSupportSecurityManager) service ); ( (IRoleSupportSecurityManager) service ).createRole( role ); eeSecurity.addRole( UIEEObjectRegistery.getInstance().constructUIRepositoryRole( role ) ); roleDialog.hide(); } catch ( Throwable th ) { if ( mainController == null || !mainController.handleLostRepository( th ) ) { messageBox.setTitle( BaseMessages.getString( PKG, "CantCreateRoleDialog.Title" ) );//$NON-NLS-1$ messageBox.setAcceptLabel( BaseMessages.getString( PKG, "Dialog.Close" ) );//$NON-NLS-1$ messageBox .setMessage( BaseMessages.getString( PKG, "CantCreateRoleDialog.Message", th.getLocalizedMessage() ) );//$NON-NLS-1$ messageBox.open(); } } } }
/** * addRole method is called when user has click ok on a add role dialog. The method add the role * * @throws Exception */ protected void addUser() { if ( service != null ) { try { service.saveUserInfo( securityUser.getUserInfo() ); security.addUser( UIObjectRegistry.getInstance().constructUIRepositoryUser( securityUser.getUserInfo() ) ); userDialog.hide(); } catch ( Throwable th ) { if ( mainController == null || !mainController.handleLostRepository( th ) ) { messageBox.setTitle( BaseMessages.getString( PKG, "CantCreateUserDialog.Title" ) ); messageBox.setAcceptLabel( BaseMessages.getString( PKG, "Dialog.Close" ) ); messageBox.setMessage( BaseMessages.getString( PKG, "CantCreateUserDialog.Message", th.getLocalizedMessage() ) ); messageBox.open(); } } } }
/** * addRole method is called when user has click ok on a add role dialog. The method add the role * * @throws Exception */ @Override protected void addUser() { if ( service != null ) { try { service.saveUserInfo( eeSecurityUser.getUserInfo() ); eeSecurity.addUser( UIObjectRegistry.getInstance().constructUIRepositoryUser( eeSecurityUser.getUserInfo() ) ); userDialog.hide(); } catch ( Throwable th ) { if ( mainController == null || !mainController.handleLostRepository( th ) ) { messageBox.setTitle( BaseMessages.getString( PKG, "CantCreateUserDialog.Title" ) );//$NON-NLS-1$ messageBox.setAcceptLabel( BaseMessages.getString( PKG, "Dialog.Close" ) );//$NON-NLS-1$ messageBox .setMessage( BaseMessages.getString( PKG, "CantCreateUserDialog.Message", th.getLocalizedMessage() ) );//$NON-NLS-1$ messageBox.open(); } } } }
/** * updateUser method is called when user has click ok on a edit user dialog. The method updates the user * * @throws Exception */ protected void updateUser() { if ( service != null ) { try { IUIUser uiUser = security.getSelectedUser(); uiUser.setDescription( securityUser.getDescription() ); uiUser.setPassword( securityUser.getPassword() ); service.updateUser( uiUser.getUserInfo() ); security.updateUser( uiUser ); userDialog.hide(); } catch ( Throwable th ) { if ( mainController == null || !mainController.handleLostRepository( th ) ) { messageBox.setTitle( BaseMessages.getString( PKG, "Dialog.Error" ) ); messageBox.setAcceptLabel( BaseMessages.getString( PKG, "Dialog.Ok" ) ); messageBox.setMessage( BaseMessages.getString( PKG, "UpdateUser.UnableToUpdateUser", th .getLocalizedMessage() ) ); messageBox.open(); } } } }