public String open() { xulDialog.show(); return stepname; }
public String open() { xulDialog.show(); return null; }
public void open() { if ( xulDialog != null ) { xulDialog.show(); } }
public void show() { dialog.show(); }
public void showDialog() { dialog.show(); }
public void show() { XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "repository-explorer-dialog" ); dialog.show(); }
public void show() { XulDialog dialog = (XulDialog) container.getDocumentRoot().getElementById( "repository-config-dialog" ); //$NON-NLS-1$ dialog.show(); }
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 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(); } }
@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 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 show() { if ( loginModel.getUsername() != null ) { userPassword.setFocus(); } else { username.setFocus(); } // PDI-7443: The repo list does not show the selected repo // make the layout play nice, this is necessary to have the selection box scroll reliably if ( availableRepositories.getRows() < 4 ) { availableRepositories.setRows( 4 ); } int idx = loginModel.getRepositoryIndex( loginModel.getSelectedRepository() ); if ( idx >= 0 ) { availableRepositories.setSelectedIndex( idx ); } // END OF PDI-7443 loginDialog.show(); }
public void open() { try { KettleXulLoader theLoader = new KettleXulLoader(); theLoader.setSettingsManager( XulSpoonSettingsManager.getInstance() ); theLoader.setOuterContext( this.shell ); this.container = theLoader.loadXul( XUL ); this.controller = new XulPreviewRowsController( this.shell, this.databaseMeta, this.schema, this.table, this.limit ); this.container.addEventHandler( this.controller ); this.runner = new SwtXulRunner(); this.runner.addContainer( this.container ); this.runner.initialize(); XulDialog thePreviewDialog = (XulDialog) this.container.getDocumentRoot().getElementById( "previewRowsDialog" ); thePreviewDialog.show(); } catch ( Exception e ) { logger.info( e ); } } }
public void showManageAclsDialog() throws Exception { try { manageAclsModel.clear(); manageAclsModel.setAclsList( service.getAllUsers(), service.getAllRoles() ); } catch ( KettleException ke ) { 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, "PermissionsController.UnableToGetUserOrRole", ke.getLocalizedMessage() ) );//$NON-NLS-1$ messageBox.open(); } manageAclsDialog.show(); }
public void open( boolean isAcceptButtonHidden ) { try { KettleXulLoader theLoader = new KettleXulLoader(); theLoader.setOuterContext( this.shell ); theLoader.setSettingsManager( XulSpoonSettingsManager.getInstance() ); this.container = theLoader.loadXul( XUL ); this.controller = new XulStepFieldsController( this.shell, this.databaseMeta, this.schemaTableCombo, this.rowMeta ); this.controller.setShowAcceptButton( isAcceptButtonHidden ); this.container.addEventHandler( this.controller ); this.runner = new SwtXulRunner(); this.runner.addContainer( this.container ); this.runner.initialize(); XulDialog thePreviewDialog = (XulDialog) this.container.getDocumentRoot().getElementById( "stepFieldsDialog" ); thePreviewDialog.show(); ( (SwtDialog) thePreviewDialog ).dispose(); } catch ( Exception e ) { logger.info( e ); } }
public boolean open() { try { KettleXulLoader theLoader = new KettleXulLoader(); theLoader.setSettingsManager( XulSpoonSettingsManager.getInstance() ); theLoader.setSettingsManager( new DefaultSettingsManager( new File( Const.getKettleDirectory() + Const.FILE_SEPARATOR + "xulSettings.properties" ) ) ); theLoader.setOuterContext( this.shell ); this.container = theLoader.loadXul( XUL, new XulDatabaseExplorerResourceBundle() ); XulDialog theExplorerDialog = (XulDialog) this.container.getDocumentRoot().getElementById( "databaseExplorerDialog" ); SpoonPluginManager.getInstance().applyPluginsForContainer( "database_dialog", container ); this.controller = new XulDatabaseExplorerController( this.shell, this.databaseMeta, this.databases, look ); this.container.addEventHandler( this.controller ); this.runner = new SwtXulRunner(); this.runner.addContainer( this.container ); this.runner.initialize(); this.controller.setSelectedSchemaAndTable( schemaName, selectedTable ); // show dialog if connection is success only. if ( controller.getActionStatus() == UiPostActionStatus.OK ) { theExplorerDialog.show(); } } catch ( Exception e ) { LogChannel.GENERAL.logError( "Error exploring database", e ); } return this.controller.getSelectedTable() != null; }
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(); } } }