| 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 inserted. |
| 29 | * |
| 30 | * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> |
| 31 | * @version $JDTAUS: InsertsBlocksMessage.java 8743 2012-10-07 03:06:20Z schulte $ |
| 32 | */ |
| 33 | public final class InsertsBlocksMessage extends Message |
| 34 | { |
| 35 | //--Contstants-------------------------------------------------------------- |
| 36 | |
| 37 | /** Serial version UID for backwards compatibility with 1.0.x classes. */ |
| 38 | private static final long serialVersionUID = -424968452327049764L; |
| 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 | * Inserts blocks. |
| 64 | * </pre></blockquote> |
| 65 | */ |
| 66 | public String getText( final Locale locale ) |
| 67 | { |
| 68 | return this.getInsertsBlocksMessage( locale ); |
| 69 | } |
| 70 | |
| 71 | //-----------------------------------------------------------------Message-- |
| 72 | //--InsertsBlocksMessage---------------------------------------------------- |
| 73 | |
| 74 | /** Creates a new {@code InsertsBlocksMessage} instance. */ |
| 75 | public InsertsBlocksMessage() |
| 76 | { |
| 77 | super(); |
| 78 | } |
| 79 | |
| 80 | //----------------------------------------------------InsertsBlocksMessage-- |
| 81 | //--Messages---------------------------------------------------------------- |
| 82 | |
| 83 | // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:jdtausMessages |
| 84 | // This section is managed by jdtaus-container-mojo. |
| 85 | |
| 86 | /** |
| 87 | * Gets the text of message <code>insertsBlocks</code>. |
| 88 | * <blockquote><pre>Fügt Satzabschnitte ein.</pre></blockquote> |
| 89 | * <blockquote><pre>Inserting blocks.</pre></blockquote> |
| 90 | * |
| 91 | * @param locale The locale of the message instance to return. |
| 92 | * |
| 93 | * @return Progress description when blocks are inserted. |
| 94 | */ |
| 95 | private String getInsertsBlocksMessage( final Locale locale ) |
| 96 | { |
| 97 | return ContainerFactory.getContainer(). |
| 98 | getMessage( this, "insertsBlocks", locale, null ); |
| 99 | |
| 100 | } |
| 101 | |
| 102 | // </editor-fold>//GEN-END:jdtausMessages |
| 103 | |
| 104 | //----------------------------------------------------------------Messages-- |
| 105 | } |