1 /*
2 * jDTAUS Core Messages
3 * Copyright (C) 2005 Christian Schulte
4 * <cs@schulte.it>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 */
21 package org.jdtaus.core.messages;
22
23 import java.util.Locale;
24 import org.jdtaus.core.container.ContainerFactory;
25 import org.jdtaus.core.text.Message;
26
27 /**
28 * {@code Message} stating that blocks are being deleted.
29 *
30 * @author <a href="mailto:cs@schulte.it">Christian Schulte</a>
31 * @version $JDTAUS: DeletesBlocksMessage.java 8641 2012-09-27 06:45:17Z schulte $
32 */
33 public final class DeletesBlocksMessage extends Message
34 {
35 //--Contstants--------------------------------------------------------------
36
37 /** Serial version UID for backwards compatibility with 1.0.x classes. */
38 private static final long serialVersionUID = -6844483443532007265L;
39
40 //---------------------------------------------------------------Constants--
41 //--Message-----------------------------------------------------------------
42
43 /** Empty array. */
44 private static final Object[] ARGUMENTS =
45 {
46 };
47
48 /**
49 * {@inheritDoc}
50 *
51 * @return an empty array, since the message has no arguments.
52 */
53 public Object[] getFormatArguments( final Locale locale )
54 {
55 return ARGUMENTS;
56 }
57
58 /**
59 * {@inheritDoc}
60 *
61 * @return The corresponding text from the message's {@code ResourceBundle}:
62 * <blockquote><pre>
63 * Deletes blocks.
64 * </pre></blockquote>
65 */
66 public String getText( final Locale locale )
67 {
68 return this.getDeletesBlocksMessage( locale );
69 }
70
71 //-----------------------------------------------------------------Message--
72 //--Messages----------------------------------------------------------------
73
74 // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:jdtausMessages
75 // This section is managed by jdtaus-container-mojo.
76
77 /**
78 * Gets the text of message <code>deletesBlocks</code>.
79 * <blockquote><pre>Entfernt Satzabschnitte.</pre></blockquote>
80 * <blockquote><pre>Deleting blocks.</pre></blockquote>
81 *
82 * @param locale The locale of the message instance to return.
83 *
84 * @return Progress description when blocks are deleted.
85 */
86 private String getDeletesBlocksMessage( final Locale locale )
87 {
88 return ContainerFactory.getContainer().
89 getMessage( this, "deletesBlocks", locale, null );
90
91 }
92
93 // </editor-fold>//GEN-END:jdtausMessages
94
95 //----------------------------------------------------------------Messages--
96 }