Author: tchemit Date: 2009-07-23 22:14:25 +0200 (Thu, 23 Jul 2009) New Revision: 1646 Added: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/I18nProjectConfigurePanelUI.java trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/DirectoryI18nProjectConfigurePanelUI.jaxx trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/JarI18nProjectConfigurePanelUI.jaxx Removed: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/I18nProjectConfigurePanelUI.java trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/DirectoryI18nProjectConfigurePanelUI.jaxx trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/JarI18nProjectConfigurePanelUI.jaxx Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/I18nProjectProvider.java trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/DirectoryI18nProjectProvider.java trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/JarI18nProjectProvider.java trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUI.css trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUI.jaxx trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUIHandler.java trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/ProjectUI.css trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/ProjectUI.jaxx trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/ConfigureProjectPanelUI.jaxx trunk/nuiton-i18n-editor/src/main/resources/i18n/nuiton-i18n-editor-en_GB.properties trunk/nuiton-i18n-editor/src/main/resources/i18n/nuiton-i18n-editor-fr_FR.properties Log: improve package and css Copied: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/I18nProjectConfigurePanelUI.java (from rev 1645, trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/I18nProjectConfigurePanelUI.java) =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/I18nProjectConfigurePanelUI.java (rev 0) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/I18nProjectConfigurePanelUI.java 2009-07-23 20:14:25 UTC (rev 1646) @@ -0,0 +1,36 @@ +/** + * *##% Nuiton I18n Editor + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 3 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 Lesser Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. ##%* + */ +package org.nuiton.i18n.editor.project; + +import org.nuiton.i18n.editor.ui.project.*; +import jaxx.runtime.JAXXObject; + +/** + * Le contrat a respecter pour configurer un type de projet. + * + * @author chemit + */ +public interface I18nProjectConfigurePanelUI extends JAXXObject { + + /** + * + * @return l'instance partagee du modele de creation de projet + */ + ProjectUIModel getModel(); +} Property changes on: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/I18nProjectConfigurePanelUI.java ___________________________________________________________________ Added: svn:mergeinfo + Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/I18nProjectProvider.java =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/I18nProjectProvider.java 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/I18nProjectProvider.java 2009-07-23 20:14:25 UTC (rev 1646) @@ -24,7 +24,6 @@ import java.util.Map; import java.util.Properties; import org.nuiton.i18n.editor.ui.project.ProjectUIModel; -import org.nuiton.i18n.editor.ui.project.I18nProjectConfigurePanelUI; /** * Le contrat d'un provider du projet. Copied: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/DirectoryI18nProjectConfigurePanelUI.jaxx (from rev 1645, trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/DirectoryI18nProjectConfigurePanelUI.jaxx) =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/DirectoryI18nProjectConfigurePanelUI.jaxx (rev 0) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/DirectoryI18nProjectConfigurePanelUI.jaxx 2009-07-23 20:14:25 UTC (rev 1646) @@ -0,0 +1,81 @@ +<!-- + +/** + * *##% Nuiton I18n Editor + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 3 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 Lesser Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. ##%* + */ + +--> + +<Table fill='both' constraints='DirectoryI18nProject.class.getName()' + implements='org.nuiton.i18n.editor.project.I18nProjectConfigurePanelUI'> + + <script><![CDATA[ +import jaxx.runtime.SwingUtil; + +import org.nuiton.i18n.editor.*; +import org.nuiton.i18n.editor.project.impl.*; +import org.nuiton.i18n.editor.ui.project.*; + +import java.io.File; + +protected ProjectUIModel model = getContextValue(ProjectUIModel.class); + +@Override +public ProjectUIModel getModel() { + return model; +} + +public void chooseDirectorySource() { + File f = model.chooseDirectory( + this, + _("i18neditor.title.choose.directory.source"), + _("i18neditor.action.choose.directory.source.description"), + model.getJarSource()); + model.setDirectorySource(f); +} +]]> + </script> + + <row> + <cell columns="2"> + <JLabel text='i18neditor.createproject.name.label'/> + </cell> + </row> + <row> + <cell columns="2"> + <JTextField text='{SwingUtil.getStringValue(model.getProjectName())}' + onKeyReleased='model.setProjectName(((JTextField)event.getSource()).getText())'/> + </cell> + </row> + <row> + <cell columns="2"> + <JLabel text='i18neditor.createproject.directory.source.label'/> + </cell> + </row> + <row> + <cell weightx='1' fill="both"> + <JTextField id="directorySourceFile" + text='{SwingUtil.getStringValue(model.getDirectorySource()+"")}' + onKeyReleased='model.setDirectorySource(new File(((JTextField)event.getSource()).getText()))'/> + </cell> + <cell anchor="east"> + <JButton actionIcon="fileChooser" + onActionPerformed="chooseDirectorySource()"/> + </cell> + </row> +</Table> Property changes on: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/DirectoryI18nProjectConfigurePanelUI.jaxx ___________________________________________________________________ Added: svn:mergeinfo + Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/DirectoryI18nProjectProvider.java =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/DirectoryI18nProjectProvider.java 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/DirectoryI18nProjectProvider.java 2009-07-23 20:14:25 UTC (rev 1646) @@ -27,9 +27,8 @@ import java.util.Properties; import java.util.TreeMap; import org.nuiton.i18n.I18n; -import org.nuiton.i18n.editor.ui.project.I18nProjectConfigurePanelUI; +import org.nuiton.i18n.editor.project.I18nProjectConfigurePanelUI; import org.nuiton.i18n.editor.ui.project.ProjectUIModel; -import org.nuiton.i18n.editor.ui.project.tabs.DirectoryI18nProjectConfigurePanelUI; import org.nuiton.util.ConverterUtil; /** Copied: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/JarI18nProjectConfigurePanelUI.jaxx (from rev 1645, trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/JarI18nProjectConfigurePanelUI.jaxx) =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/JarI18nProjectConfigurePanelUI.jaxx (rev 0) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/JarI18nProjectConfigurePanelUI.jaxx 2009-07-23 20:14:25 UTC (rev 1646) @@ -0,0 +1,93 @@ +<!-- + +/** + * *##% Nuiton I18n Editor + * Copyright (C) 2008 - 2009 CodeLutin + * + * 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 3 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 Lesser Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. ##%* + */ + +--> + +<Table fill='both' constraints='JarI18nProject.class.getName()' + implements='org.nuiton.i18n.editor.project.I18nProjectConfigurePanelUI'> + + <script><![CDATA[ +import jaxx.runtime.SwingUtil; + +import org.nuiton.i18n.editor.*; +import org.nuiton.i18n.editor.project.impl.*; +import org.nuiton.i18n.editor.ui.project.*; + +import java.io.File; + +protected ProjectUIModel model = getContextValue(ProjectUIModel.class); + +@Override +public ProjectUIModel getModel() { + return model; +} + +public void chooseJarSource() { + File f = model.chooseFile ( + this, + _("i18neditor.title.choose.jar.source"), + _("i18neditor.action.choose.jar.source"), + model.getJarSource(), + "^.+\\.jar$", + _("i18neditor.action.choose.jar.source.description")); + model.setJarSource(f); +} +]]> + </script> + + <row> + <cell columns="2"> + <JLabel text='i18neditor.createproject.name.label'/> + </cell> + </row> + <row> + <cell columns="2"> + <JTextField text='{SwingUtil.getStringValue(model.getProjectName())}' + onKeyReleased='model.setProjectName(((JTextField)event.getSource()).getText())'/> + </cell> + </row> + <row> + <cell columns="2"> + <JLabel text='i18neditor.createproject.jar.source.label'/> + </cell> + </row> + <row> + <cell weightx='1' fill="both"> + <JTextField id="jarSourceFile" + text='{SwingUtil.getStringValue(model.getJarSource()+"")}' + onKeyReleased='model.setJarSource(new File(((JTextField)event.getSource()).getText()))'/> + </cell> + <cell anchor="east"> + <JButton actionIcon="fileChooser" + onActionPerformed="chooseJarSource()"/> + </cell> + </row> + <row> + <cell columns="2"> + <JCheckBox id='uniqueJarDefinition' + text='i18neditor.createproject.uniqueJarDefinition' + toolTipText='i18neditor.createproject.uniqueJarDefinition.tip' + selected='{model.isUniqueJarDefinition()}' + onItemStateChanged='model.setUniqueJarDefinition(event.getStateChange() == ItemEvent.SELECTED)'/> + </cell> + </row> +</Table> + Property changes on: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/JarI18nProjectConfigurePanelUI.jaxx ___________________________________________________________________ Added: svn:mergeinfo + Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/JarI18nProjectProvider.java =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/JarI18nProjectProvider.java 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/project/impl/JarI18nProjectProvider.java 2009-07-23 20:14:25 UTC (rev 1646) @@ -31,9 +31,8 @@ import org.apache.commons.logging.LogFactory; import org.nuiton.i18n.I18n; import org.nuiton.i18n.bundle.I18nBundleFactory; -import org.nuiton.i18n.editor.ui.project.I18nProjectConfigurePanelUI; +import org.nuiton.i18n.editor.project.I18nProjectConfigurePanelUI; import org.nuiton.i18n.editor.ui.project.ProjectUIModel; -import org.nuiton.i18n.editor.ui.project.tabs.JarI18nProjectConfigurePanelUI; import org.nuiton.util.ConverterUtil; import org.nuiton.util.Resource; Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUI.css =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUI.css 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUI.css 2009-07-23 20:14:25 UTC (rev 1646) @@ -175,6 +175,13 @@ visible:true; } +#showProjectInfo { + actionIcon:"information"; + toolTipText:"i18neditor.project.info.tip"; + borderPainted:false; + rolloverEnabled:false; +} + #closeTab{ actionIcon:"closeTab"; borderPainted:false; Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUI.jaxx =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUI.jaxx 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUI.jaxx 2009-07-23 20:14:25 UTC (rev 1646) @@ -227,7 +227,7 @@ <JMenuItem id="menuFileOpenProjectOther" onActionPerformed="handler.openOtherProject(context)" _doNotRemove='Boolean.TRUE'/> - <JMenuItem id="menuFileDeleteProject" + <JMenuItem id="menuFileDeleteProject" onActionPerformed="handler.deleteProject(context)" _doNotRemove='Boolean.TRUE'/> <JSeparator/> @@ -259,6 +259,9 @@ <JButton id='showHelp'/> <javax.swing.Box.Filler constructorParams='SwingUtil.newMinDimension(), SwingUtil.newMinDimension(), SwingUtil.newMaxXDimension()'/> + <JSeparator orientation='vertical'/> + <JButton id='showProjectInfo' onActionPerformed='handler.showStorageInfo(context)'/> + <jaxx.runtime.swing.editor.I18nEditor id='changeI18n' opaque='false' showText='false' Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUIHandler.java =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUIHandler.java 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/I18nEditorUIHandler.java 2009-07-23 20:14:25 UTC (rev 1646) @@ -553,6 +553,23 @@ about.showInDialog(ui, true); } + public void showStorageInfo(I18nEditorContext context) { + + I18nEditorUI ui = getUI(context); + + String text = null; + if (context.getProject() == null) { + text = _("i18neditor.message.no.project.loaded"); + } else { + text = context.getProject().toString(); + } + JOptionPane.showMessageDialog( + ui, + text, + _("i18neditor.title.project.info"), + JOptionPane.INFORMATION_MESSAGE); + } + /** * Méthode pour lancer l'assistant de creation de projet. * Deleted: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/I18nProjectConfigurePanelUI.java =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/I18nProjectConfigurePanelUI.java 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/I18nProjectConfigurePanelUI.java 2009-07-23 20:14:25 UTC (rev 1646) @@ -1,35 +0,0 @@ -/** - * *##% Nuiton I18n Editor - * Copyright (C) 2008 - 2009 CodeLutin - * - * 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 3 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 Lesser Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. ##%* - */ -package org.nuiton.i18n.editor.ui.project; - -import jaxx.runtime.JAXXObject; - -/** - * Le contrat a respecter pour configurer un type de projet. - * - * @author chemit - */ -public interface I18nProjectConfigurePanelUI extends JAXXObject { - - /** - * - * @return l'instance partagee du modele de creation de projet - */ - ProjectUIModel getModel(); -} Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/ProjectUI.css =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/ProjectUI.css 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/ProjectUI.css 2009-07-23 20:14:25 UTC (rev 1646) @@ -17,8 +17,8 @@ * <http://www.gnu.org/licenses/gpl-3.0.html>. ##%* */ -#storageMain { - title:"i18neditor.title.change.storage"; +#mainUI { + title:"i18neditor.title.create.project"; modal:true; resizable:false; defaultCloseOperation:"dispose_on_close"; Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/ProjectUI.jaxx =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/ProjectUI.jaxx 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/ProjectUI.jaxx 2009-07-23 20:14:25 UTC (rev 1646) @@ -21,7 +21,7 @@ --> -<JDialog id="storageMain" +<JDialog id="mainUI" implements='jaxx.runtime.swing.wizard.WizardUI<ProjectStep, ProjectUIModel>' width='550' height='560' defaultCloseOperation='dispose_on_close'> Modified: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/ConfigureProjectPanelUI.jaxx =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/ConfigureProjectPanelUI.jaxx 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/ConfigureProjectPanelUI.jaxx 2009-07-23 20:14:25 UTC (rev 1646) @@ -30,6 +30,7 @@ import org.nuiton.i18n.editor.*; import org.nuiton.i18n.editor.project.I18nProjectProvider; import org.nuiton.i18n.editor.project.I18nProjectFactory; +import org.nuiton.i18n.editor.project.I18nProjectConfigurePanelUI; import org.nuiton.i18n.editor.ui.project.*; protected String updateContentLayout(I18nProjectProvider<?> projectType) { Deleted: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/DirectoryI18nProjectConfigurePanelUI.jaxx =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/DirectoryI18nProjectConfigurePanelUI.jaxx 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/DirectoryI18nProjectConfigurePanelUI.jaxx 2009-07-23 20:14:25 UTC (rev 1646) @@ -1,81 +0,0 @@ -<!-- - -/** - * *##% Nuiton I18n Editor - * Copyright (C) 2008 - 2009 CodeLutin - * - * 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 3 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 Lesser Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. ##%* - */ - ---> - -<Table fill='both' constraints='DirectoryI18nProject.class.getName()' - implements='org.nuiton.i18n.editor.ui.project.I18nProjectConfigurePanelUI'> - - <script><![CDATA[ -import jaxx.runtime.SwingUtil; - -import org.nuiton.i18n.editor.*; -import org.nuiton.i18n.editor.project.impl.*; -import org.nuiton.i18n.editor.ui.project.*; - -import java.io.File; - -protected ProjectUIModel model = getContextValue(ProjectUIModel.class); - -@Override -public ProjectUIModel getModel() { - return model; -} - -public void chooseDirectorySource() { - File f = model.chooseDirectory( - this, - _("i18neditor.title.choose.directory.source"), - _("i18neditor.action.choose.directory.source.description"), - model.getJarSource()); - model.setDirectorySource(f); -} -]]> - </script> - - <row> - <cell columns="2"> - <JLabel text='i18neditor.createproject.name.label'/> - </cell> - </row> - <row> - <cell columns="2"> - <JTextField text='{SwingUtil.getStringValue(model.getProjectName())}' - onKeyReleased='model.setProjectName(((JTextField)event.getSource()).getText())'/> - </cell> - </row> - <row> - <cell columns="2"> - <JLabel text='i18neditor.createproject.directory.source.label'/> - </cell> - </row> - <row> - <cell weightx='1' fill="both"> - <JTextField id="directorySourceFile" - text='{SwingUtil.getStringValue(model.getDirectorySource()+"")}' - onKeyReleased='model.setDirectorySource(new File(((JTextField)event.getSource()).getText()))'/> - </cell> - <cell anchor="east"> - <JButton actionIcon="fileChooser" - onActionPerformed="chooseDirectorySource()"/> - </cell> - </row> -</Table> Deleted: trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/JarI18nProjectConfigurePanelUI.jaxx =================================================================== --- trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/JarI18nProjectConfigurePanelUI.jaxx 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/java/org/nuiton/i18n/editor/ui/project/tabs/JarI18nProjectConfigurePanelUI.jaxx 2009-07-23 20:14:25 UTC (rev 1646) @@ -1,93 +0,0 @@ -<!-- - -/** - * *##% Nuiton I18n Editor - * Copyright (C) 2008 - 2009 CodeLutin - * - * 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 3 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 Lesser Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. ##%* - */ - ---> - -<Table fill='both' constraints='JarI18nProject.class.getName()' - implements='org.nuiton.i18n.editor.ui.project.I18nProjectConfigurePanelUI'> - - <script><![CDATA[ -import jaxx.runtime.SwingUtil; - -import org.nuiton.i18n.editor.*; -import org.nuiton.i18n.editor.project.impl.*; -import org.nuiton.i18n.editor.ui.project.*; - -import java.io.File; - -protected ProjectUIModel model = getContextValue(ProjectUIModel.class); - -@Override -public ProjectUIModel getModel() { - return model; -} - -public void chooseJarSource() { - File f = model.chooseFile ( - this, - _("i18neditor.title.choose.jar.source"), - _("i18neditor.action.choose.jar.source"), - model.getJarSource(), - "^.+\\.jar$", - _("i18neditor.action.choose.jar.source.description")); - model.setJarSource(f); -} -]]> - </script> - - <row> - <cell columns="2"> - <JLabel text='i18neditor.createproject.name.label'/> - </cell> - </row> - <row> - <cell columns="2"> - <JTextField text='{SwingUtil.getStringValue(model.getProjectName())}' - onKeyReleased='model.setProjectName(((JTextField)event.getSource()).getText())'/> - </cell> - </row> - <row> - <cell columns="2"> - <JLabel text='i18neditor.createproject.jar.source.label'/> - </cell> - </row> - <row> - <cell weightx='1' fill="both"> - <JTextField id="jarSourceFile" - text='{SwingUtil.getStringValue(model.getJarSource()+"")}' - onKeyReleased='model.setJarSource(new File(((JTextField)event.getSource()).getText()))'/> - </cell> - <cell anchor="east"> - <JButton actionIcon="fileChooser" - onActionPerformed="chooseJarSource()"/> - </cell> - </row> - <row> - <cell columns="2"> - <JCheckBox id='uniqueJarDefinition' - text='i18neditor.createproject.uniqueJarDefinition' - toolTipText='i18neditor.createproject.uniqueJarDefinition.tip' - selected='{model.isUniqueJarDefinition()}' - onItemStateChanged='model.setUniqueJarDefinition(event.getStateChange() == ItemEvent.SELECTED)'/> - </cell> - </row> -</Table> - Modified: trunk/nuiton-i18n-editor/src/main/resources/i18n/nuiton-i18n-editor-en_GB.properties =================================================================== --- trunk/nuiton-i18n-editor/src/main/resources/i18n/nuiton-i18n-editor-en_GB.properties 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/resources/i18n/nuiton-i18n-editor-en_GB.properties 2009-07-23 20:14:25 UTC (rev 1646) @@ -4,7 +4,7 @@ i18neditor.action.apply=Apply i18neditor.action.apply.tip= i18neditor.action.cancel=Cancel -i18neditor.action.cancel.tip= +i18neditor.action.cancel.tip=Cancel i18neditor.action.choose.directory.source.description= i18neditor.action.choose.jar.source= i18neditor.action.choose.jar.source.description= @@ -19,7 +19,7 @@ i18neditor.action.create=Create i18neditor.action.createProject=Create project i18neditor.action.delete.key.tip= -i18neditor.action.deleteProject= +i18neditor.action.deleteProject=Delete project i18neditor.action.exit=Exit i18neditor.action.exit.tip=Quit i18neditor.action.fullscreen=Full screen @@ -82,14 +82,12 @@ i18neditor.menu.storeall=Save all i18neditor.message.config.loaded=Config of nuiton-i18n-editor v %1$s was loaded. i18neditor.message.help.usage=Help of nuiton-i18n-editor v %1$s +i18neditor.message.no.project.loaded=< No project loaded > i18neditor.no.keys=< No defined key > i18neditor.package.name=Package \: %1$s +i18neditor.project.info.tip=Click here to display project's informations i18neditor.project.step.chooseProjectType= i18neditor.project.step.chooseProjectType.description= -i18neditor.project.step.configureDirectoryProject= -i18neditor.project.step.configureDirectoryProject.description= -i18neditor.project.step.configureJarProject= -i18neditor.project.step.configureJarProject.description= i18neditor.project.step.configureProject= i18neditor.project.step.configureProject.description= i18neditor.project.step.label= @@ -104,13 +102,14 @@ i18neditor.project.type.jar= i18neditor.project.type.jar.description= i18neditor.resource.name=Resource \: %1$s -i18neditor.title= +i18neditor.title=Nuiton i18n editor < Project %1$s > i18neditor.title.about=About Nuiton i18n editor -i18neditor.title.change.storage= i18neditor.title.choose.directory.source= i18neditor.title.choose.jar.source= i18neditor.title.choose.project= i18neditor.title.choose.projectDir= -i18neditor.title.noproject= +i18neditor.title.create.project=Create a new project +i18neditor.title.noproject=Nuiton i18n editor < no project loaded > +i18neditor.title.project.info=Project's informations i18neditor.warning.nimbus.landf=Could not find nymbus look and feel, please use at least a 1.6u10 version of sun jre i18neditor.warning.no.ui=No ui environment detected\! Modified: trunk/nuiton-i18n-editor/src/main/resources/i18n/nuiton-i18n-editor-fr_FR.properties =================================================================== --- trunk/nuiton-i18n-editor/src/main/resources/i18n/nuiton-i18n-editor-fr_FR.properties 2009-07-22 17:50:16 UTC (rev 1645) +++ trunk/nuiton-i18n-editor/src/main/resources/i18n/nuiton-i18n-editor-fr_FR.properties 2009-07-23 20:14:25 UTC (rev 1646) @@ -41,6 +41,7 @@ i18neditor.action.showHelp.tip=Voir l'aide contextuelle i18neditor.action.site=Site i18neditor.action.site.tip=Acc\u00E9der au site du projet +i18neditor.title.create.project=Cr\u00E9er un nouveau projet i18neditor.bundle.name=Localisation \: %1$s i18neditor.choose.project.to.delete=Choisir le projet \u00E0 supprimer i18neditor.common.descrition=Description @@ -82,14 +83,12 @@ i18neditor.menu.storeall=Sauvegarder i18neditor.message.config.loaded=Configuration de nuiton-i18n-editor v. %1$s charg\u00E9e. i18neditor.message.help.usage=Aide de nuiton-i18n-editor v %1$s +i18neditor.message.no.project.loaded=< Aucun projet charg\u00E9 > i18neditor.no.keys=< Aucune clef definie > i18neditor.package.name=Paquetage \: %1$s +i18neditor.project.info.tip=Cliquer ici pour obtenir des informations sur le projet charg\u00E9 i18neditor.project.step.chooseProjectType=Type de projet i18neditor.project.step.chooseProjectType.description=Choisir le type de projet \u00E0 ouvrir -i18neditor.project.step.configureDirectoryProject=Configuration -i18neditor.project.step.configureDirectoryProject.description=Configurer le projet de type 'r\u00E9pertoire' -i18neditor.project.step.configureJarProject= -i18neditor.project.step.configureJarProject.description= i18neditor.project.step.configureProject=Configuration i18neditor.project.step.configureProject.description=Configurer le projet i18neditor.project.step.label=Etape %1$d/%2$d \: %3$s @@ -106,11 +105,12 @@ i18neditor.resource.name=Resource \: %1$s i18neditor.title=Nuiton i18n editor < Projet %1$s > i18neditor.title.about=A propos de nuiton-i18n-editor... -i18neditor.title.change.storage=Ouvrir un projet i18neditor.title.choose.directory.source=Choisir le r\u00E9pertoire i18neditor.title.choose.jar.source=Choisir un fichier de type 'jar' i18neditor.title.choose.project=Choisir le fichier de d\u00E9finition d'un projet i18neditor.title.choose.projectDir=Choisir une d\u00E9finition de projet +i18neditor.title.create.project= i18neditor.title.noproject=Nuiton i18n editor < aucun projet charg\u00E9 > +i18neditor.title.project.info=Informations sur le projet i18neditor.warning.nimbus.landf=Le look and Feel Nimbus n'a pas \u00E9t\u00E9 trouv\u00E9, il faut au moins la version 1.6u10 de java. i18neditor.warning.no.ui=Aucun environnement graphique d\u00E9tect\u00E9