001/* 002 * jDTAUS Core Messages 003 * Copyright (C) 2005 Christian Schulte 004 * <cs@schulte.it> 005 * 006 * This library is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 2.1 of the License, or any later version. 010 * 011 * This library is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public 017 * License along with this library; if not, write to the Free Software 018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 019 * 020 */ 021package org.jdtaus.core.messages; 022 023import java.util.Locale; 024import org.jdtaus.core.container.ContainerFactory; 025import org.jdtaus.core.text.Message; 026 027/** 028 * {@code Message} stating that blocks are being inserted. 029 * 030 * @author <a href="mailto:cs@schulte.it">Christian Schulte</a> 031 * @version $JDTAUS: InsertsBlocksMessage.java 8743 2012-10-07 03:06:20Z schulte $ 032 */ 033public final class InsertsBlocksMessage extends Message 034{ 035 //--Contstants-------------------------------------------------------------- 036 037 /** Serial version UID for backwards compatibility with 1.0.x classes. */ 038 private static final long serialVersionUID = -424968452327049764L; 039 040 //---------------------------------------------------------------Constants-- 041 //--Message----------------------------------------------------------------- 042 043 /** Empty array. */ 044 private static final Object[] ARGUMENTS = 045 { 046 }; 047 048 /** 049 * {@inheritDoc} 050 * 051 * @return an empty array, since the message has no arguments. 052 */ 053 public Object[] getFormatArguments( final Locale locale ) 054 { 055 return ARGUMENTS; 056 } 057 058 /** 059 * {@inheritDoc} 060 * 061 * @return The corresponding text from the message's {@code ResourceBundle}: 062 * <blockquote><pre> 063 * Inserts blocks. 064 * </pre></blockquote> 065 */ 066 public String getText( final Locale locale ) 067 { 068 return this.getInsertsBlocksMessage( locale ); 069 } 070 071 //-----------------------------------------------------------------Message-- 072 //--InsertsBlocksMessage---------------------------------------------------- 073 074 /** Creates a new {@code InsertsBlocksMessage} instance. */ 075 public InsertsBlocksMessage() 076 { 077 super(); 078 } 079 080 //----------------------------------------------------InsertsBlocksMessage-- 081 //--Messages---------------------------------------------------------------- 082 083// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:jdtausMessages 084 // This section is managed by jdtaus-container-mojo. 085 086 /** 087 * Gets the text of message <code>insertsBlocks</code>. 088 * <blockquote><pre>Fügt Satzabschnitte ein.</pre></blockquote> 089 * <blockquote><pre>Inserting blocks.</pre></blockquote> 090 * 091 * @param locale The locale of the message instance to return. 092 * 093 * @return Progress description when blocks are inserted. 094 */ 095 private String getInsertsBlocksMessage( final Locale locale ) 096 { 097 return ContainerFactory.getContainer(). 098 getMessage( this, "insertsBlocks", locale, null ); 099 100 } 101 102// </editor-fold>//GEN-END:jdtausMessages 103 104 //----------------------------------------------------------------Messages-- 105}