Re: [xwiki-devs] [xwiki-notifications] r36066 - in rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src: main/java/org/xwiki/rendering/internal/macro/message main/resources/META-INF test/java/org/xwiki/rendering/macro/message
On 03/28/2011 02:58 PM, vmassol (SVN) wrote:
Author: vmassol Date: 2011-03-28 14:58:12 +0200 (Mon, 28 Mar 2011) New Revision: 36066
Added: rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java Modified: rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/resources/META-INF/components.txt rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/test/java/org/xwiki/rendering/macro/message/MessageMacroTest.java Log: XRENDERING-110: Success Macro
Copied: rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java (from rev 36018, rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/InfoMessageMacro.java) =================================================================== --- rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java (rev 0) +++ rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java 2011-03-28 12:58:12 UTC (rev 36066) @@ -0,0 +1,41 @@ +/* + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.xwiki.rendering.internal.macro.message; + +import org.xwiki.component.annotation.Component; + +/** + * Displays a success message. + * + * @version $Id:$
This is not a subversion keyword. So, you don't have a properly configured environment.
+ * @since 2.0M3
^ Really?
+ */ +@Component("success") +public class SuccessMessageMacro extends AbstractMessageMacro +{ + /** + * Create and initialize the descriptor of the macro. + */ + public SuccessMessageMacro() + { + super("Success Message", "Displays a success message note."); + setDefaultCategory(DEFAULT_CATEGORY_FORMATTING); + } +}
-- Sergiu Dumitriu http://purl.org/net/sergiu/
On Mar 28, 2011, at 5:34 PM, Sergiu Dumitriu wrote:
On 03/28/2011 02:58 PM, vmassol (SVN) wrote:
Author: vmassol Date: 2011-03-28 14:58:12 +0200 (Mon, 28 Mar 2011) New Revision: 36066
Added: rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java Modified: rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/resources/META-INF/components.txt rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/test/java/org/xwiki/rendering/macro/message/MessageMacroTest.java Log: XRENDERING-110: Success Macro
Copied: rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java (from rev 36018, rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/InfoMessageMacro.java) =================================================================== --- rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java (rev 0) +++ rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java 2011-03-28 12:58:12 UTC (rev 36066) @@ -0,0 +1,41 @@ +/* + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.xwiki.rendering.internal.macro.message; + +import org.xwiki.component.annotation.Component; + +/** + * Displays a success message. + * + * @version $Id:$
This is not a subversion keyword. So, you don't have a properly configured environment.
it's correct and my env is correct too.
+ * @since 2.0M3
^ Really?
Thanks. Fixed. -Vincent
+ */ +@Component("success") +public class SuccessMessageMacro extends AbstractMessageMacro +{ + /** + * Create and initialize the descriptor of the macro. + */ + public SuccessMessageMacro() + { + super("Success Message", "Displays a success message note."); + setDefaultCategory(DEFAULT_CATEGORY_FORMATTING); + } +}
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
On 03/28/2011 05:41 PM, Vincent Massol wrote:
On Mar 28, 2011, at 5:34 PM, Sergiu Dumitriu wrote:
On 03/28/2011 02:58 PM, vmassol (SVN) wrote:
Author: vmassol Date: 2011-03-28 14:58:12 +0200 (Mon, 28 Mar 2011) New Revision: 36066
Added: rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java Modified: rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/resources/META-INF/components.txt rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/test/java/org/xwiki/rendering/macro/message/MessageMacroTest.java Log: XRENDERING-110: Success Macro
Copied: rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java (from rev 36018, rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/InfoMessageMacro.java) =================================================================== --- rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java (rev 0) +++ rendering/trunk/xwiki-rendering-macros/xwiki-rendering-macro-message/src/main/java/org/xwiki/rendering/internal/macro/message/SuccessMessageMacro.java 2011-03-28 12:58:12 UTC (rev 36066) @@ -0,0 +1,41 @@ +/* + * See the NOTICE file distributed with this work for additional + * information regarding copyright ownership. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.xwiki.rendering.internal.macro.message; + +import org.xwiki.component.annotation.Component; + +/** + * Displays a success message. + * + * @version $Id:$
This is not a subversion keyword. So, you don't have a properly configured environment.
it's correct and my env is correct too.
Indeed, it seems to be correct, but the commit doesn't look good; the next one automatically fixed the displayed value as well.
+ * @since 2.0M3
^ Really?
Thanks. Fixed.
-Vincent
+ */ +@Component("success") +public class SuccessMessageMacro extends AbstractMessageMacro +{ + /** + * Create and initialize the descriptor of the macro. + */ + public SuccessMessageMacro() + { + super("Success Message", "Displays a success message note."); + setDefaultCategory(DEFAULT_CATEGORY_FORMATTING); + } +}
-- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
Sergiu Dumitriu -
Vincent Massol