Revision: 4615 http://sourceforge.net/p/jump-pilot/code/4615 Author: edso Date: 2015-12-13 19:45:01 +0000 (Sun, 13 Dec 2015) Log Message: ----------- fix proper messages when parameter locale is different from system locale
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/workbench/plugin/PlugInManager.java Modified: core/trunk/src/com/vividsolutions/jump/workbench/plugin/PlugInManager.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/workbench/plugin/PlugInManager.java 2015-12-13 19:07:11 UTC (rev 4614) +++ core/trunk/src/com/vividsolutions/jump/workbench/plugin/PlugInManager.java 2015-12-13 19:45:01 UTC (rev 4615) @@ -59,12 +59,11 @@ */ public class PlugInManager { private static Logger LOG = Logger.getLogger(PlugInManager.class); - private static final String NOT_INITIALIZED = - I18N.get("com.vividsolutions.jump.workbench.plugin.PlugInManager.could-not-be-initialized"); - private static final String LOADING = - I18N.get("com.vividsolutions.jump.workbench.plugin.PlugInManager.loading"); - private static final String LOADING_ERROR = - I18N.get("com.vividsolutions.jump.workbench.plugin.PlugInManager.throwable-encountered-loading"); + + private static final String NOT_INITIALIZED = "com.vividsolutions.jump.workbench.plugin.PlugInManager.could-not-be-initialized"; + private static final String LOADING = "com.vividsolutions.jump.workbench.plugin.PlugInManager.loading"; + private static final String LOADING_ERROR = "com.vividsolutions.jump.workbench.plugin.PlugInManager.throwable-encountered-loading"; + private TaskMonitor monitor; private WorkbenchContext context; private Collection configurations = new ArrayList(); @@ -137,7 +136,7 @@ PlugInContext pc = context.createPlugInContext(); for (Iterator i = configurations.iterator(); i.hasNext();) { Configuration configuration = (Configuration) i.next(); - monitor.report(LOADING + " " + name(configuration) + " " + monitor.report(I18N.get(LOADING) + " " + name(configuration) + " " + version(configuration)); long start = secondsSince(0); try { @@ -154,7 +153,7 @@ catch (Throwable e) { context.getErrorHandler().handleThrowable(e); context.getWorkbench().getFrame() - .log(configuration.getClass().getName() + " " + NOT_INITIALIZED, this.getClass()); + .log(configuration.getClass().getName() + " " + I18N.get(NOT_INITIALIZED), this.getClass()); } } } @@ -173,7 +172,7 @@ && initSetting.equals(WorkbenchProperties.ATTR_VALUE_FALSE)) continue; - monitor.report(LOADING + " " + className); + monitor.report(I18N.get(LOADING) + " " + className); Class plugInClass = null; try { @@ -233,7 +232,7 @@ } catch (Throwable e) { context.getErrorHandler().handleThrowable(e); context.getWorkbench().getFrame() - .log(className + " " + NOT_INITIALIZED, this.getClass()); + .log(className + " " + I18N.get(NOT_INITIALIZED), this.getClass()); } } } @@ -388,7 +387,7 @@ + ". Refine class name algorithm."); return null; } catch (Throwable t) { - LOG.error(LOADING_ERROR + " " + className + ":"); + LOG.error(I18N.get(LOADING_ERROR) + " " + className + ":"); //e.g. java.lang.VerifyError: class // org.apache.xml.serialize.XML11Serializer //overrides final method [Jon Aquino] ------------------------------------------------------------------------------ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel