Author: tchemit Date: 2008-01-22 01:50:46 +0000 (Tue, 22 Jan 2008) New Revision: 353 Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorer.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorerContext.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerActionManager.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerTabFactory.java Log: renommage de SimEplorerTabManager en SimExplorerTab + utilisation des mod?\195?\168les de tab : donc dans le context g?\195?\169n?\195?\169rale de l'application, plus rien n'appara?\195?\174t. Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorer.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorer.java 2008-01-22 01:49:37 UTC (rev 352) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorer.java 2008-01-22 01:50:46 UTC (rev 353) @@ -22,7 +22,7 @@ import fr.cemagref.simexplorer.is.service.StorageService; import fr.cemagref.simexplorer.is.ui.swing.JConfigUI; import fr.cemagref.simexplorer.is.ui.swing.SimExplorerMainUI; -import fr.cemagref.simexplorer.is.ui.swing.SimExplorerTabManager; +import fr.cemagref.simexplorer.is.ui.swing.SimExplorerTab; import fr.cemagref.simexplorer.is.ui.swing.SimExplorerActionManager; import org.codelutin.i18n.I18n; import org.codelutin.option.ui.ConfigTableModel; @@ -65,7 +65,7 @@ ui = null; SimExplorerActionManager.resetCache(); JConfigUI.reloadUI(); - SimExplorerTabManager.getFactory().resetCache(); + SimExplorerTab.getFactory().resetCache(); } /** Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorerContext.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorerContext.java 2008-01-22 01:49:37 UTC (rev 352) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/SimExplorerContext.java 2008-01-22 01:50:46 UTC (rev 353) @@ -19,8 +19,6 @@ package fr.cemagref.simexplorer.is.ui; import fr.cemagref.simexplorer.is.ui.actions.SimExplorerCommonActions; -import fr.cemagref.simexplorer.is.ui.swing.bean.ApplicationBean; -import fr.cemagref.simexplorer.is.ui.swing.bean.ListApplicationBean; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.codelutin.option.ParserException; @@ -46,22 +44,6 @@ private boolean launchUI = true; private boolean firstLaunch; - protected ListApplicationBean localApplications; - protected ListApplicationBean remoteApplications; - protected ApplicationBean applicationBean; - - public ApplicationBean getApplicationBean() { - return applicationBean; - } - - public ListApplicationBean getLocalApplications() { - return localApplications; - } - - public ListApplicationBean getRemoteApplications() { - return remoteApplications; - } - public SimExplorerOptionParser getParser() { if (parser == null) { // creation du parseur Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerActionManager.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerActionManager.java 2008-01-22 01:49:37 UTC (rev 352) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerActionManager.java 2008-01-22 01:50:46 UTC (rev 353) @@ -38,7 +38,7 @@ * La classe responsable de l'enregistrement des actions disponibles * dans l'application en délégeant à une ActionFactory. * <p/> - * On peut de plus via la méthode {@link #loadActions(JAXXObject,SimExplorerTabManager)} de charger + * On peut de plus via la méthode {@link #loadActions(JAXXObject, SimExplorerTab)} de charger * dans l'ui les actions connues. * * @author tony @@ -61,7 +61,7 @@ * de type <code>SimExplorerAbstractTabAction</code> pour savoir à quel tab * elles se rattachent. */ - private static SimExplorerTabManager loadingTab; + private static SimExplorerTab loadingTab; /** * @param ui l'ui à charger @@ -70,7 +70,7 @@ * @return le tableau des actions instanciées ou récupérées du cache de * la factory */ - public static AbstractAction[] loadActions(JAXXObject ui, SimExplorerTabManager fromTab) { + public static AbstractAction[] loadActions(JAXXObject ui, SimExplorerTab fromTab) { loadingTab = fromTab; try { AbstractAction[] actions; @@ -82,7 +82,7 @@ } /** @return la tab en cours de chargement ou bien <code>null</code> */ - public static SimExplorerTabManager getLoadingTab() { + public static SimExplorerTab getLoadingTab() { return loadingTab; } @@ -97,7 +97,6 @@ factory = new ActionFactory() { @SuppressWarnings({"unchecked"}) protected Map<String, Class<? extends AbstractAction>> init() { - // first init load actions Properties properties = new Properties(); try { properties.load(Class.class.getResourceAsStream(ACTIONS_FILE_PATH)); Modified: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerTabFactory.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerTabFactory.java 2008-01-22 01:49:37 UTC (rev 352) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/SimExplorerTabFactory.java 2008-01-22 01:50:46 UTC (rev 353) @@ -46,7 +46,7 @@ protected Map<String, TabContentConfig> initFactory() { Map<String, TabContentConfig> result = new TreeMap<String, TabContentConfig>(); - for (SimExplorerTabManager tab : SimExplorerTabManager.values()) { + for (SimExplorerTab tab : SimExplorerTab.values()) { try { String tabName = tab.name(); Field field = tab.getClass().getField(tabName); @@ -62,8 +62,8 @@ SimExplorerActionManager.loadActions((JAXXObject) tab, getTab(tabName)); } - protected SimExplorerTabManager getTab(String tabName) { - return SimExplorerTabManager.valueOf(tabName); + protected SimExplorerTab getTab(String tabName) { + return SimExplorerTab.valueOf(tabName); } @Override
participants (1)
-
tchemit@users.labs.libre-entreprise.org