[Japi-cvs] SF.net SVN: japi:[1208] libs/swing-action/trunk/src/prj/net/sf/japi/swing/ action
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2009-03-01 20:54:48
|
Revision: 1208 http://japi.svn.sourceforge.net/japi/?rev=1208&view=rev Author: christianhujer Date: 2009-03-01 20:54:33 +0000 (Sun, 01 Mar 2009) Log Message: ----------- Removed deprecated variant of the showMessageDialog() method. Modified Paths: -------------- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ActionBuilder.java libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DummyActionBuilder.java Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ActionBuilder.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ActionBuilder.java 2009-03-01 20:36:29 UTC (rev 1207) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/ActionBuilder.java 2009-03-01 20:54:33 UTC (rev 1208) @@ -420,19 +420,9 @@ /** Show a localized message dialog. * @param parentComponent determines the Frame in which the dialog is displayed; if <code>null</code>, or if the <code>parentComponent</code> has * no <code>Frame</code>, a default <code>Frame</code> is used - * @param messageType the type of message to be displayed * @param key localization key to use for the title, the message and eventually the icon * @param args formatting arguments for the message text - * @deprecated use {@link #showMessageDialog(Component, String, Object...)} instead and put the messagetype in the action.properties file. */ - @Deprecated void showMessageDialog(Component parentComponent, int messageType, String key, Object... args); - - /** Show a localized message dialog. - * @param parentComponent determines the Frame in which the dialog is displayed; if <code>null</code>, or if the <code>parentComponent</code> has - * no <code>Frame</code>, a default <code>Frame</code> is used - * @param key localization key to use for the title, the message and eventually the icon - * @param args formatting arguments for the message text - */ void showMessageDialog(@Nullable Component parentComponent, @NotNull String key, Object... args); /** Get the message type for a dialog. Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java 2009-03-01 20:36:29 UTC (rev 1207) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DefaultActionBuilder.java 2009-03-01 20:54:33 UTC (rev 1208) @@ -819,21 +819,9 @@ /** Show a localized message dialog. * @param parentComponent determines the Frame in which the dialog is displayed; if <code>null</code>, or if the <code>parentComponent</code> has * no <code>Frame</code>, a default <code>Frame</code> is used - * @param messageType the type of message to be displayed * @param key localization key to use for the title, the message and eventually the icon * @param args formatting arguments for the message text - * @deprecated use {@link #showMessageDialog(Component, String, Object...)} instead and put the messagetype in the action.properties file. */ - @Deprecated public void showMessageDialog(final Component parentComponent, final int messageType, final String key, final Object... args) { - JOptionPane.showMessageDialog(parentComponent, format(key + ".message", args), format(key + ".title", args), messageType); - } - - /** Show a localized message dialog. - * @param parentComponent determines the Frame in which the dialog is displayed; if <code>null</code>, or if the <code>parentComponent</code> has - * no <code>Frame</code>, a default <code>Frame</code> is used - * @param key localization key to use for the title, the message and eventually the icon - * @param args formatting arguments for the message text - */ public void showMessageDialog(@Nullable final Component parentComponent, @NotNull final String key, final Object... args) { JOptionPane.showMessageDialog(parentComponent, format(key + ".message", args), format(key + ".title", args), getMessageType(key)); } Modified: libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DummyActionBuilder.java =================================================================== --- libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DummyActionBuilder.java 2009-03-01 20:36:29 UTC (rev 1207) +++ libs/swing-action/trunk/src/prj/net/sf/japi/swing/action/DummyActionBuilder.java 2009-03-01 20:54:33 UTC (rev 1208) @@ -182,10 +182,6 @@ } /** {@inheritDoc} */ - @Deprecated public void showMessageDialog(final Component parentComponent, final int messageType, final String key, final Object... args) { - } - - /** {@inheritDoc} */ public void showMessageDialog(@Nullable final Component parentComponent, @NotNull final String key, final Object... args) { } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |