[Japi-cvs] SF.net SVN: japi: [55] trunk/src/app/net/sf/japi/swing
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2006-04-14 16:35:46
|
Revision: 55 Author: christianhujer Date: 2006-04-14 09:35:28 -0700 (Fri, 14 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=55&view=rev Log Message: ----------- Internationalized assertion message. Modified Paths: -------------- trunk/src/app/net/sf/japi/swing/ReflectionAction.java trunk/src/app/net/sf/japi/swing/action.properties Modified: trunk/src/app/net/sf/japi/swing/ReflectionAction.java =================================================================== --- trunk/src/app/net/sf/japi/swing/ReflectionAction.java 2006-04-14 15:36:34 UTC (rev 54) +++ trunk/src/app/net/sf/japi/swing/ReflectionAction.java 2006-04-14 16:35:28 UTC (rev 55) @@ -52,6 +52,9 @@ */ public final class ReflectionAction extends AbstractAction { + /** Action Factory for reading strings. */ + private static final ActionFactory ACTION_FACTORY = ActionFactory.getFactory("net.sf.japi.swing"); + /** The key used for storing the target object to invoke the method on. * Value Type: {@link Object}. */ @@ -143,8 +146,7 @@ try { getMethod(instance).invoke(instance); } catch (final IllegalAccessException ex) { - // TODO: i18n/l10n - assert false : "Action Methods must be accessible public. That means the declaring class as well as the method must be public.\n" + ex; + assert false : ACTION_FACTORY.format("ReflectionAction.nonPublicMethod", ex); } catch (final InvocationTargetException ex) { final ActionFactory actionFactory = (ActionFactory) getValue(REFLECTION_MESSAGE_PROVIDER); final Throwable cause = ex.getCause(); Modified: trunk/src/app/net/sf/japi/swing/action.properties =================================================================== --- trunk/src/app/net/sf/japi/swing/action.properties 2006-04-14 15:36:34 UTC (rev 54) +++ trunk/src/app/net/sf/japi/swing/action.properties 2006-04-14 16:35:28 UTC (rev 55) @@ -52,4 +52,5 @@ saxErrorClose.text=Close saxError.title=XML Errors dialogDontShowAgain=Show this dialog again next time. -laf=Look and Feel \ No newline at end of file +laf=Look and Feel +ReflectionAction.nonPublicMethod=Action Methods must be accessible public. That means the declaring class as well as the method must be public.\n{0} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |