@Override public String getMessage() { StringBuilder message = new StringBuilder( super.getMessage() ); message.append( getPluginsMessage() ); return message.toString(); }
new KettleMissingPluginsException( BaseMessages.getString( PKG, "TransMeta.MissingPluginsFoundWhileLoadingTransformation.Exception" ) ); if ( !missingPluginsException.getMissingPluginDetailsList().isEmpty() ) { throw missingPluginsException; } else { if ( !missingPluginsException.getMissingPluginDetailsList().isEmpty() ) { throw missingPluginsException;
loaded = listener.open( root, filename, importfile ); } catch ( KettleMissingPluginsException e ) { log.logError( e.getMessage(), e );
/** * Shows a dialog listing the missing plugins, asking if you want to go into the marketplace * * @param missingPluginsException * The missing plugins exception */ public void handleMissingPluginsExceptionWithMarketplace( KettleMissingPluginsException missingPluginsException ) { hideSplash(); MessageBox box = new MessageBox( shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO ); box.setText( BaseMessages.getString( PKG, "Spoon.MissingPluginsFoundDialog.Title" ) ); box.setMessage( BaseMessages.getString( PKG, "Spoon.MissingPluginsFoundDialog.Message", Const.CR, missingPluginsException.getPluginsMessage() ) ); int answer = box.open(); if ( ( answer & SWT.YES ) != 0 ) { openMarketplace(); } }