JobDialog.setShellImage( shell, jobEntry );
public static boolean editProperties( JobMeta jobMeta, Spoon spoon, Repository rep, boolean allowDirectoryChange ) { if ( jobMeta == null ) { return false; } JobDialog jd = new JobDialog( spoon.getShell(), SWT.NONE, jobMeta, rep ); jd.setDirectoryChangeAllowed( allowDirectoryChange ); JobMeta ji = jd.open(); // In this case, load shared objects // if ( jd.isSharedObjectsFileChanged() ) { try { SharedObjects sharedObjects = rep != null ? rep.readJobMetaSharedObjects( jobMeta ) : jobMeta.readSharedObjects(); spoon.sharedObjectsFileMap.put( sharedObjects.getFilename(), sharedObjects ); } catch ( Exception e ) { new ErrorDialog( spoon.getShell(), BaseMessages.getString( PKG, "Spoon.Dialog.ErrorReadingSharedObjects.Title" ), BaseMessages.getString( PKG, "Spoon.Dialog.ErrorReadingSharedObjects.Message", spoon.delegates.tabs.makeTabName( jobMeta, true ) ), e ); } } // If we added properties, add them to the variables too, so that they appear in the CTRL-SPACE variable completion. // spoon.setParametersAsVariablesInUI( jobMeta, jobMeta ); if ( jd.isSharedObjectsFileChanged() || ji != null ) { spoon.refreshTree(); spoon.delegates.tabs.renameTabs(); // cheap operation, might as will do it anyway } spoon.setShellText(); return ji != null; }
public static final Button setShellImage( Shell shell, JobEntryInterface jobEntryInterface ) { Button helpButton = null; try { final PluginInterface plugin = getPlugin( jobEntryInterface ); if ( plugin.getCategory().equals( BaseMessages.getString( PKGBASE, "JobCategory.Category.Deprecated" ) ) ) { addDeprecation( shell ); } helpButton = HelpUtils.createHelpButton( shell, HelpUtils.getHelpDialogTitle( plugin ), plugin ); shell.setImage( getImage( shell, plugin ) ); } catch ( Throwable e ) { // Ignore unexpected errors, not worth it } return helpButton; }
props.setLook( shell ); WidgetUtils.setFormLayout( shell, LARGE_MARGIN ); JobDialog.setShellImage( shell, entry ); shell.setText( messages.getString( "Title" ) ); Label lIcon = new Label( shell, SWT.RIGHT ); lIcon.setLayoutData( new FormDataBuilder().right().result() ); lIcon.setImage( JobDialog.getImage( shell, JobDialog.getPlugin( getEntry() ) ) );
private void showJobEntryLogTableOptions( JobEntryLogTable jobEntryLogTable ) { addDBSchemaTableLogOptions( jobEntryLogTable );
private void showChannelLogTableOptions( ChannelLogTable channelLogTable ) { addDBSchemaTableLogOptions( channelLogTable );
public JobEntryInterface open() { Shell parent = getParent(); display = parent.getDisplay(); shell = new Shell( parent, props.getJobsDialogStyle() ); props.setLook( shell ); JobDialog.setShellImage( shell, jobEntry ); backupChanged = jobEntry.hasChanged(); createElements(); // Detect [X] or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed( ShellEvent e ) { cancel(); } } ); getData(); setActive(); BaseStepDialog.setSize( shell ); int width = 750; int height = Const.isWindows() ? 730 : 720; shell.setSize( width, height ); shell.open(); while ( !shell.isDisposed() ) { if ( !display.readAndDispatch() ) { display.sleep(); } } return jobEntry; }
private void showJobLogTableOptions( JobLogTable jobLogTable ) { addDBSchemaTableLogOptions( jobLogTable );
public JobEntryInterface open() { Shell parent = getParent(); display = parent.getDisplay(); shell = new Shell( parent, props.getJobsDialogStyle() ); props.setLook( shell ); JobDialog.setShellImage( shell, jobEntry ); backupChanged = jobEntry.hasChanged(); createElements(); // Detect [X] or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed( ShellEvent e ) { cancel(); } } ); getData(); setActive(); BaseStepDialog.setSize( shell ); int width = 750; int height = Const.isWindows() ? 730 : 718; shell.setSize( width, height ); shell.open(); while ( !shell.isDisposed() ) { if ( !display.readAndDispatch() ) { display.sleep(); } } return jobEntry; }
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );
JobDialog.setShellImage( shell, jobEntry );