[Lutinutil-commits] r919 - in trunk/commandline: . commandline-ui-action commandline-ui-action/src commandline-ui-action/src/main commandline-ui-action/src/main/java commandline-ui-action/src/main/java/org commandline-ui-action/src/main/java/org/codelutin commandline-ui-action/src/main/java/org/codelutin/option commandline-ui-action/src/main/java/org/codelutin/option/ui commandline-ui-action/src/main/java/org/codelutin/option/ui/actions commandline-ui-action/src/main/resources commandline-ui-action/src/main
Author: tchemit Date: 2008-07-25 22:32:24 +0000 (Fri, 25 Jul 2008) New Revision: 919 Added: trunk/commandline/commandline-ui-action/ trunk/commandline/commandline-ui-action/pom.xml trunk/commandline/commandline-ui-action/src/ trunk/commandline/commandline-ui-action/src/main/ trunk/commandline/commandline-ui-action/src/main/java/ trunk/commandline/commandline-ui-action/src/main/java/org/ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/AboutAction.java trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/ChangeLocaleAction.java trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/CommandLineBaseAction.java trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/ConfigAction.java trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/HelpAction.java trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/QuitAction.java trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/SiteAction.java trunk/commandline/commandline-ui-action/src/main/resources/ trunk/commandline/commandline-ui-action/src/main/resources/i18n/ trunk/commandline/commandline-ui-action/src/main/resources/i18n/commandline-ui-action-en_GB.properties trunk/commandline/commandline-ui-action/src/main/resources/i18n/commandline-ui-action-fr_FR.properties trunk/commandline/commandline-ui-action/src/site/ trunk/commandline/commandline-ui-action/src/test/ trunk/commandline/commandline-ui-action/src/test/java/ trunk/commandline/commandline-ui-action/src/test/resources/ Modified: trunk/commandline/pom.xml Log: add commandline-ui-action module with default actions Property changes on: trunk/commandline/commandline-ui-action ___________________________________________________________________ Name: svn:ignore + target Added: trunk/commandline/commandline-ui-action/pom.xml =================================================================== --- trunk/commandline/commandline-ui-action/pom.xml (rev 0) +++ trunk/commandline/commandline-ui-action/pom.xml 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,145 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + + <parent> + <groupId>org.codelutin.commandline</groupId> + <artifactId>commandline-pom</artifactId> + <version>0.7-SNAPSHOT</version> + </parent> + + <artifactId>commandline-ui-action</artifactId> + + <dependencies> + + <dependency> + <groupId>org.codelutin.commandline</groupId> + <artifactId>commandline-ui</artifactId> + </dependency> + + <dependency> + <groupId>org.codelutin.jaxx</groupId> + <artifactId>jaxx-swing-action</artifactId> + </dependency> + + </dependencies> + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + + <name>commandine-ui-action</name> + <version>0.7-SNAPSHOT</version> + <description>basic actions implemented using jaxx-swing-action framework</description> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <packaging>jar</packaging> + + <build> + + <resources> + <resource> + <directory>src/main/resources</directory> + </resource> + <resource> + <directory>${maven.gen.dir}/resources</directory> + </resource> + </resources> + + <plugins> + + <!-- Compile phase --> + <plugin> + <groupId>lutinplugin</groupId> + <artifactId>maven-i18n-plugin</artifactId> + <executions> + <execution> + <id>javaActionConfig</id> + <phase>compile</phase> + <goals> + <goal>parserJavaActionConfig</goal> + </goals> + <configuration> + <treateDefaultEntry>false</treateDefaultEntry> + <entries> + <entry> + <basedir>${maven.src.dir}/main/java</basedir> + <includes> + <param>org\/codelutin\/option\/ui\/actions\/**\/*Action.java</param> + </includes> + <excludes> + <param>org\/codelutin\/option\/ui\/actions\/**\/*AbstractAction.java</param> + </excludes> + </entry> + </entries> + </configuration> + </execution> + <execution> + <id>java</id> + <phase>compile</phase> + <goals> + <goal>parserJava</goal> + <goal>gen</goal> + </goals> + <configuration> + <entries> + <entry> + <basedir>${maven.gen.dir}/java</basedir> + </entry> + </entries> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codelutin.jaxx</groupId> + <artifactId>maven-jaxx-plugin</artifactId> + <configuration> + <copyToCP>true</copyToCP> + <actionsFile>/jaxx/commandline-jaxx-actions.properties</actionsFile> + </configuration> + <executions> + <execution> + <id>jaxx-generate-actions-provider</id> + <goals> + <goal>generate-actions-provider</goal> + </goals> + <configuration> + <fqn>org.codelutin.option.ui.CommandlineActionProvider</fqn> + <fqnAction>org.codelutin.option.ui.actions.CommandLineBaseAction</fqnAction> + <providerName>commandline</providerName> + </configuration> + </execution> + <execution> + <id>jaxx-generate-actions</id> + <goals> + <goal>generate-actions-properties</goal> + </goals> + <configuration> + <includes> + <param> + org\/codelutin\/option/ui\/actions\/**\/*Action.java + </param> + </includes> + <excludes> + <param> + org\/codelutin\/option\/jaxx\/actions\/**\/*AbstractAction.java + </param> + </excludes> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> Added: trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/AboutAction.java =================================================================== --- trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/AboutAction.java (rev 0) +++ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/AboutAction.java 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,49 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program 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 General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.option.ui.actions; + +/** + * Action pour afficher la dialogue de modification de configuration + * + * @author Code Lutin, Chemit Tony + */ +@org.codelutin.jaxx.action.ActionConfig( + actionCommand = "about", + name = "commandline.action.about", + shortDescription = "commandline.action.about.tooltip", + longDescription = "commandline.action.about.help", + smallIcon = "action/about.png", + mnemonic = 'a', + hideActionText = false +) +public class AboutAction extends CommandLineBaseAction { + private static final long serialVersionUID = 9050439968144935986L; + + + public AboutAction(String name) { + super(name); + } + + @Override + public void doAction(java.awt.event.ActionEvent e) { + log.info("To be done!"); + } + + @Override + public void disposeUI() { + super.disposeUI(); + } + +} \ No newline at end of file Added: trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/ChangeLocaleAction.java =================================================================== --- trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/ChangeLocaleAction.java (rev 0) +++ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/ChangeLocaleAction.java 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,110 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program 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 General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.option.ui.actions; + +/** @author chemit */ + +import static org.codelutin.i18n.I18n._; + +import javax.swing.Action; +import java.awt.event.ActionEvent; +import java.util.Locale; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Une action pour recharger la locale. + * <p/> + * Le nom de l'action doit etre de la forme i18n_XX_YY o� XX est la langue + * et YY le pays de la locale � charger. + * + * @author Code Lutin, Chemit Tony + */ +@org.codelutin.jaxx.action.ActionConfig( + actionCommand = "changeLocale", + shortDescription = "commandline.action.changeLocale.tooltip", + longDescription = "commandline.action.changeLocale.help", + hideActionText = false, + multiNames = {"i18n_fr", "i18n_en"} +) +@org.codelutin.i18n.I18nable +public class ChangeLocaleAction extends CommandLineBaseAction { + + public static final Pattern PATTERN_NAME = Pattern.compile("i18n_(\\w\\w)"); + + protected Locale locale; + + private static final long serialVersionUID = 4180668477670765253L; + + public ChangeLocaleAction(String name) { + super(name); + Matcher matcher = PATTERN_NAME.matcher(name); + if (!matcher.matches()) { + throw new IllegalArgumentException(_(getClass().getName() + " should have a name like this 'i18n_XX', but was {0}", name)); + } + + locale = org.codelutin.i18n.I18n.newLocale(matcher.group(1)); + + //putValue(Action.NAME, _(locale.getLibelle())); + //TODO Make it works again :) + putValue(Action.NAME, _(locale.getDisplayLanguage())); + putValue(Action.SMALL_ICON, org.codelutin.jaxx.util.UIHelper.createImageIcon(getIcon())); + } + + @Override + public String getI18nToolTipText() { + return "commandline.action.changeLocale.tooltip"; + } + + public String getIcon() { + return "action/i18n-" + locale.getLanguage() + ".png"; + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + return true; + //TODO Faut-il proposer une confirmation ? + //String s = _(locale.getLibelle()); + //int result = JOptionPane.showConfirmDialog(null, _("commandline.confirm.changeLanguage", s), "changeLanguage", JOptionPane.YES_NO_OPTION); + //return result == JOptionPane.OK_OPTION; + } + + @Override + public void doAction(ActionEvent e) { + + getContext().getMainConfig().setProperty("locale", locale); + // on doit initialiser la nouvelle locale avant de decharger les ui + // au cas ou un appel � une ui surviendrait et dans quel cas la locale + // serait toujours sur l'ancienne valeur ... + getContext().initI18n(); + // save config + getContext().saveSafely(); + // dispose then reload application + getContext().dispose(true); + } + + @Override + public String toString() { + return super.toString() + " Locale " + locale; + } + + public boolean equalsLocale(Locale locale) { + return this.locale.equals(locale) || this.locale.getLanguage().equals(locale.getLanguage()); + } + + public Locale getLocale() { + return locale; + } +} \ No newline at end of file Added: trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/CommandLineBaseAction.java =================================================================== --- trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/CommandLineBaseAction.java (rev 0) +++ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/CommandLineBaseAction.java 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,48 @@ +/** + * ##% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program 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 General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * ##% + */ +package org.codelutin.option.ui.actions; + +import org.codelutin.jaxx.action.MyAbstractAction; +import org.codelutin.option.Context; +import org.codelutin.option.ContextProvider; + +/** @author chemit */ +public class CommandLineBaseAction extends MyAbstractAction { + + private static final long serialVersionUID = -810023044364620841L; + + protected CommandLineBaseAction(String name) { + super(name); + if (log.isTraceEnabled()) { + log.trace("> " + this); + } + } + + public CommandLineBaseAction(MyAbstractAction delegate) { + super(delegate); + if (log.isTraceEnabled()) { + log.trace("> " + this); + } + } + + protected String getPrefix() { + return "jaxx"; + } + + protected Context getContext() { + return ContextProvider.getContext(); + } + +} Added: trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/ConfigAction.java =================================================================== --- trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/ConfigAction.java (rev 0) +++ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/ConfigAction.java 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,64 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program 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 General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.option.ui.actions; + +import org.codelutin.option.ui.ConfigUI; + + +/** + * Action pour afficher la dialogue de modification de configuration + * + * @author Code Lutin, Chemit Tony + */ +@org.codelutin.jaxx.action.ActionConfig( + actionCommand = "config", + name = "commandline.action.config", + shortDescription = "commandline.action.config.tooltip", + longDescription = "commandline.action.config.help", + smallIcon = "action/config.png", + mnemonic = 'P', + hideActionText = false +) +public class ConfigAction extends CommandLineBaseAction { + + ConfigUI ui; + + private static final long serialVersionUID = 1449553547444065616L; + + public ConfigAction(String name) { + super(name); + } + + @Override + public void doAction(java.awt.event.ActionEvent e) { + getUi().setVisible(true); + } + + @Override + public void disposeUI() { + super.disposeUI(); + if (ui != null) { + ui.dispose(); + ui = null; + } + } + + public ConfigUI getUi() { + if (ui == null) { + ui = new ConfigUI().init(getContext(), getContext().getConfigs()); + } + return ui; + } +} \ No newline at end of file Added: trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/HelpAction.java =================================================================== --- trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/HelpAction.java (rev 0) +++ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/HelpAction.java 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,50 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program 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 General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.option.ui.actions; + +/** + * Action pour afficher la dialogue de modification de configuration + * + * @author Code Lutin, Chemit Tony + */ +@org.codelutin.jaxx.action.ActionConfig( + actionCommand = "help", + name = "commandline.action.help", + shortDescription = "commandline.action.help.tooltip", + longDescription = "commandline.action.help.help", + smallIcon = "action/help.png", + mnemonic = 'h', + hideActionText = false +) +public class HelpAction extends CommandLineBaseAction { + private static final long serialVersionUID = 9050439968144935986L; + + + public HelpAction(String name) { + super(name); + } + + @Override + public void doAction(java.awt.event.ActionEvent e) { + log.info("To be done!"); + } + + @Override + public void disposeUI() { + super.disposeUI(); + } + + +} \ No newline at end of file Added: trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/QuitAction.java =================================================================== --- trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/QuitAction.java (rev 0) +++ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/QuitAction.java 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,78 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program 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 General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.option.ui.actions; + +import static org.codelutin.i18n.I18n._; + +import javax.swing.JOptionPane; +import java.awt.event.ActionEvent; + +/** + * Action pour quitter l'aaplication + * + * @author Code Lutin, Chemit Tony + */ +@org.codelutin.jaxx.action.ActionConfig( + actionCommand = "quit", + name = "commandline.action.quit", + shortDescription = "commandline.action.quit.tooltip", + longDescription = "commandline.action.quit.help", + smallIcon = "action/quit.png", + mnemonic = 'q', + hideActionText = false +) +public class QuitAction extends CommandLineBaseAction { + + private static final long serialVersionUID = 9050439968144935986L; + + public QuitAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + + boolean result = super.beforeAction(e); + + if (result) { + String[] response = {_("commandline.yes"), _("commandline.no")}; + int n = JOptionPane.showOptionDialog(null, + _("commandline.close_question"), + _("commandline.question"), + JOptionPane.YES_NO_OPTION, + JOptionPane.QUESTION_MESSAGE, + null, //do not use a custom Icon + response, //the titles of buttons + response[1]); //default button title + + result = n == JOptionPane.YES_OPTION; + + } + + return result; + } + + @Override + public void doAction(java.awt.event.ActionEvent e) { + // ask context to dispose application + getContext().dispose(false); + } + + @Override + public void disposeUI() { + super.disposeUI(); + } + +} \ No newline at end of file Added: trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/SiteAction.java =================================================================== --- trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/SiteAction.java (rev 0) +++ trunk/commandline/commandline-ui-action/src/main/java/org/codelutin/option/ui/actions/SiteAction.java 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,60 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program 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 General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.option.ui.actions; + +import java.awt.Desktop; +import java.awt.event.ActionEvent; +import java.net.URL; + + +/** + * Action pour afficher la dialogue de modification de configuration + * + * @author Code Lutin, Chemit Tony + */ +@org.codelutin.jaxx.action.ActionConfig( + actionCommand = "site", + name = "commandline.action.site", + shortDescription = "commandline.action.site.tooltip", + longDescription = "commandline.action.site.help", + smallIcon = "action/site.png", + mnemonic = 's', + hideActionText = false +) +public class SiteAction extends CommandLineBaseAction { + private static final long serialVersionUID = 9050439968144935986L; + + protected URL siteUrl; + + public SiteAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + if (!super.beforeAction(e) && !Desktop.isDesktopSupported() && !Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) { + return false; + } + siteUrl = (URL) getContext().getMainConfig().getProperty("siteURL"); + return siteUrl != null; + } + + @Override + public void doAction(java.awt.event.ActionEvent e) throws Exception { + super.doAction(e); + Desktop.getDesktop().browse(siteUrl.toURI()); + } + +} \ No newline at end of file Added: trunk/commandline/commandline-ui-action/src/main/resources/i18n/commandline-ui-action-en_GB.properties =================================================================== --- trunk/commandline/commandline-ui-action/src/main/resources/i18n/commandline-ui-action-en_GB.properties (rev 0) +++ trunk/commandline/commandline-ui-action/src/main/resources/i18n/commandline-ui-action-en_GB.properties 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,22 @@ +commandline.action.about=About +commandline.action.about.help= +commandline.action.about.tooltip= +commandline.action.changeLocale.help= +commandline.action.changeLocale.tooltip= +commandline.action.config=Preferences +commandline.action.config.help= +commandline.action.config.tooltip= +commandline.action.help=Help +commandline.action.help.help= +commandline.action.help.tooltip= +commandline.action.quit=Quit +commandline.action.quit.help= +commandline.action.quit.tooltip= +commandline.action.site=Site +commandline.action.site.help= +commandline.action.site.tooltip= +commandline.close_question=Really quit ? +commandline.confirm.changeLanguage= +commandline.no=No +commandline.question=Quit +commandline.yes=Yes Added: trunk/commandline/commandline-ui-action/src/main/resources/i18n/commandline-ui-action-fr_FR.properties =================================================================== --- trunk/commandline/commandline-ui-action/src/main/resources/i18n/commandline-ui-action-fr_FR.properties (rev 0) +++ trunk/commandline/commandline-ui-action/src/main/resources/i18n/commandline-ui-action-fr_FR.properties 2008-07-25 22:32:24 UTC (rev 919) @@ -0,0 +1,22 @@ +commandline.action.about=A propos +commandline.action.about.help= +commandline.action.about.tooltip= +commandline.action.changeLocale.help= +commandline.action.changeLocale.tooltip= +commandline.action.config=Pr\u00E9f\u00E9rences +commandline.action.config.help= +commandline.action.config.tooltip= +commandline.action.help=Aide +commandline.action.help.help= +commandline.action.help.tooltip= +commandline.action.quit=Quitter +commandline.action.quit.help= +commandline.action.quit.tooltip= +commandline.action.site=Site +commandline.action.site.help= +commandline.action.site.tooltip= +commandline.close_question=Voulez-vous quitter ? +commandline.confirm.changeLanguage= +commandline.no=Non +commandline.question=Quitter +commandline.yes=Oui Modified: trunk/commandline/pom.xml =================================================================== --- trunk/commandline/pom.xml 2008-07-25 22:30:53 UTC (rev 918) +++ trunk/commandline/pom.xml 2008-07-25 22:32:24 UTC (rev 919) @@ -21,6 +21,7 @@ <modules> <module>commandline-core</module> <module>commandline-ui</module> + <module>commandline-ui-action</module> <module>maven-plugin</module> <module>commandline-demo</module> </modules> @@ -269,8 +270,13 @@ <artifactId>commandline-ui</artifactId> <version>${current.version}</version> </dependency> - <dependency> + <groupId>org.codelutin.commandline</groupId> + <artifactId>commandline-ui-action</artifactId> + <version>${current.version}</version> + </dependency> + + <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>2.0.4</version>
participants (1)
-
tchemit@users.labs.libre-entreprise.org