Lima-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
November 2009
- 3 participants
- 25 discussions
08 Nov '09
Author: tchemit
Date: 2009-11-08 13:04:50 +0100 (Sun, 08 Nov 2009)
New Revision: 2734
Added:
trunk/lima-main/src/main/java/org/chorem/lima/ui/MainViewHandler.java
trunk/lima-main/src/main/resources/icons/action-about.png
trunk/lima-main/src/main/resources/icons/action-account.png
trunk/lima-main/src/main/resources/icons/action-closure-timespan.png
trunk/lima-main/src/main/resources/icons/action-closure.png
trunk/lima-main/src/main/resources/icons/action-config.png
trunk/lima-main/src/main/resources/icons/action-export-element.png
trunk/lima-main/src/main/resources/icons/action-help.png
trunk/lima-main/src/main/resources/icons/action-i18n-fr.png
trunk/lima-main/src/main/resources/icons/action-i18n-uk.png
trunk/lima-main/src/main/resources/icons/action-import-element.png
trunk/lima-main/src/main/resources/icons/action-journal.png
trunk/lima-main/src/main/resources/icons/action-lettering.png
trunk/lima-main/src/main/resources/icons/action-print.png
trunk/lima-main/src/main/resources/icons/action-quit.png
trunk/lima-main/src/main/resources/icons/action-rapport.png
trunk/lima-main/src/main/resources/icons/action-search.png
trunk/lima-main/src/main/resources/icons/action-site.png
trunk/lima-main/src/main/resources/icons/action-transaction.png
trunk/lima-main/src/main/resources/icons/action-translate.png
trunk/lima-main/src/main/resources/icons/action-view.png
Removed:
trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionClicRight.java
trunk/lima-main/src/main/resources/icons/account.png
trunk/lima-main/src/main/resources/icons/action/about.png
trunk/lima-main/src/main/resources/icons/action/export-element.png
trunk/lima-main/src/main/resources/icons/action/help.png
trunk/lima-main/src/main/resources/icons/action/i18n-en.png
trunk/lima-main/src/main/resources/icons/action/i18n-fr.png
trunk/lima-main/src/main/resources/icons/action/quit.png
trunk/lima-main/src/main/resources/icons/action/search.png
trunk/lima-main/src/main/resources/icons/action/site.png
trunk/lima-main/src/main/resources/icons/action/translate.png
trunk/lima-main/src/main/resources/icons/closure-timespan.png
trunk/lima-main/src/main/resources/icons/closure.png
trunk/lima-main/src/main/resources/icons/journal.png
trunk/lima-main/src/main/resources/icons/lettering.png
trunk/lima-main/src/main/resources/icons/print.png
trunk/lima-main/src/main/resources/icons/rapport.png
trunk/lima-main/src/main/resources/icons/transaction.png
trunk/lima-main/src/main/resources/icons/view.png
Modified:
trunk/lima-main/pom.xml
trunk/lima-main/src/main/java/org/chorem/lima/DataManager.java
trunk/lima-main/src/main/java/org/chorem/lima/LimaAction.java
trunk/lima-main/src/main/java/org/chorem/lima/LimaConfig.java
trunk/lima-main/src/main/java/org/chorem/lima/LimaContext.java
trunk/lima-main/src/main/java/org/chorem/lima/Main.java
trunk/lima-main/src/main/java/org/chorem/lima/balance/Balance.java
trunk/lima-main/src/main/java/org/chorem/lima/export/CSVExport.java
trunk/lima-main/src/main/java/org/chorem/lima/export/XMLExport.java
trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java
trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImportEBP.java
trunk/lima-main/src/main/java/org/chorem/lima/imports/XMLImport.java
trunk/lima-main/src/main/java/org/chorem/lima/listener/ClicRight.java
trunk/lima-main/src/main/java/org/chorem/lima/listener/EmptyLineSelectionListener.java
trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionHeaderListener.java
trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionKeyListener.java
trunk/lima-main/src/main/java/org/chorem/lima/table/editor/AccountTableCellEditor.java
trunk/lima-main/src/main/java/org/chorem/lima/table/editor/DateTableCellEditor.java
trunk/lima-main/src/main/java/org/chorem/lima/table/editor/JournalTableCellEditor.java
trunk/lima-main/src/main/java/org/chorem/lima/table/editor/PeriodTableCellEditor.java
trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionDataTableModel.java
trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionFlattenTableModel.java
trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionSortedTableModel.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/AccountViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilView.jaxx
trunk/lima-main/src/main/java/org/chorem/lima/ui/BalanceViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ClosureViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/CriteriaWidgetImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ExportViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ImportViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/JournalViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/LetteringViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/MainView.jaxx
trunk/lima-main/src/main/java/org/chorem/lima/ui/MainViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ProgressBarImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ReportsViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/SearchTransactionViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionView.jaxx
trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java
trunk/lima-main/src/main/resources/i18n/lima-main-en_GB.properties
trunk/lima-main/src/main/resources/i18n/lima-main-fr_FR.properties
Log:
- add default application actions (help, site, translate, about)
- refactor icons in main ui (use actionIcon attribute)
- introduce MainViewHandler (should use only it and remove hugly MainViewImpl)
Modified: trunk/lima-main/pom.xml
===================================================================
--- trunk/lima-main/pom.xml 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/pom.xml 2009-11-08 12:04:50 UTC (rev 2734)
@@ -158,6 +158,9 @@
<plugin>
<groupId>org.nuiton</groupId>
<artifactId>maven-license-plugin</artifactId>
+ <configuration>
+ <copyToMETA_INF>true</copyToMETA_INF>
+ </configuration>
<executions>
<execution>
<id>attach-licenses</id>
Modified: trunk/lima-main/src/main/java/org/chorem/lima/DataManager.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/DataManager.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/DataManager.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -64,7 +64,7 @@
public JournalTableModel getJournalModel() {
if (journalModel == null) {
/** Services */
- List<JournalDTO> journals = Main.getContext().getNeogiaFactory().getJournalService().getAllJournal();
+ List<JournalDTO> journals = LimaContext.getContext().getNeogiaFactory().getJournalService().getAllJournal();
journalModel = new JournalTableModel(journals);
}
return journalModel;
@@ -98,7 +98,7 @@
public AccountTreeTableModel getAccountModel() {
if (accountModel == null) {
/** Services */
- AccountDTO account = Main.getContext().getNeogiaFactory().getAccountService().getAllAccount();
+ AccountDTO account = LimaContext.getContext().getNeogiaFactory().getAccountService().getAllAccount();
accountModel = new AccountTreeTableModel(account);
}
return accountModel;
@@ -106,7 +106,7 @@
public AccountTreeTableModel resetAccountModel() {
/** Services */
- AccountDTO account = Main.getContext().getNeogiaFactory().getAccountService().getAllAccount();
+ AccountDTO account = LimaContext.getContext().getNeogiaFactory().getAccountService().getAllAccount();
accountModel = new AccountTreeTableModel(account);
return accountModel;
}
@@ -125,7 +125,7 @@
if (transactionModel == null) {
/** Services */
- List<TransactionDTO> data = Main.getContext().getNeogiaFactory().getTransactionService().getAllTransaction(
+ List<TransactionDTO> data = LimaContext.getContext().getNeogiaFactory().getTransactionService().getAllTransaction(
ServiceHelper.getAllFlatPeriod(
getPeriodes()),
getJournalModel().getData(),
@@ -141,7 +141,7 @@
if (transactionModel == null) {
/** Services */
- List<TransactionDTO> data = Main.getContext().getNeogiaFactory().getTransactionService().getAllTransaction(
+ List<TransactionDTO> data = LimaContext.getContext().getNeogiaFactory().getTransactionService().getAllTransaction(
ServiceHelper.getAllFlatPeriod(
getPeriodes()),
getJournalModel().getData(),
@@ -172,7 +172,7 @@
public List<PeriodDTO> getPeriodes() {
if (periodes == null) {
/** Services */
- periodes = Main.getContext().getNeogiaFactory().getPeriodService().getAllPeriod(
+ periodes = LimaContext.getContext().getNeogiaFactory().getPeriodService().getAllPeriod(
getStatus());
}
return periodes;
@@ -180,7 +180,7 @@
public List<PeriodDTO> resetPeriodes() {
periodes.clear();
- periodes = Main.getContext().getNeogiaFactory().getPeriodService().getAllPeriod(
+ periodes = LimaContext.getContext().getNeogiaFactory().getPeriodService().getAllPeriod(
getStatus());
return periodes;
}
@@ -197,7 +197,7 @@
public List<StatusDTO> getStatus() {
if (status == null) {
/** Services */
- status = Main.getContext().getNeogiaFactory().getStatusService().getAllStatus();
+ status = LimaContext.getContext().getNeogiaFactory().getStatusService().getAllStatus();
}
return status;
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/LimaAction.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/LimaAction.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/LimaAction.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -56,7 +56,7 @@
protected LimaConfig getConfig() {
if (config == null) {
- LimaContext context = Main.getContext();
+ LimaContext context = LimaContext.getContext();
config = context.getConfig();
}
return config;
Modified: trunk/lima-main/src/main/java/org/chorem/lima/LimaConfig.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/LimaConfig.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/LimaConfig.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -1,7 +1,9 @@
package org.chorem.lima;
+import java.beans.PropertyChangeListener;
import java.io.IOException;
import java.io.InputStream;
+
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import static org.nuiton.i18n.I18n._;
@@ -11,24 +13,26 @@
import java.io.File;
import java.util.Locale;
import java.util.Properties;
+
import org.nuiton.util.ConverterUtil;
import org.nuiton.util.VersionUtil;
/**
* La configuration de l'application.
- *
+ * <p/>
* Note : cette classe sera auto-instanciée par le contexte applicatif.
- *
+ * <p/>
* TODO ajouter d'autres propriete pour controler quel storage est utilise
* et quel est son type (local ou pas).
- *
+ *
* @author chemit
* @see jaxx.runtime.DefaultApplicationContext.AutoLoad
*/
-(a)jaxx.runtime.DefaultApplicationContext.AutoLoad
public class LimaConfig extends org.nuiton.util.ApplicationConfig {
- /** to use log facility, just put in your code: log.info(\"...\"); */
+ /**
+ * to use log facility, just put in your code: log.info(\"...\");
+ */
static private Log log = LogFactory.getLog(LimaConfig.class);
/**
* La version du logiciel constitue de l.d.r
@@ -48,14 +52,18 @@
protected final Version version;
public static final String APPLICATION_PROPERTIES = "/lima.properties";
public static final String USER_DIRECTORY_FILENAME = ".lima";
- /** le repertoire utilisateur principale */
+ /**
+ * le repertoire utilisateur principale
+ */
protected static File observeUserDirectory;
public String getCopyrightText() {
return "Version " + getVersion() + " Codelutin @ 2008-2009";
}
- /** @return le nombre global ex: 3.2.0.0 */
+ /**
+ * @return le nombre global ex: 3.2.0.0
+ */
public String getVersion() {
return version.toString();
}
@@ -66,26 +74,15 @@
}
return observeUserDirectory;
}
-// /**
-// *
-// * @return l'url de la sauvegarde embarquée.
-// */
-// public static URL getInitialDBDump() {
-// URL url = ObserveConfig.class.getResource(INITIAL_DB_DUMP);
-// return url;
-// }
+
/**
- * un drapeau pour savoir si on est en mode pleine écran
- */
- protected boolean fullscreen;
- /**
* un drepeau pour savoir s'il faut lancer l'interface graphique.
* Cette valeur peut être programmées lors des actions.
*/
private boolean displayMainUI = true;
/**
* drapeau pour savoir si on peut utiliser des ui dans l'environnement.
- *
+ * <p/>
* Par defaut, on suppose qu'on peut utiliser l'environnement graphique
* et si on désactive explicitement si pas d'environnement graphique trouvé.
*/
@@ -175,6 +172,12 @@
}
}
+ public void setLocale(Locale newLocale) {
+ setOption(Option.LOCALE.key, newLocale.toString());
+ saveForUser();
+ firePropertyChange("locale", null, newLocale);
+ }
+
/**
* Save configuration, in user home directory using the
* {@link #getConfigFileName}. Default, env and commande line note saved
@@ -182,46 +185,85 @@
public void saveForUser() {
super.saveForUser();
}
+
public static final String[] DEFAULT_JAXX_PCS = {
- "fullScreen"
+ "fullScreen"
};
-// public void removeJaxxPropertyChangeListener() {
-// PropertyChangeListener[] toRemove = jaxx.runtime.Util.findJaxxPropertyChangeListener(DEFAULT_JAXX_PCS, getPropertyChangeListeners());
-// if (toRemove == null || toRemove.length == 0) {
-// return;
-// }
-// if (log.isDebugEnabled()) {
-// log.debug("before remove : " + getPropertyChangeListeners().length);
-// log.debug("toRemove : " + toRemove.length);
-// }
-// for (PropertyChangeListener listener : toRemove) {
-// removePropertyChangeListener(listener);
-// }
-// if (log.isDebugEnabled()) {
-// log.debug("after remove : " + getPropertyChangeListeners().length);
-// }
-// }
+ public void removeJaxxPropertyChangeListener() {
+ PropertyChangeListener[] toRemove = jaxx.runtime.Util.findJaxxPropertyChangeListener(DEFAULT_JAXX_PCS, getPropertyChangeListeners());
+ if (toRemove == null || toRemove.length == 0) {
+ return;
+ }
+ if (log.isDebugEnabled()) {
+ log.debug("before remove : " + getPropertyChangeListeners().length);
+ log.debug("toRemove : " + toRemove.length);
+
+ }
+ for (PropertyChangeListener listener : toRemove) {
+ removePropertyChangeListener(listener);
+ }
+ if (log.isDebugEnabled()) {
+ log.debug("after remove : " + getPropertyChangeListeners().length);
+ }
+ }
+
//////////////////////////////////////////////////
// Toutes les options disponibles
//////////////////////////////////////////////////
- protected static enum Option {
+ public static enum Option implements OptionDef {
- CONFIG_FILE(CONFIG_FILE_NAME, _("observe.config.configFileName.description"), "observe-config"),
+ CONFIG_FILE(CONFIG_FILE_NAME, _("lima.config.configFileName.description"), "lima-config", String.class, true, true),
// directories
- LOCALE("locale", _("lima.config.locale.description"), "fr_FR"),
+ LOCALE("locale", _("lima.config.locale.description"), "fr_FR", Locale.class, false, false),
// ui config
- FULL_SCREEN("ui.fullscreen", _("lima.config.ui.fullscreen"), "false");
+ FULL_SCREEN("ui.fullscreen", _("lima.config.ui.fullscreen"), "false", Boolean.class, false, false);
public final String key;
public final String description;
public final String defaultValue;
+ public final Class<?> type;
+ public final boolean _transient;
+ public final boolean _final;
- private Option(String key, String description, String defaultValue) {
+ private Option(String key, String description, String defaultValue, Class<?> type, boolean _transient, boolean _final) {
this.key = key;
this.description = description;
this.defaultValue = defaultValue;
+ this.type = type;
+ this._final = _final;
+ this._transient = _transient;
}
+
+ @Override
+ public boolean isFinal() {
+ return _final;
+ }
+
+ @Override
+ public boolean isTransient() {
+ return _transient;
+ }
+
+ @Override
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ @Override
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String getKey() {
+ return key;
+ }
+
+ @Override
+ public Class<?> getType() {
+ return type;
+ }
}
public static enum Step {
@@ -231,8 +273,8 @@
public static enum Action {
- HELP(_("observe.action.commandline.help"), LimaAction.class.getName() + "#help", "-h", "--help"),
- NO_MAIN_UI(_("observe.action.commandline.disable.main.ui"), LimaAction.class.getName() + "#disableMainUI", "-n", "--no-main");
+ HELP(_("lima.action.commandline.help"), LimaAction.class.getName() + "#help", "-h", "--help"),
+ NO_MAIN_UI(_("lima.action.commandline.disable.main.ui"), LimaAction.class.getName() + "#disableMainUI", "-n", "--no-main");
public String description;
public String action;
public String[] aliases;
Modified: trunk/lima-main/src/main/java/org/chorem/lima/LimaContext.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/LimaContext.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/LimaContext.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -32,32 +32,37 @@
*/
package org.chorem.lima;
-import org.nuiton.i18n.I18n;
+import jaxx.runtime.JAXXContextEntryDef;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.service.ServiceFactory;
+import org.chorem.lima.ui.MainView;
+import org.chorem.lima.ui.MainViewHandler;
import org.chorem.lima.ui.MainViewImpl;
-//import org.chorem.lima.ui.actions.LimaBaseAction;
+import org.nuiton.i18n.I18n;
import java.util.Locale;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
/**
* @author chemit
*/
public class LimaContext extends jaxx.runtime.DefaultApplicationContext {
- /** to use log facility, just put in your code: log.info(\"...\"); */
+ /**
+ * to use log facility, just put in your code: log.info(\"...\");
+ */
static private Log log = LogFactory.getLog(LimaContext.class);
/**
* l'intance partagée accessible après un appel à la méthode
- * {@link #init(ObserveConfig)}
+ * {@link #init()}
*/
protected static LimaContext instance;
+ public static JAXXContextEntryDef<MainView> MAIN_UI_ENTRY_DEF = JAXXContextEntryDef.newDef("mainUI", MainView.class);
/**
* @return <code>true</code> si le context a été initialisé via la méthode
- * {@link #init(ObserveConfig)}, <ocde>false</code> autrement.
+ * {@link #init()}, <ocde>false</code> autrement.
*/
public static boolean isInit() {
return instance != null;
@@ -68,6 +73,7 @@
* l'instance partagée.
* <p/>
* Note : Cette méthode ne peut être appelée qu'une seule fois.
+ *
* @return l'instance partagée
* @throws IllegalStateException si un contexte applicatif a déja été positionné.
*/
@@ -76,10 +82,9 @@
throw new IllegalStateException("there is already a application context registred.");
}
instance = new LimaContext();
- // init decorator service
- //instance.getContextValue(DecoratorProvider.class);
+ instance.setContextValue(new LimaConfig());
+ instance.setContextValue(new MainViewHandler());
-
return instance;
}
@@ -88,7 +93,7 @@
*
* @return l'instance partagé du contexte.
* @throws IllegalStateException si le contexte n'a pas été initialisé via
- * la méthode {@link #init(ObserveConfig)}
+ * la méthode {@link #init()}
*/
public static LimaContext get() throws IllegalStateException {
if (!isInit()) {
@@ -96,85 +101,39 @@
}
return instance;
}
- protected final Object lock = new Object();
- public void lock() throws InterruptedException {
- synchronized (lock) {
- lock.wait();
- }
- }
-
- public void releaseLock() {
- synchronized (lock) {
- lock.notify();
- }
- }
/**
- * flag to say if user is actually remote connected
- */
- protected boolean connected;
- /**
* neogia factory
*/
protected ServiceFactory neogiaFactory;
+
/**
- * main UI
- */
- protected MainViewImpl mainUI;
- /**
- * action factory
- */
-// protected ActionFactory<LimaBaseAction> actionFactory;
- /**
* Data manager*
*/
protected DataManager dataManager;
- public LimaContext() {
- super();
- }
-
public LimaConfig getConfig() {
return getContextValue(LimaConfig.class);
}
public void initI18n() {
- //TODO Load system locale
- Locale locale = Locale.FRENCH;
+ Locale locale = getConfig().getLocale();
I18n.init(locale);
/** Default Locale for DatePicker **/
Locale.setDefault(locale);
DTOHelper.setLocale(locale);
}
- public void dispose(boolean reload) {
+// public void dispose(boolean reload) {
+//
+// disposeUI();
+//
+// if (reload) {
+// Main.launch(this);
+// }
+// }
-// getActionFactory().dispose();
-
- disposeUI();
-
- //ErrorDialog.disposeUI();
- //Main.getUI().disposeUI();
-
- if (reload) {
- Main.launch();
- }
- }
-
- public boolean isConnected() {
- return connected;
- }
-
- public void setConnected(boolean connected) {
- this.connected = connected;
- }
-
- public void loginUser(boolean b, String login, String password) {
- //Fixme :)
- connected = true;
- }
-
public ServiceFactory getNeogiaFactory() {
if (neogiaFactory == null) {
neogiaFactory = ServiceFactory.getServiceFactory();
@@ -182,18 +141,13 @@
return neogiaFactory;
}
-// public ActionFactory<LimaBaseAction> getActionFactory() {
-// if (actionFactory == null) {
-// actionFactory = ActionFactoryFromProvider.newInstance(LimaBaseAction.class);
-// }
-// return actionFactory;
-// }
public MainViewImpl getMainUI() {
- if (mainUI == null) {
- log.debug("getMainUI");
- mainUI = new MainViewImpl();
- }
- return mainUI;
+ return (MainViewImpl) MAIN_UI_ENTRY_DEF.getContextValue(this);
+// if (mainUI == null) {
+// log.debug("getMainUI");
+// mainUI = new MainViewImpl();
+// }
+// return mainUI;
}
public DataManager getDataManager() {
@@ -203,12 +157,12 @@
return dataManager;
}
- public void disposeUI() {
- if (mainUI != null) {
- mainUI.dispose();
- mainUI = null;
- }
- }
+// public void disposeUI() {
+// MainView mainUI = getMainUI();
+// if (mainUI != null) {
+// mainUI.dispose();
+// }
+// }
/**
* close the application's context.
@@ -221,10 +175,18 @@
}
// fermeture du context principal
- disposeUI();
+ MainView mainUI = getMainUI();
+ if (mainUI != null) {
+ mainUI.dispose();
+ }
if (log.isDebugEnabled()) {
log.debug("context closed" + this);
}
+ System.exit(0);
}
+
+ public static LimaContext getContext() {
+ return get();
+ }
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/Main.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/Main.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/Main.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,32 +21,62 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.ui.MainView;
+import org.chorem.lima.ui.MainViewHandler;
import org.chorem.lima.ui.ProgressBarImpl;
import org.chorem.lima.service.ServiceFactory;
import static org.nuiton.i18n.I18n._;
+
import java.util.Locale;
import javax.swing.SwingUtilities;
+
import jaxx.runtime.SwingUtil;
import jaxx.runtime.swing.ErrorDialogUI;
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.beanutils.Converter;
import org.apache.commons.beanutils.converters.DateConverter;
import org.chorem.lima.tree.model.AccountTreeTableModel;
-import org.chorem.lima.ui.MainViewImpl;
import org.nuiton.i18n.I18n;
import org.nuiton.util.ConverterUtil;
import org.nuiton.util.StringUtil;
-/** @author ore */
+/**
+ * @author ore
+ */
public class Main {
private static final Log log = LogFactory.getLog(Main.class);
- private static long startingTime = System.nanoTime();
- private static ProgressBarImpl b;
- public static LimaContext getContext() {
- return LimaContext.get();
+ /**
+ * @param args les arguments passes au programme
+ */
+ public static void main(String[] args) {
+
+ long startingTime = System.nanoTime();
+ log.info("Lima start at " + new java.util.Date() + " args: " + java.util.Arrays.toString(args));
+
+ try {
+
+ // init root context
+ final LimaContext context = init(args);
+
+ log.info(_("lima.init.context.done", StringUtil.convertTime(startingTime, System.nanoTime())));
+
+ LimaConfig config = context.getContextValue(LimaConfig.class);
+
+ config.doAction(LimaConfig.Step.AfterInit.ordinal());
+
+ if (config.isDisplayMainUI()) {
+ // on affiche l'ui principale
+
+ launch(context);
+ }
+ } catch (Exception e) {
+ ErrorDialogUI.showError(e);
+ log.error(e.getMessage(), e);
+ System.exit(1);
+ }
}
/**
@@ -84,6 +114,8 @@
config.parse(args);
+ context.initI18n();
+
// prepare ui look&feel and load ui properties
try {
SwingUtil.initNimbusLoookAndFeel();
@@ -119,82 +151,53 @@
return context;
}
- /** @param args les arguments passes au programme */
- public static void main(String[] args) {
+ public static void launch(final LimaContext context) {
- startingTime = System.nanoTime();
- log.info("Lima start at " + new java.util.Date() + " args: " + java.util.Arrays.toString(args));
+ MainViewHandler uiHandler = context.getContextValue(MainViewHandler.class);
- try {
+ // do init ui
+ final MainView ui = uiHandler.initUI(context, context.getConfig().isFullScreen());
- // init root context
- final LimaContext context = init(args);
-
- log.info(_("lima.init.context.done", StringUtil.convertTime(startingTime, System.nanoTime())));
-
- LimaConfig config = context.getContextValue(LimaConfig.class);
-
- config.doAction(LimaConfig.Step.AfterInit.ordinal());
-
- if (config.isDisplayMainUI()) {
- // on affiche l'ui principale
-
- launch();
- }
- } catch (Exception e) {
- ErrorDialogUI.showError(e);
- log.error(e.getMessage(), e);
- System.exit(1);
- }
-
-// // launch ui
-// launch();
- }
-
- public static void launch() {
- final MainViewImpl ui = getContext().getMainUI();
-
log.info(_("lima.init.ui.done"));
/**
* Lancement de la barre de chargement
* L'application va charger en mémoire les données
*/
- new Thread()
- {
+ new Thread() {
@Override
- public void run(){
-
- if ( b == null)
- {
- b = new ProgressBarImpl();
- // Chargement des journaux
- b.getProgressBar().setString("5% : "+_("lima.progressBar.load.etape1"));
- b.getProgressBar().setValue(0);
- Main.getContext().getDataManager().getJournalModel();
- // Chargement des comptes
- b.getProgressBar().setString("30% : "+_("lima.progressBar.load.etape2"));
- b.getProgressBar().setValue(30);
- AccountTreeTableModel accountModel = Main.getContext().getDataManager().getAccountModel();
- b.loadDefaultAccount(accountModel.getData());
+ public void run() {
- // Chargement des status
- b.getProgressBar().setString("50% : "+_("lima.progressBar.load.etape3"));
- b.getProgressBar().setValue(50);
- Main.getContext().getDataManager().getStatus();
- // Chargement des periodes
- b.getProgressBar().setString("60% : "+_("lima.progressBar.load.etape4"));
- b.getProgressBar().setValue(60);
- Main.getContext().getDataManager().getPeriodes();
- // Chargement des transactions
- b.getProgressBar().setString("70% : "+_("lima.progressBar.load.etape5"));
- b.getProgressBar().setValue(70);
- Main.getContext().getDataManager().getTransactionModel(b.getProgressBar());
- b.getProgressBarFrame().dispose();
- }
+ ProgressBarImpl b = new ProgressBarImpl();
+ b.setModal(true);
+ // Chargement des journaux
+ b.getProgressBar().setString("5% : " + _("lima.progressBar.load.etape1"));
+ b.getProgressBar().setValue(0);
+ DataManager dataManager = context.getDataManager();
+ dataManager.getJournalModel();
+ // Chargement des comptes
+ b.getProgressBar().setString("30% : " + _("lima.progressBar.load.etape2"));
+ b.getProgressBar().setValue(30);
+ AccountTreeTableModel accountModel = dataManager.getAccountModel();
+ b.loadDefaultAccount(accountModel.getData());
+
+ // Chargement des status
+ b.getProgressBar().setString("50% : " + _("lima.progressBar.load.etape3"));
+ b.getProgressBar().setValue(50);
+ dataManager.getStatus();
+ // Chargement des periodes
+ b.getProgressBar().setString("60% : " + _("lima.progressBar.load.etape4"));
+ b.getProgressBar().setValue(60);
+ dataManager.getPeriodes();
+ // Chargement des transactions
+ b.getProgressBar().setString("70% : " + _("lima.progressBar.load.etape5"));
+ b.getProgressBar().setValue(70);
+ dataManager.getTransactionModel(b.getProgressBar());
+ b.getProgressBarFrame().dispose();
}
}.start();
+ // show ui
SwingUtilities.invokeLater(new Runnable() {
@Override
@@ -214,6 +217,7 @@
public void run() {
try {
super.run();
+
LimaContext.get().close();
// force to kill main thread
Modified: trunk/lima-main/src/main/java/org/chorem/lima/balance/Balance.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/balance/Balance.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/balance/Balance.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -19,15 +19,14 @@
package org.chorem.lima.balance;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.dto.AccountDTO;
import org.chorem.lima.dto.BalanceDTO;
import org.chorem.lima.dto.EntryDTO;
import org.chorem.lima.dto.PeriodDTO;
import org.chorem.lima.dto.TransactionDTO;
import org.chorem.lima.dto.util.DTOHelper;
-import org.chorem.lima.Main;
import org.chorem.lima.service.util.ServiceHelper;
-import org.chorem.lima.util.Util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -60,7 +59,7 @@
public ArrayList<BalanceDTO> createBalance (PeriodDTO period)
{
// Récupère toutes les transactions comptables
- List<TransactionDTO> listAllTransaction = Main.getContext().getDataManager().getTransactionModel().getData();
+ List<TransactionDTO> listAllTransaction = LimaContext.getContext().getDataManager().getTransactionModel().getData();
// Récupère toutes les transactions de la période
List<TransactionDTO> listTransaction = ServiceHelper.findTransactionByPeriod(period, listAllTransaction);
// Création tableau associatif
Modified: trunk/lima-main/src/main/java/org/chorem/lima/export/CSVExport.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/export/CSVExport.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/export/CSVExport.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -22,7 +22,7 @@
import au.com.bytecode.opencsv.CSVWriter;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.dto.AccountDTO;
import org.chorem.lima.dto.EntryDTO;
import org.chorem.lima.dto.JournalDTO;
@@ -85,7 +85,7 @@
String[] nextLine = new String[1];
// Début période
// Sélection la période utilisée actuellement
- PeriodDTO period = Main.getContext().getDataManager().getCurrentPeriod();
+ PeriodDTO period = LimaContext.getContext().getDataManager().getCurrentPeriod();
// Si la période courante est une période mensuelle, on récupère la période annuelle
if ( period.getParent() != null )
{
@@ -118,7 +118,7 @@
{
String[] nextLine = new String[5];
// Récupère tous les comptes
- List<AccountDTO> listAccount = ServiceHelper.getAllFlatAccount(Main.getContext().getDataManager().getAccountModel().getData());
+ List<AccountDTO> listAccount = ServiceHelper.getAllFlatAccount(LimaContext.getContext().getDataManager().getAccountModel().getData());
// Pour tous les comptes
for (AccountDTO account : listAccount)
{
@@ -139,7 +139,7 @@
{
String[] nextLine = new String[5];
// Récupère tous les journaux
- List<JournalDTO> listJournal = Main.getContext().getDataManager().getJournalModel().getData();
+ List<JournalDTO> listJournal = LimaContext.getContext().getDataManager().getJournalModel().getData();
// Pour tous les journaux
for (JournalDTO journal : listJournal)
{
@@ -161,7 +161,7 @@
String[] nextLineTrans = new String[8];
String[] nextLineEntry = new String[7];
// Récupère toutes les transactions
- List<TransactionDTO> listTransaction = Main.getContext().getDataManager().getTransactionModel().getData();
+ List<TransactionDTO> listTransaction = LimaContext.getContext().getDataManager().getTransactionModel().getData();
// Pour toutes les transactions
for (TransactionDTO transaction : listTransaction)
{
Modified: trunk/lima-main/src/main/java/org/chorem/lima/export/XMLExport.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/export/XMLExport.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/export/XMLExport.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -26,6 +26,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import org.jdom.*;
import org.jdom.output.*;
import org.chorem.lima.dto.AccountDTO;
@@ -33,7 +34,6 @@
import org.chorem.lima.dto.JournalDTO;
import org.chorem.lima.dto.PeriodDTO;
import org.chorem.lima.dto.TransactionDTO;
-import org.chorem.lima.Main;
import org.chorem.lima.service.util.ServiceHelper;
import org.chorem.lima.ui.ProgressBarImpl;
import org.chorem.lima.util.Util;
@@ -60,10 +60,10 @@
// Déclaration variables pour chargement des données
- private static List<PeriodDTO> listPeriodDTO = Main.getContext().getDataManager().getPeriodes();
- private static List<JournalDTO> listJournalDTO = Main.getContext().getDataManager().getJournalModel().getData();
- private static AccountDTO AccountMasterDTO = Main.getContext().getDataManager().getAccountModel().getData();
- private static List<TransactionDTO> listTransactionDTO = Main.getContext().getDataManager().getTransactionModel().getData();
+ private static List<PeriodDTO> listPeriodDTO = LimaContext.getContext().getDataManager().getPeriodes();
+ private static List<JournalDTO> listJournalDTO = LimaContext.getContext().getDataManager().getJournalModel().getData();
+ private static AccountDTO AccountMasterDTO = LimaContext.getContext().getDataManager().getAccountModel().getData();
+ private static List<TransactionDTO> listTransactionDTO = LimaContext.getContext().getDataManager().getTransactionModel().getData();
Modified: trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImport.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -22,7 +22,7 @@
import au.com.bytecode.opencsv.CSVReader;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.dto.AccountDTO;
import org.chorem.lima.dto.EntryDTO;
import org.chorem.lima.dto.JournalDTO;
@@ -122,7 +122,7 @@
Date begin = Util.InitDateFirstDayMonth(beginPeriod);
Date end = Util.InitDateEndDayMonth(endPeriod);
PeriodDTO period = new PeriodDTO("",Integer.toString(begin.getYear()+1900),begin,end,null,null,
- ServiceHelper.findStatusByType(Main.getContext().getDataManager().getStatus(), "PE_OPEN"));
+ ServiceHelper.findStatusByType(LimaContext.getContext().getDataManager().getStatus(), "PE_OPEN"));
// Création des 12 mois
List<PeriodDTO> listPeriodChild = new LinkedList<PeriodDTO>();
// Pour chaque mois
@@ -132,7 +132,7 @@
Date endTimeSpan = Util.InitDateEndDayMonth(new Date(begin.getYear(),begin.getMonth()+i,begin.getDate()));
// Création période
PeriodDTO periodChild = new PeriodDTO("",ServiceHelper.dateToMonth(beginTimeSpan)+" "+(beginTimeSpan.getYear()+1900),beginTimeSpan,endTimeSpan,null,period,
- ServiceHelper.findStatusByType(Main.getContext().getDataManager().getStatus(), "PE_OPEN"));
+ ServiceHelper.findStatusByType(LimaContext.getContext().getDataManager().getStatus(), "PE_OPEN"));
listPeriodChild.add(periodChild);
}
// On ajoute les 12 mois à l'exercice
@@ -141,9 +141,9 @@
LinkedList<PeriodDTO> listPeriod= new LinkedList<PeriodDTO>();
listPeriod.add(period);
// Ajoute la période dans le service des Périodes
- periodService.createPeriod(period, Main.getContext().getDataManager().getStatus());
+ periodService.createPeriod(period, LimaContext.getContext().getDataManager().getStatus());
// Réinitialise les périodes
- Main.getContext().getDataManager().resetPeriodes(listPeriod);
+ LimaContext.getContext().getDataManager().resetPeriodes(listPeriod);
/**
* Lecture de chaque ligne
@@ -170,7 +170,7 @@
// Tous les comtes ont été chargés, on relance pour les charger
if (!endReadAccount)
{
- Main.getContext().getDataManager().resetAccountModel(accountRac);
+ LimaContext.getContext().getDataManager().resetAccountModel(accountRac);
endReadAccount = true;
}
log.debug("Ajout journal "+nextLine[1]);
@@ -198,7 +198,7 @@
}
// Reset transactions
- Main.getContext().getDataManager().resetTransactionModel(listTransactions);
+ LimaContext.getContext().getDataManager().resetTransactionModel(listTransactions);
return result;
}
@@ -242,7 +242,7 @@
}
// Création du compte
AccountDTO account = new AccountDTO("",numberAccount,label,type,new LinkedList<AccountDTO>(),accountMaster);
- String result = Main.getContext().getDataManager().getAccountModel().addAccount(account);
+ String result = LimaContext.getContext().getDataManager().getAccountModel().addAccount(account);
return result;
}
@@ -272,7 +272,7 @@
// journal
String journal = line[5];
JournalDTO journalDTO = ServiceHelper.findJournalById(
- Main.getContext().getDataManager().getJournalModel().getData(),
+ LimaContext.getContext().getDataManager().getJournalModel().getData(),
journal);
if (journalDTO == null) {
log.warn("Import : Journal " + journal + " does not exist.");
@@ -281,17 +281,17 @@
Date period = Util.stringToDate(line[6], "dd/MM/yyyy");
// Recherche la période correspondante
PeriodDTO periodDTO = ServiceHelper.findPeriodByDate(
- ServiceHelper.getAllFlatPeriod(Main.getContext().getDataManager().getPeriodes()), period);
+ ServiceHelper.getAllFlatPeriod(LimaContext.getContext().getDataManager().getPeriodes()), period);
/**
* Création de la transaction
*/
TransactionDTO transaction = new TransactionDTO(null, name, date,
voucherRef, description, journalDTO, new LinkedList<EntryDTO>(), periodDTO,
- ServiceHelper.findStatusByType(Main.getContext().getDataManager().getStatus(), "TR_WIP"));
+ ServiceHelper.findStatusByType(LimaContext.getContext().getDataManager().getStatus(), "TR_WIP"));
transactionLast = transaction;
// Ajoute la transaction dans le service
//result = Main.getContext().getDataManager().getTransactionModel().addTransaction(transaction);
- result = transactionService.addTransaction(transaction, Main.getContext().getDataManager().getStatus());
+ result = transactionService.addTransaction(transaction, LimaContext.getContext().getDataManager().getStatus());
// Ajoute la transaction dans la liste des transactions
listTransactions.add(transaction);
return result;
@@ -311,7 +311,7 @@
*/
String accountId = line[1];
AccountDTO accountDTO = ServiceHelper.findAccountById(
- ServiceHelper.getAllFlatAccount(Main.getContext().getDataManager().getAccountModel().getData()),
+ ServiceHelper.getAllFlatAccount(LimaContext.getContext().getDataManager().getAccountModel().getData()),
accountId);
if (accountDTO == null) {
log.warn("Import : Account " + accountId + " does not exist.");
@@ -335,7 +335,7 @@
// Création de l'entrée comptable
EntryDTO entry = new EntryDTO("",description,DTOHelper.format(amount),debit,lettrage,accountDTO,transactionLast,null);
// Ajout de l'entrée comptable dans le service
- result = entryService.addEntry(Main.getContext().getDataManager().getStatus(), entry);
+ result = entryService.addEntry(LimaContext.getContext().getDataManager().getStatus(), entry);
// Ajout l'entrée à la transaction
transactionLast.addChild(entry);
return result;
@@ -354,7 +354,7 @@
// Création du journal
JournalDTO journalDTO = new JournalDTO("",name,description,prefixe);
// Ajout du journal dans le modèle de Lima
- String result = Main.getContext().getDataManager().getJournalModel().addJournal(journalDTO);
+ String result = LimaContext.getContext().getDataManager().getJournalModel().addJournal(journalDTO);
return result;
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImportEBP.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImportEBP.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/imports/CSVImportEBP.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -22,6 +22,7 @@
import au.com.bytecode.opencsv.CSVReader;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.balance.Category;
import org.chorem.lima.dto.AccountDTO;
import org.chorem.lima.dto.EntryDTO;
@@ -29,7 +30,6 @@
import org.chorem.lima.dto.PeriodDTO;
import org.chorem.lima.dto.TransactionDTO;
import org.chorem.lima.dto.util.DTOHelper;
-import org.chorem.lima.Main;
import org.chorem.lima.util.Util;
import org.chorem.lima.service.*;
import org.chorem.lima.service.util.ServiceHelper;
@@ -133,7 +133,7 @@
Date begin = Util.InitDateFirstDayMonth(beginPeriod);
Date end = Util.InitDateEndDayMonth(endPeriod);
PeriodDTO period = new PeriodDTO("",Integer.toString(begin.getYear()+1900),begin,end,null,null,
- ServiceHelper.findStatusByType(Main.getContext().getDataManager().getStatus(), "PE_OPEN"));
+ ServiceHelper.findStatusByType(LimaContext.getContext().getDataManager().getStatus(), "PE_OPEN"));
// Création des 12 mois
List<PeriodDTO> listPeriodChild = new LinkedList<PeriodDTO>();
// Pour chaque mois
@@ -143,7 +143,7 @@
Date endTimeSpan = Util.InitDateEndDayMonth(new Date(begin.getYear(),begin.getMonth()+i,begin.getDate()));
// Création période
PeriodDTO periodChild = new PeriodDTO("",ServiceHelper.dateToMonth(beginTimeSpan)+" "+(beginTimeSpan.getYear()+1900),beginTimeSpan,endTimeSpan,null,period,
- ServiceHelper.findStatusByType(Main.getContext().getDataManager().getStatus(), "PE_OPEN"));
+ ServiceHelper.findStatusByType(LimaContext.getContext().getDataManager().getStatus(), "PE_OPEN"));
listPeriodChild.add(periodChild);
}
// On ajoute les 12 mois à l'exercice
@@ -152,9 +152,9 @@
LinkedList<PeriodDTO> listPeriod= new LinkedList<PeriodDTO>();
listPeriod.add(period);
// Ajoute la période dans le service des Périodes
- periodService.createPeriod(period, Main.getContext().getDataManager().getStatus());
+ periodService.createPeriod(period, LimaContext.getContext().getDataManager().getStatus());
// Réinitialise les périodes
- Main.getContext().getDataManager().resetPeriodes(listPeriod);
+ LimaContext.getContext().getDataManager().resetPeriodes(listPeriod);
/**
* Lecture de chaque ligne
@@ -182,7 +182,7 @@
// Tous les comtes ont été chargés, on relance pour les charger
if (!endReadAccount)
{
- Main.getContext().getDataManager().resetAccountModel(accountRac);
+ LimaContext.getContext().getDataManager().resetAccountModel(accountRac);
endReadAccount = true;
}
log.debug("Ajout journal "+nextLine[1]);
@@ -203,7 +203,7 @@
}
// Reset transactions
- Main.getContext().getDataManager().resetTransactionModel(listTransactions);
+ LimaContext.getContext().getDataManager().resetTransactionModel(listTransactions);
return result;
}
@@ -247,7 +247,7 @@
String category = Category.findCategory(numberAccount);
// Création du compte
AccountDTO account = new AccountDTO("",numberAccount,label,category,new LinkedList<AccountDTO>(),accountMaster);
- String result = Main.getContext().getDataManager().getAccountModel().addAccount(account);
+ String result = LimaContext.getContext().getDataManager().getAccountModel().addAccount(account);
return result;
}
@@ -274,7 +274,7 @@
*/
String accountId = line[1];
AccountDTO accountDTO = ServiceHelper.findAccountById(
- ServiceHelper.getAllFlatAccount(Main.getContext().getDataManager().getAccountModel().getData()),
+ ServiceHelper.getAllFlatAccount(LimaContext.getContext().getDataManager().getAccountModel().getData()),
accountId);
if (accountDTO == null) {
log.warn("Import : Account " + accountId + " does not exist.");
@@ -288,7 +288,7 @@
*/
String journalId = line[3];
JournalDTO journalDTO = ServiceHelper.findJournalById(
- Main.getContext().getDataManager().getJournalModel().getData(),
+ LimaContext.getContext().getDataManager().getJournalModel().getData(),
journalId);
if (journalDTO == null) {
log.warn("Import : Journal " + journalId + " does not exist.");
@@ -317,21 +317,21 @@
{
// Recherche la période correspondante
PeriodDTO period = ServiceHelper.findPeriodByDate(
- ServiceHelper.getAllFlatPeriod(Main.getContext().getDataManager().getPeriodes()), dateTransac);
+ ServiceHelper.getAllFlatPeriod(LimaContext.getContext().getDataManager().getPeriodes()), dateTransac);
// Création de la transaction
TransactionDTO transaction = new TransactionDTO(null, "", dateTransac,
numTransac, descTransac, journalDTO, new LinkedList<EntryDTO>(), period,
- ServiceHelper.findStatusByType(Main.getContext().getDataManager().getStatus(), "TR_WIP"));
+ ServiceHelper.findStatusByType(LimaContext.getContext().getDataManager().getStatus(), "TR_WIP"));
transactionWithSamePrefix = transaction;
// Ajoute la transaction dans le service
- result = transactionService.addTransaction(transaction, Main.getContext().getDataManager().getStatus());
+ result = transactionService.addTransaction(transaction, LimaContext.getContext().getDataManager().getStatus());
// Ajoute la transaction dans la liste des transactions
listTransactions.add(transaction);
}
// Création de l'entrée comptable
EntryDTO entry = new EntryDTO("","",DTOHelper.format(amount),debit,lettrage,accountDTO,transactionWithSamePrefix,null);
// Ajout de l'entrée comptable dans le service
- result = entryService.addEntry(Main.getContext().getDataManager().getStatus(), entry);
+ result = entryService.addEntry(LimaContext.getContext().getDataManager().getStatus(), entry);
// Ajout l'entrée à la transaction
transactionWithSamePrefix.addChild(entry);
return result;
@@ -355,7 +355,7 @@
// Création du journal
JournalDTO journalDTO = new JournalDTO("",description,description,prefixe);
// Ajout du journal dans le modèle de Lima
- String result = Main.getContext().getDataManager().getJournalModel().addJournal(journalDTO);
+ String result = LimaContext.getContext().getDataManager().getJournalModel().addJournal(journalDTO);
return result;
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/imports/XMLImport.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/imports/XMLImport.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/imports/XMLImport.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -22,10 +22,10 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import org.jdom.*;
import org.chorem.lima.dto.AccountDTO;
import org.chorem.lima.dto.JournalDTO;
-import org.chorem.lima.Main;
import org.chorem.lima.service.util.ServiceHelper;
import org.jdom.input.SAXBuilder;
@@ -69,7 +69,7 @@
log.debug("Load Journal XML ");
}
// Variables
- journalServ = Main.getContext().getDataManager().getJournalModel();
+ journalServ = LimaContext.getContext().getDataManager().getJournalModel();
String result = ServiceHelper.RESPOND_ERROR;
boolean existError = false;
// Chargement du fichier
@@ -136,7 +136,7 @@
private String importAccount() {
// Variables
- accountServ = Main.getContext().getDataManager().getAccountModel();
+ accountServ = LimaContext.getContext().getDataManager().getAccountModel();
String result = ServiceHelper.RESPOND_ERROR;
boolean existError = false;
try {
@@ -192,7 +192,7 @@
result = ServiceHelper.RESPOND_SUCCESS;
}
// Reset pour le chargement des comptes
- Main.getContext().getDataManager().resetAccountModel();
+ LimaContext.getContext().getDataManager().resetAccountModel();
return result;
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/listener/ClicRight.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/listener/ClicRight.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/listener/ClicRight.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -19,11 +19,9 @@
package org.chorem.lima.listener;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import javax.swing.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
-import javax.swing.JPopupMenu;
/**
* Cette classe permet l'affichage d'un menu lors d'un clic droit.
@@ -32,15 +30,10 @@
*/
public class ClicRight extends MouseAdapter {
- /**
- * log
- */
- private static final Log log = LogFactory.getLog(ClicRight.class);
+ JPopupMenu popup;
- JPopupMenu MenuClicDroit;
-
public ClicRight(JPopupMenu popupMenu) {
- MenuClicDroit = popupMenu;
+ popup = popupMenu;
}
@Override
@@ -55,8 +48,7 @@
private void maybeShowPopup(MouseEvent e) {
if (e.isPopupTrigger()) {
- MenuClicDroit.show(e.getComponent(),
- e.getX(), e.getY());
+ popup.show(e.getComponent(), e.getX(), e.getY());
}
}
}
\ No newline at end of file
Modified: trunk/lima-main/src/main/java/org/chorem/lima/listener/EmptyLineSelectionListener.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/listener/EmptyLineSelectionListener.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/listener/EmptyLineSelectionListener.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -19,8 +19,6 @@
package org.chorem.lima.listener;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.chorem.lima.dto.EntryDTO;
import org.chorem.lima.dto.TransactionDTO;
import org.chorem.lima.dto.util.DTOHelper;
@@ -41,11 +39,6 @@
*/
public class EmptyLineSelectionListener extends MouseAdapter {
- /**
- * log
- */
- private static final Log log = LogFactory.getLog(EmptyLineSelectionListener.class);
-
@Override
public void mouseClicked(MouseEvent e) {
TransactionJXTable table = (TransactionJXTable) e.getSource();
Deleted: trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionClicRight.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionClicRight.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionClicRight.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -1,61 +0,0 @@
-/**
- * *##% Lima-Callao TransactionClicRight
- * Copyright (C) 2009 CodeLutin
- *
- * This program 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 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 Lesser Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
- */
-
-package org.chorem.lima.listener;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import javax.swing.JPopupMenu;
-
-/**
- *
- * @author Rémi Chapelet
- */
-public class TransactionClicRight extends MouseAdapter {
-
- /**
- * log
- */
- private static final Log log = LogFactory.getLog(ClicRight.class);
-
- JPopupMenu MenuClicDroit;
-
- public TransactionClicRight(JPopupMenu popupMenu) {
- MenuClicDroit = popupMenu;
- }
-
- @Override
- public void mousePressed(MouseEvent e) {
- maybeShowPopup(e);
- }
-
- @Override
- public void mouseReleased(MouseEvent e) {
- maybeShowPopup(e);
- }
-
- private void maybeShowPopup(MouseEvent e) {
- if (e.isPopupTrigger()) {
- MenuClicDroit.show(e.getComponent(),
- e.getX(), e.getY());
- }
- }
-}
\ No newline at end of file
Modified: trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionHeaderListener.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionHeaderListener.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionHeaderListener.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -19,8 +19,6 @@
package org.chorem.lima.listener;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.chorem.lima.table.TransactionJXTable;
import org.chorem.lima.table.model.TransactionFlattenTableModel;
@@ -32,10 +30,6 @@
*/
public class TransactionHeaderListener extends MouseAdapter {
- /**
- * log
- */
- private static final Log log = LogFactory.getLog(TransactionHeaderListener.class);
private final TransactionJXTable table;
/**
Modified: trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionKeyListener.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionKeyListener.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/listener/TransactionKeyListener.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -19,9 +19,6 @@
package org.chorem.lima.listener;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import static org.nuiton.i18n.I18n._;
import org.chorem.lima.dto.EntryDTO;
import org.chorem.lima.dto.TransactionDTO;
import org.chorem.lima.dto.util.DTOHelper;
@@ -31,6 +28,7 @@
import org.chorem.lima.table.model.TransactionTableModel;
import org.chorem.lima.ui.ErrorMessage;
import org.chorem.lima.util.Util;
+import static org.nuiton.i18n.I18n._;
import javax.swing.*;
import java.awt.event.KeyEvent;
@@ -43,11 +41,6 @@
*/
public class TransactionKeyListener extends java.awt.event.KeyAdapter {
- /**
- * log
- */
- private static final Log log = LogFactory.getLog(TransactionKeyListener.class);
-
@Override
public void keyPressed(KeyEvent e) {
TransactionJXTable table = (TransactionJXTable) e.getSource();
@@ -133,7 +126,8 @@
/**
* Permet d'ajouter une nouvelle ligne : transaction ou entrée
- * @param table
+ * @param table la table
+ * @return
*/
private boolean addLine (TransactionJXTable table)
{
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/editor/AccountTableCellEditor.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/editor/AccountTableCellEditor.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/editor/AccountTableCellEditor.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,7 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.combobox.JWideComboBox;
import org.chorem.lima.combobox.model.AccountComboBoxModel;
import org.chorem.lima.combobox.renderer.AccountComboBoxRenderer;
@@ -72,11 +72,11 @@
*/
// Get data from services
List<AccountDTO> accounts = ServiceHelper.getAllFlatAccount(
- Main.getContext().getDataManager().getAccountModel().getData());
+ LimaContext.getContext().getDataManager().getAccountModel().getData());
Vector<AccountDTO> v = new Vector<AccountDTO>(accounts);
AccountComboBoxModel model = new AccountComboBoxModel(v);
comboBox.setModel(model);
- Main.getContext().getDataManager().getAccountModel().addPropertyChangeListener(model);
+ LimaContext.getContext().getDataManager().getAccountModel().addPropertyChangeListener(model);
comboBox.setRenderer(AccountComboBoxRenderer.getInstance());
// AutoCompletion
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/editor/DateTableCellEditor.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/editor/DateTableCellEditor.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/editor/DateTableCellEditor.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -19,7 +19,7 @@
package org.chorem.lima.table.editor;
-import org.chorem.lima.Main;
+import org.chorem.lima.LimaContext;
import org.jdesktop.swingx.JXDatePicker;
import javax.swing.*;
@@ -42,7 +42,7 @@
*
*/
public DateTableCellEditor() {
- datePicker = new JXDatePicker(Main.getContext().getConfig().getLocale());
+ datePicker = new JXDatePicker(LimaContext.getContext().getConfig().getLocale());
}
@Override
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/editor/JournalTableCellEditor.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/editor/JournalTableCellEditor.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/editor/JournalTableCellEditor.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,7 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.combobox.JWideComboBox;
import org.chorem.lima.combobox.model.JournalComboBoxModel;
import org.chorem.lima.combobox.renderer.JournalComboBoxRenderer;
@@ -58,13 +58,13 @@
comboBox = new JWideComboBox();
/** Getting data from journal model **/
- List<JournalDTO> journals = Main.getContext().getDataManager().getJournalModel().getData();
+ List<JournalDTO> journals = LimaContext.getContext().getDataManager().getJournalModel().getData();
/** Creating combobox model */
Vector<JournalDTO> v = new Vector<JournalDTO>(journals);
JournalComboBoxModel comboBoxModel = new JournalComboBoxModel(v);
/** Property Change Listener */
- Main.getContext().getDataManager().getJournalModel().addPropertyChangeListener(comboBoxModel);
+ LimaContext.getContext().getDataManager().getJournalModel().addPropertyChangeListener(comboBoxModel);
comboBox.setModel(comboBoxModel);
/** Renderer */
comboBox.setRenderer(JournalComboBoxRenderer.getInstance());
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/editor/PeriodTableCellEditor.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/editor/PeriodTableCellEditor.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/editor/PeriodTableCellEditor.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,7 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.combobox.JWideComboBox;
import org.chorem.lima.combobox.renderer.PeriodComboBoxRenderer;
import org.chorem.lima.dto.PeriodDTO;
@@ -56,7 +56,7 @@
comboBox = new JWideComboBox();
/** Getting data from period list **/
- List<PeriodDTO> periods = Main.getContext().getDataManager().getPeriodes();
+ List<PeriodDTO> periods = LimaContext.getContext().getDataManager().getPeriodes();
/** Creating combobox model */
Vector<PeriodDTO> v = new Vector<PeriodDTO>(ServiceHelper.getAllFlatPeriod(periods));
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionDataTableModel.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionDataTableModel.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionDataTableModel.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,8 +21,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import static org.nuiton.i18n.I18n._;
-import org.chorem.lima.Main;
import org.chorem.lima.dto.*;
import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.enumeration.FilterEnum;
@@ -253,13 +253,13 @@
new Date(),
null,
null,
- Main.getContext().getDataManager().getCurrentJournal(),
+ LimaContext.getContext().getDataManager().getCurrentJournal(),
new LinkedList<EntryDTO>(),
- Main.getContext().getDataManager().getCurrentPeriod(),
+ LimaContext.getContext().getDataManager().getCurrentPeriod(),
ServiceHelper.findStatusByType(
- Main.getContext().getDataManager().getStatus(), ServiceHelper.TR_WIP));
+ LimaContext.getContext().getDataManager().getStatus(), ServiceHelper.TR_WIP));
// Chargement des status pour la transaction
- List<StatusDTO> status = Main.getContext().getDataManager().getStatus();
+ List<StatusDTO> status = LimaContext.getContext().getDataManager().getStatus();
// Ajout de la transaction avec son service
String response = transServ.addTransaction(trans,status);
// Si la transaction a été ajoutée avec succès
@@ -275,7 +275,7 @@
public String addTransaction(TransactionDTO trans) {
// Chargement des status pour la transaction
- List<StatusDTO> status = Main.getContext().getDataManager().getStatus();
+ List<StatusDTO> status = LimaContext.getContext().getDataManager().getStatus();
// Ajout de la transaction avec son service
String response = transServ.addTransaction(trans,status);
// Si la transaction a été ajoutée avec succès
@@ -292,7 +292,7 @@
@Override
public String removeTransaction(TransactionDTO trans) {
- List<StatusDTO> status = Main.getContext().getDataManager().getStatus();
+ List<StatusDTO> status = LimaContext.getContext().getDataManager().getStatus();
String response = transServ.removeTransaction(trans,status);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
data.remove(trans);
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionFlattenTableModel.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionFlattenTableModel.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionFlattenTableModel.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,8 +21,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import static org.nuiton.i18n.I18n._;
-import org.chorem.lima.Main;
import org.chorem.lima.dto.*;
import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.enumeration.FilterEnum;
@@ -240,7 +240,7 @@
case PERIOD:
cloneTrans.setPeriod((PeriodDTO) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
@@ -251,7 +251,7 @@
case JOURNAL:
cloneTrans.setJournal((JournalDTO) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
@@ -262,7 +262,7 @@
case DATE:
cloneTrans.setEntryDate((Date) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
@@ -273,7 +273,7 @@
case DOCUMENT:
cloneTrans.setVoucherRef((String) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
@@ -284,7 +284,7 @@
case DESCRIPTION:
cloneTrans.setDescription((String) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
@@ -308,7 +308,7 @@
// Remote
cloneEntry.setDescription((String) value);
response = entryServ.updateEntry(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
cloneEntry);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
entry.setDescription(cloneEntry.getDescription());
@@ -330,7 +330,7 @@
cloneEntry.setAmount((String) value);
DTOHelper.setDebit(cloneEntry);
response = entryServ.updateEntry(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
cloneEntry);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
entry.setAmount(cloneEntry.getAmount());
@@ -353,7 +353,7 @@
cloneEntry.setAmount((String) value);
DTOHelper.setCredit(cloneEntry);
response = entryServ.updateEntry(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
cloneEntry);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
entry.setAmount(cloneEntry.getAmount());
@@ -400,7 +400,7 @@
cloneEntry.setDescription(account.getDescription());
}
response = entryServ.updateEntry(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
cloneEntry);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
entry.setAccount(cloneEntry.getAccount());
@@ -555,7 +555,7 @@
public void saveRemoteEmpyLine(EntryDTO entry) {
if (isEmptyLineValid()) {
String response = entryServ.addEntry(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
entry);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
saveLocalEmptyLine();
@@ -595,7 +595,7 @@
* Remove entry
*/
String response = entryServ.removeEntry(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
entry);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
entry.getTransaction().removeChild(entry);
Modified: trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionSortedTableModel.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionSortedTableModel.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/table/model/TransactionSortedTableModel.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,7 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.comparator.JournalComparator;
import org.chorem.lima.comparator.PeriodComparator;
import org.chorem.lima.comparator.StatusComparator;
@@ -162,7 +162,7 @@
case PERIOD:
cloneTrans.setPeriod((PeriodDTO) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
@@ -173,7 +173,7 @@
case JOURNAL:
cloneTrans.setJournal((JournalDTO) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
@@ -184,7 +184,7 @@
case DATE:
cloneTrans.setEntryDate((Date) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
@@ -195,7 +195,7 @@
case DOCUMENT:
cloneTrans.setVoucherRef((String) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
@@ -206,7 +206,7 @@
case DESCRIPTION:
cloneTrans.setDescription((String) value);
response = transactionServ.updateTransaction(
- Main.getContext().getDataManager().getStatus(),
+ LimaContext.getContext().getDataManager().getStatus(),
trans,
cloneTrans);
if (ServiceHelper.RESPOND_SUCCESS.equals(response)) {
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/AccountViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/AccountViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/AccountViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,8 +21,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import static org.nuiton.i18n.I18n._;
-import org.chorem.lima.Main;
import org.chorem.lima.dto.AccountDTO;
import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.tree.model.AccountTreeTableModel;
@@ -55,12 +55,12 @@
*/
public AccountViewImpl() {
// TreeTable
- model = Main.getContext().getDataManager().getAccountModel();
+ model = LimaContext.getContext().getDataManager().getAccountModel();
table = new JXTreeTable(model);
table.setColumnControlVisible(true);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
accountScrollPane.setViewportView(table);
- form = Main.getContext().getMainUI().getAccountForm();
+ form = LimaContext.getContext().getMainUI().getAccountForm();
form.getOkButton().addActionListener(new ActionListener() {
@Override
@@ -79,7 +79,7 @@
// Coloration
table.setBackground(Color.WHITE);
table.setHighlighters(HighlighterFactory.createAlternateStriping());
- //,new Color(250,250,250) createAlternateStriping(Color.GRAY,Color.WHITE)
+ //,new Color(250,250,250) createAlternateStriping(Color.GRAY,Color.WHITE)
}
/**
@@ -230,8 +230,7 @@
}
}
- public JXTreeTable getTable()
- {
+ public JXTreeTable getTable() {
return table;
}
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilView.jaxx
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilView.jaxx 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilView.jaxx 2009-11-08 12:04:50 UTC (rev 2734)
@@ -2,7 +2,7 @@
<row>
<cell>
<style source="css/lima.css" />
- <JLabel text="Page d'accueil - TODO"/>
+ <JLabel text="lima.home"/>
</cell>
</row>
</Table>
\ No newline at end of file
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/BalanceViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/BalanceViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/BalanceViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -20,12 +20,12 @@
package org.chorem.lima.ui;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.combobox.renderer.PeriodComboBoxRenderer;
import org.chorem.lima.balance.Balance;
import org.chorem.lima.dto.BalanceDTO;
import org.chorem.lima.dto.PeriodDTO;
import org.chorem.lima.dto.util.DTOHelper;
-import org.chorem.lima.Main;
import org.chorem.lima.table.model.BalanceTableModel;
import org.chorem.lima.table.renderer.BalanceTableCellRenderer;
import static org.nuiton.i18n.I18n._;
@@ -46,7 +46,7 @@
*/
public class BalanceViewImpl extends BalanceView {
- private JComboBox comboBoxPeriod = new JComboBox ();
+ private JComboBox comboBoxPeriod = new JComboBox();
private JXTable table;
private JXTable tableRes;
private Balance balance = new Balance();
@@ -77,7 +77,7 @@
table.setColumnControlVisible(true);
// On associe pour chaque colonne l'affichage des cellules (centré, alignement, etc)
for (int i = 0; i < table.getModel().getColumnCount(); i++) {
- table.getColumnModel().getColumn(i).setCellRenderer(new BalanceTableCellRenderer());
+ table.getColumnModel().getColumn(i).setCellRenderer(new BalanceTableCellRenderer());
}
// Affichage de la table
@@ -87,15 +87,15 @@
* Calcul pour le total des soldes
*/
model = new DefaultTableModel();
- String[] columnNames = {"1","2","3","4","5","6"};
+ String[] columnNames = {"1", "2", "3", "4", "5", "6"};
model.setColumnIdentifiers(columnNames);
- tableRes = new JXTable (model);
+ tableRes = new JXTable(model);
// On cache le header des colonnes
tableRes.setColumnControlVisible(false);
tableRes.getTableHeader().setVisible(false);
// On associe pour chaque colonne l'affichage des cellules (centré, alignement, etc)
for (int i = 0; i < tableRes.getModel().getColumnCount(); i++) {
- tableRes.getColumnModel().getColumn(i).setCellRenderer(new BalanceTableCellRenderer());
+ tableRes.getColumnModel().getColumn(i).setCellRenderer(new BalanceTableCellRenderer());
}
// Initialise les valeurs pour le résultat total
initTableBalanceRes(listBalance);
@@ -105,36 +105,34 @@
* Ajout d'un listener lorsque l'utilisateur change de période.
*/
comboBoxPeriod.addItemListener(new ItemListener() {
- @Override
+ @Override
public void itemStateChanged(ItemEvent e) {
- // Recherche la balance
- updateBalance();
- }
+ // Recherche la balance
+ updateBalance();
+ }
});
}
/**
* Permet de initialiser la table de résultat à chaque appel de cette
* méthode.
+ *
* @param listBalance
*/
- private void initTableBalanceRes(List<BalanceDTO> listBalance)
- {
+ private void initTableBalanceRes(List<BalanceDTO> listBalance) {
// Déclaration des variables
String TotalMoveDebit = "0";
String TotalMoveCredit = "0";
String TotalBalanceDebit = "0";
String TotalBalanceCredit = "0";
// Pour chaque ligne de la balance
- for (BalanceDTO balanceDTO : listBalance)
- {
+ for (BalanceDTO balanceDTO : listBalance) {
/** Calcul des mouvements */
- TotalMoveDebit = DTOHelper.AddNumbersString(TotalMoveDebit,balanceDTO.getDebit());
- TotalMoveCredit = DTOHelper.AddNumbersString(TotalMoveCredit,balanceDTO.getCredit());
+ TotalMoveDebit = DTOHelper.AddNumbersString(TotalMoveDebit, balanceDTO.getDebit());
+ TotalMoveCredit = DTOHelper.AddNumbersString(TotalMoveCredit, balanceDTO.getCredit());
/** Calcul des soldes */
- if ( balanceDTO.getType().equalsIgnoreCase("Actif")||
- balanceDTO.getType().equalsIgnoreCase("Charge") )
- {
+ if (balanceDTO.getType().equalsIgnoreCase("Actif") ||
+ balanceDTO.getType().equalsIgnoreCase("Charge")) {
String solde = DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit());
TotalBalanceDebit = DTOHelper.AddNumbersString(solde, TotalBalanceDebit);
} else {
@@ -143,17 +141,16 @@
}
}
// Définition des données
- Object[] data =
- {"", _("lima.balance.total"),TotalMoveDebit,TotalMoveCredit,TotalBalanceDebit,TotalBalanceCredit};
+ Object[] data =
+ {"", _("lima.balance.total"), TotalMoveDebit, TotalMoveCredit, TotalBalanceDebit, TotalBalanceCredit};
// Si il existe déja une ligne
- if ( model.getRowCount() > 0 )
- {
+ if (model.getRowCount() > 0) {
model.removeRow(0);
}
// Ajout de la ligne
model.addRow(data);
- tableRes.setModel(model);
- tableBalanceRes.setViewportView(tableRes);
+ tableRes.setModel(model);
+ tableBalanceRes.setViewportView(tableRes);
}
/**
@@ -161,7 +158,7 @@
*/
private void initComboBoxPeriod() {
// Recherche la liste de toutes les périodes
- List<PeriodDTO> periodes = Main.getContext().getDataManager().getPeriodes();
+ List<PeriodDTO> periodes = LimaContext.getContext().getDataManager().getPeriodes();
// Model pour les périodes
Vector<PeriodDTO> v = new Vector<PeriodDTO>();
// On ajoute un élément null pour permettre d'afficher toutes les périodes
@@ -183,8 +180,7 @@
* la balance.
*/
@Override
- protected void updateBalance ()
- {
+ protected void updateBalance() {
// Récupère la liste de la balance
List<BalanceDTO> listBalance = balance.createBalance((PeriodDTO) comboBoxPeriod.getSelectedItem());
modelBalance.setData(listBalance);
@@ -193,5 +189,4 @@
}
-
}
\ No newline at end of file
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -19,6 +19,7 @@
package org.chorem.lima.ui;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.combobox.renderer.PeriodComboBoxRenderer;
import org.chorem.lima.dto.BalanceDTO;
import org.chorem.lima.bilan.Bilan;
@@ -26,7 +27,6 @@
import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.balance.Balance;
import org.chorem.lima.balance.Category;
-import org.chorem.lima.Main;
import org.chorem.lima.table.BilanActifJXTable;
import org.chorem.lima.table.BilanPassifJXTable;
import org.chorem.lima.table.model.BilanActifTableModel;
@@ -41,23 +41,23 @@
/**
* Cette classe permet de calculer le bilan. Elle utilise la balance et
- * le compte de résultat.
+ * le compte de résultat.
*
* @author Rémi Chapelet
*/
public class BilanViewImpl extends BilanView {
- private JComboBox comboBoxPeriod = new JComboBox ();
+ private JComboBox comboBoxPeriod = new JComboBox();
private BilanActifJXTable tableActif;
private BilanPassifJXTable tablePassif;
private BilanActifTableModel modelBilanActif;
private BilanPassifTableModel modelBilanPassif;
- Hashtable<String,Bilan> actifTab = new Hashtable<String,Bilan>();
- Hashtable<String,Bilan> passifTab = new Hashtable<String,Bilan>();
- Hashtable<String,List<BalanceDTO>> provisionMap;
+ Hashtable<String, Bilan> actifTab = new Hashtable<String, Bilan>();
+ Hashtable<String, Bilan> passifTab = new Hashtable<String, Bilan>();
+ Hashtable<String, List<BalanceDTO>> provisionMap;
private Balance balance = new Balance();
private ProgressBarImpl progressBar;
-
+
/**
* Constructor
*/
@@ -75,7 +75,7 @@
//updateBilan();
/** ACTIF */
- tableActif = new BilanActifJXTable(modelBilanActif);
+ tableActif = new BilanActifJXTable(modelBilanActif);
// Ajout du tableau
tabActif.setViewportView(tableActif);
@@ -90,8 +90,8 @@
comboBoxPeriod.addItemListener(new ItemListener() {
@Override
public void itemStateChanged(ItemEvent e) {
- updateBilan();
- }
+ updateBilan();
+ }
});
}
@@ -99,65 +99,64 @@
/**
* Cette partie consiste à créer les catégories du bilan
*/
- public void createCategory()
- {
+ public void createCategory() {
/** ACTIF */
-
- actifTab.put("ACTIF", new Bilan("TOTAL (1) + (2)","total",null));
- actifTab.put("ACTIF_IMMOBILISE", new Bilan("ACTIF IMMOBILISE","title",null));
- actifTab.put("ACTIF_IMMOBILISE_INCORPOREL", new Bilan("Immobilisé incorporel","",null));
+
+ actifTab.put("ACTIF", new Bilan("TOTAL (1) + (2)", "total", null));
+ actifTab.put("ACTIF_IMMOBILISE", new Bilan("ACTIF IMMOBILISE", "title", null));
+ actifTab.put("ACTIF_IMMOBILISE_INCORPOREL", new Bilan("Immobilisé incorporel", "", null));
actifTab.get("ACTIF_IMMOBILISE").add(actifTab.get("ACTIF_IMMOBILISE_INCORPOREL"));
- actifTab.put("ACTIF_IMMOBILISE_CORPOREL", new Bilan("Immobilisé corporel","",null));
+ actifTab.put("ACTIF_IMMOBILISE_CORPOREL", new Bilan("Immobilisé corporel", "", null));
actifTab.get("ACTIF_IMMOBILISE").add(actifTab.get("ACTIF_IMMOBILISE_CORPOREL"));
- actifTab.put("ACTIF_IMMOBILISE_FINANCIER", new Bilan("Immobilisé financier","",null));
+ actifTab.put("ACTIF_IMMOBILISE_FINANCIER", new Bilan("Immobilisé financier", "", null));
actifTab.get("ACTIF_IMMOBILISE").add(actifTab.get("ACTIF_IMMOBILISE_FINANCIER"));
- actifTab.put("ACTIF_CIRCULANT", new Bilan("ACTIF CIRCULANT","title",null));
- actifTab.put("ACTIF_CIRCULANT_STOCK", new Bilan("stocks et en-cours","",null));
+ actifTab.put("ACTIF_CIRCULANT", new Bilan("ACTIF CIRCULANT", "title", null));
+ actifTab.put("ACTIF_CIRCULANT_STOCK", new Bilan("stocks et en-cours", "", null));
actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_STOCK"));
- actifTab.put("ACTIF_CIRCULANT_AVANCES", new Bilan("av. et ac. versés","",null));
+ actifTab.put("ACTIF_CIRCULANT_AVANCES", new Bilan("av. et ac. versés", "", null));
actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_AVANCES"));
- actifTab.put("ACTIF_CIRCULANT_CREANCES", new Bilan("Créances","",null));
+ actifTab.put("ACTIF_CIRCULANT_CREANCES", new Bilan("Créances", "", null));
actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_CREANCES"));
- actifTab.put("ACTIF_CIRCULANT_VMP", new Bilan("VMP","",null));
+ actifTab.put("ACTIF_CIRCULANT_VMP", new Bilan("VMP", "", null));
actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_VMP"));
- actifTab.put("ACTIF_CIRCULANT_DISPONIBILITE", new Bilan("Disponibilités","",null));
+ actifTab.put("ACTIF_CIRCULANT_DISPONIBILITE", new Bilan("Disponibilités", "", null));
actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE"));
- actifTab.put("ACTIF_CIRCULANT_CCA", new Bilan("CCA","",null));
+ actifTab.put("ACTIF_CIRCULANT_CCA", new Bilan("CCA", "", null));
actifTab.get("ACTIF_CIRCULANT").add(actifTab.get("ACTIF_CIRCULANT_CCA"));
actifTab.get("ACTIF").add(actifTab.get("ACTIF_IMMOBILISE"));
actifTab.get("ACTIF").add(actifTab.get("ACTIF_CIRCULANT"));
/** PASSIF */
- passifTab.put("PASSIF", new Bilan("TOTAL (1) + (2) + (3)","total",null));
- passifTab.put("PASSIF_CAPITAUX", new Bilan("CAPITAUX PROPRES","title",null));
- passifTab.put("PASSIF_CP_CAPITAL", new Bilan("Capital","",null));
+ passifTab.put("PASSIF", new Bilan("TOTAL (1) + (2) + (3)", "total", null));
+ passifTab.put("PASSIF_CAPITAUX", new Bilan("CAPITAUX PROPRES", "title", null));
+ passifTab.put("PASSIF_CP_CAPITAL", new Bilan("Capital", "", null));
passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_CAPITAL"));
- passifTab.put("PASSIF_CP_RESERVES", new Bilan("Réserves","",null));
+ passifTab.put("PASSIF_CP_RESERVES", new Bilan("Réserves", "", null));
passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_RESERVES"));
- passifTab.put("PASSIF_CP_RAN", new Bilan("RAN","",null));
+ passifTab.put("PASSIF_CP_RAN", new Bilan("RAN", "", null));
passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_RAN"));
- passifTab.put("PASSIF_CP_RESULTAT", new Bilan("Résultat","",null));
+ passifTab.put("PASSIF_CP_RESULTAT", new Bilan("Résultat", "", null));
passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_RESULTAT"));
- passifTab.put("PASSIF_CP_SUBVENTION", new Bilan("Subventions d'investissement","",null));
+ passifTab.put("PASSIF_CP_SUBVENTION", new Bilan("Subventions d'investissement", "", null));
passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_SUBVENTION"));
- passifTab.put("PASSIF_CP_PROVISION", new Bilan("Provisions réglementées","",null));
+ passifTab.put("PASSIF_CP_PROVISION", new Bilan("Provisions réglementées", "", null));
passifTab.get("PASSIF_CAPITAUX").add(passifTab.get("PASSIF_CP_PROVISION"));
- passifTab.put("PASSIF_PR_PROVISIONS", new Bilan("PROVISIONS","title",null));
- passifTab.put("PASSIF_PROVISIONS", new Bilan("Provisions","",null));
+ passifTab.put("PASSIF_PR_PROVISIONS", new Bilan("PROVISIONS", "title", null));
+ passifTab.put("PASSIF_PROVISIONS", new Bilan("Provisions", "", null));
passifTab.get("PASSIF_PR_PROVISIONS").add(passifTab.get("PASSIF_PROVISIONS"));
- passifTab.put("PASSIF_DETTES", new Bilan("DETTES","title",null));
- passifTab.put("PASSIF_DETTES_EMPRUNTS", new Bilan("Emprunts","",null));
+ passifTab.put("PASSIF_DETTES", new Bilan("DETTES", "title", null));
+ passifTab.put("PASSIF_DETTES_EMPRUNTS", new Bilan("Emprunts", "", null));
passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_EMPRUNTS"));
- passifTab.put("PASSIF_DETTES_AVANCES", new Bilan("av. et ac. reçus","",null));
+ passifTab.put("PASSIF_DETTES_AVANCES", new Bilan("av. et ac. reçus", "", null));
passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_AVANCES"));
- passifTab.put("PASSIF_DETTES_FOURNISSEURS", new Bilan("Fournisseurs","",null));
+ passifTab.put("PASSIF_DETTES_FOURNISSEURS", new Bilan("Fournisseurs", "", null));
passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_FOURNISSEURS"));
- passifTab.put("PASSIF_DETTES_FISCALES", new Bilan("Fiscales/sociales","",null));
+ passifTab.put("PASSIF_DETTES_FISCALES", new Bilan("Fiscales/sociales", "", null));
passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_FISCALES"));
- passifTab.put("PASSIF_DETTES_IMMOBILISATIONS", new Bilan("Immobilisations","",null));
+ passifTab.put("PASSIF_DETTES_IMMOBILISATIONS", new Bilan("Immobilisations", "", null));
passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_IMMOBILISATIONS"));
- passifTab.put("PASSIF_DETTES_AUTRES_DETTES", new Bilan("Autres dettes","",null));
+ passifTab.put("PASSIF_DETTES_AUTRES_DETTES", new Bilan("Autres dettes", "", null));
passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_AUTRES_DETTES"));
- passifTab.put("PASSIF_DETTES_PCA", new Bilan("PCA","",null));
+ passifTab.put("PASSIF_DETTES_PCA", new Bilan("PCA", "", null));
passifTab.get("PASSIF_DETTES").add(passifTab.get("PASSIF_DETTES_PCA"));
passifTab.get("PASSIF").add(passifTab.get("PASSIF_CAPITAUX"));
passifTab.get("PASSIF").add(passifTab.get("PASSIF_CP_PROVISION"));
@@ -165,327 +164,282 @@
}
-
-
/**
* Permet de calculer le bilan
*/
- public void updateBilan ()
- {
+ public void updateBilan() {
log.debug("Update bilan :");
- new Thread()
- {
+ new Thread() {
@Override
- public void run()
- {
- progressBar = new ProgressBarImpl();
- progressBar.setTitle("Chargement du bilan");
- progressBar.getProgressBar().setString("0% : Préparation des données");
- progressBar.getProgressBar().setValue(0);
+ public void run() {
+ progressBar = new ProgressBarImpl();
+ progressBar.setTitle("Chargement du bilan");
+ progressBar.getProgressBar().setString("0% : Préparation des données");
+ progressBar.getProgressBar().setValue(0);
- // Chargement de la balance
- List<BalanceDTO> ListbalanceDTO = balance.createBalance((PeriodDTO) comboBoxPeriod.getSelectedItem());
+ // Chargement de la balance
+ List<BalanceDTO> ListbalanceDTO = balance.createBalance((PeriodDTO) comboBoxPeriod.getSelectedItem());
- progressBar.getProgressBar().setString("10% : Balance chargée");
- progressBar.getProgressBar().setValue(10);
- /**
- * Vérifie chaque numéro de compte (balance) pour déterminer sa position
- * dans le bilan.
- * Chaque catégorie est un objet bilan, et possède à son tour des bilans
- * correspondants aux comptes.
- * Cette boucle ne prend pas en compte les amortissement et provisions.
- * Ces comptes sont mis dans une liste à part, pour être traités une seconde fois.
- */
+ progressBar.getProgressBar().setString("10% : Balance chargée");
+ progressBar.getProgressBar().setValue(10);
+ /**
+ * Vérifie chaque numéro de compte (balance) pour déterminer sa position
+ * dans le bilan.
+ * Chaque catégorie est un objet bilan, et possède à son tour des bilans
+ * correspondants aux comptes.
+ * Cette boucle ne prend pas en compte les amortissement et provisions.
+ * Ces comptes sont mis dans une liste à part, pour être traités une seconde fois.
+ */
- progressBar.getProgressBar().setString("15% : Création catégorie");
- progressBar.getProgressBar().setValue(15);
- createCategory();
- // Liste amort/prov à traiter apres
- provisionMap = new Hashtable<String,List<BalanceDTO>>();
+ progressBar.getProgressBar().setString("15% : Création catégorie");
+ progressBar.getProgressBar().setValue(15);
+ createCategory();
+ // Liste amort/prov à traiter apres
+ provisionMap = new Hashtable<String, List<BalanceDTO>>();
- progressBar.getProgressBar().setString("20% : Chargement des comptes");
- progressBar.getProgressBar().setValue(20);
- // Récupère le nombre de balances
- float nbBalances = ListbalanceDTO.size();
- float incremente = 40 / nbBalances;
- float value = 20;
- // Pour chaque balance
- for ( BalanceDTO balanceDTO : ListbalanceDTO)
- {
- /**
- * ACTIF
- */
- /** IMMOBILISATION */
- if ( Category.accountNumberCategory("20", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("21", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_IMMOBILISE_CORPOREL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("22", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("23", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("25", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("26", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("27", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_IMMOBILISE_FINANCIER").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- /** ACTIF CIRCULANT */
- if ( Category.accountNumberCategory("31", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("32", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("33", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("34", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("35", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("36", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("37", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_STOCK").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("99", balanceDTO.getAccount().getIdNumber()) )
- {
- // TODO
- //actifTab.get("ACTIF_CIRCULANT_AVANCES").add(balanceDTO,Util.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("41", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_CREANCES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("50", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_VMP").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("51", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("52", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("53", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("54", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("486", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_CCA").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- /** AMORT. & PROV. */
- if ( Category.accountNumberCategory("280", balanceDTO.getAccount().getIdNumber()) )
- {
- if ( provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL") == null )
- {
- LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
- provisionMap.put("ACTIF_IMMOBILISE_INCORPOREL", listBalance);
- }
- provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL").add(balanceDTO);
- }
- if ( Category.accountNumberCategory("281", balanceDTO.getAccount().getIdNumber()) )
- {
- if ( provisionMap.get("ACTIF_IMMOBILISE_CORPOREL") == null )
- {
- LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
- provisionMap.put("ACTIF_IMMOBILISE_CORPOREL", listBalance);
- }
- provisionMap.get("ACTIF_IMMOBILISE_CORPOREL").add(balanceDTO);
- }
- if ( Category.accountNumberCategory("282", balanceDTO.getAccount().getIdNumber()) )
- {
- if ( provisionMap.get("ACTIF_IMMOBILISE_FINANCIER") == null )
- {
- LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
- provisionMap.put("ACTIF_IMMOBILISE_FINANCIER", listBalance);
- }
- provisionMap.get("ACTIF_IMMOBILISE_FINANCIER").add(balanceDTO);
- }
- if ( Category.accountNumberCategory("491", balanceDTO.getAccount().getIdNumber()) )
- {
- if ( provisionMap.get("ACTIF_CIRCULANT_CREANCES") == null )
- {
- LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
- provisionMap.put("ACTIF_CIRCULANT_CREANCES", listBalance);
- }
- provisionMap.get("ACTIF_CIRCULANT_CREANCES").add(balanceDTO);
- }
- /**
- * PASSIF
- */
- /** CAPITAUX PROPRES */
- if ( Category.accountNumberCategory("101", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("104", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("105", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("107", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("108", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("109", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_CAPITAL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("106", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_RESERVES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("11", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_RAN").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("12", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_RESULTAT").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("13", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_SUBVENTION").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("14", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_PROVISION").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- /** PROVISIONS */
- if ( Category.accountNumberCategory("15", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_PROVISIONS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- /** DETTES */
- if ( Category.accountNumberCategory("16", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_EMPRUNTS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("15", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_AVANCES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("40", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_FOURNISSEURS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("43", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("44", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_FISCALES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("999", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_IMMOBILISATIONS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("9999", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_AUTRES_DETTES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("487", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_PCA").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- // Incrémente la barre de chargement
- value = value + incremente;
- progressBar.getProgressBar().setValue((int)value);
- progressBar.getProgressBar().setString((int)value+"% : Compte : "+balanceDTO.getName());
- }
-
- progressBar.getProgressBar().setString("60% : Mise en place des amortissements et provisions");
- progressBar.getProgressBar().setValue(60);
+ progressBar.getProgressBar().setString("20% : Chargement des comptes");
+ progressBar.getProgressBar().setValue(20);
+ // Récupère le nombre de balances
+ float nbBalances = ListbalanceDTO.size();
+ float incremente = 40 / nbBalances;
+ float value = 20;
+ // Pour chaque balance
+ for (BalanceDTO balanceDTO : ListbalanceDTO) {
/**
- * Mise en place des provisions et amortissements
+ * ACTIF
*/
- if ( provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL") != null )
- {
- List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL");
- for ( BalanceDTO balanceDTO : listBalance )
- {
- actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ /** IMMOBILISATION */
+ if (Category.accountNumberCategory("20", balanceDTO.getAccount().getIdNumber())) {
+ actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if (Category.accountNumberCategory("21", balanceDTO.getAccount().getIdNumber())) {
+ actifTab.get("ACTIF_IMMOBILISE_CORPOREL").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if (Category.accountNumberCategory("22", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("23", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("25", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("26", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("27", balanceDTO.getAccount().getIdNumber())) {
+ actifTab.get("ACTIF_IMMOBILISE_FINANCIER").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ /** ACTIF CIRCULANT */
+ if (Category.accountNumberCategory("31", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("32", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("33", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("34", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("35", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("36", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("37", balanceDTO.getAccount().getIdNumber())) {
+ actifTab.get("ACTIF_CIRCULANT_STOCK").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if (Category.accountNumberCategory("99", balanceDTO.getAccount().getIdNumber())) {
+ // TODO
+ //actifTab.get("ACTIF_CIRCULANT_AVANCES").add(balanceDTO,Util.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if (Category.accountNumberCategory("41", balanceDTO.getAccount().getIdNumber())) {
+ actifTab.get("ACTIF_CIRCULANT_CREANCES").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if (Category.accountNumberCategory("50", balanceDTO.getAccount().getIdNumber())) {
+ actifTab.get("ACTIF_CIRCULANT_VMP").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if (Category.accountNumberCategory("51", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("52", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("53", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("54", balanceDTO.getAccount().getIdNumber())) {
+ actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if (Category.accountNumberCategory("486", balanceDTO.getAccount().getIdNumber())) {
+ actifTab.get("ACTIF_CIRCULANT_CCA").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ /** AMORT. & PROV. */
+ if (Category.accountNumberCategory("280", balanceDTO.getAccount().getIdNumber())) {
+ if (provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL") == null) {
+ LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
+ provisionMap.put("ACTIF_IMMOBILISE_INCORPOREL", listBalance);
}
+ provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL").add(balanceDTO);
}
- if ( provisionMap.get("ACTIF_IMMOBILISE_CORPOREL") != null )
- {
- List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_CORPOREL");
- for ( BalanceDTO balanceDTO : listBalance )
- {
- actifTab.get("ACTIF_IMMOBILISE_CORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ if (Category.accountNumberCategory("281", balanceDTO.getAccount().getIdNumber())) {
+ if (provisionMap.get("ACTIF_IMMOBILISE_CORPOREL") == null) {
+ LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
+ provisionMap.put("ACTIF_IMMOBILISE_CORPOREL", listBalance);
}
+ provisionMap.get("ACTIF_IMMOBILISE_CORPOREL").add(balanceDTO);
}
- if ( provisionMap.get("ACTIF_IMMOBILISE_FINANCIER") != null )
- {
- List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_FINANCIER");
- for ( BalanceDTO balanceDTO : listBalance )
- {
- actifTab.get("ACTIF_IMMOBILISE_FINANCIER").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ if (Category.accountNumberCategory("282", balanceDTO.getAccount().getIdNumber())) {
+ if (provisionMap.get("ACTIF_IMMOBILISE_FINANCIER") == null) {
+ LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
+ provisionMap.put("ACTIF_IMMOBILISE_FINANCIER", listBalance);
}
+ provisionMap.get("ACTIF_IMMOBILISE_FINANCIER").add(balanceDTO);
}
- if ( provisionMap.get("ACTIF_CIRCULANT_CREANCES") != null )
- {
- List<BalanceDTO> listBalance = provisionMap.get("ACTIF_CIRCULANT_CREANCES");
- for ( BalanceDTO balanceDTO : listBalance )
- {
- actifTab.get("ACTIF_CIRCULANT_CREANCES").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ if (Category.accountNumberCategory("491", balanceDTO.getAccount().getIdNumber())) {
+ if (provisionMap.get("ACTIF_CIRCULANT_CREANCES") == null) {
+ LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
+ provisionMap.put("ACTIF_CIRCULANT_CREANCES", listBalance);
}
+ provisionMap.get("ACTIF_CIRCULANT_CREANCES").add(balanceDTO);
}
-
- progressBar.getProgressBar().setString("70% : Calcul du résultat");
- progressBar.getProgressBar().setValue(70);
/**
- * Appel de la méthode du calcul du compte de résultat pour avoir le
- * résultat
+ * PASSIF
*/
- ResultViewImpl resultViewImpl = new ResultViewImpl ();
- resultViewImpl.updateResult((PeriodDTO) comboBoxPeriod.getSelectedItem());
- passifTab.get("PASSIF_CP_RESULTAT").add(new Bilan("Résultat","",resultViewImpl.getResult(),"0"), resultViewImpl.getResult());
+ /** CAPITAUX PROPRES */
+ if (Category.accountNumberCategory("101", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("104", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("105", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("107", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("108", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("109", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_CP_CAPITAL").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("106", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_CP_RESERVES").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("11", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_CP_RAN").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("12", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_CP_RESULTAT").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("13", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_CP_SUBVENTION").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("14", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_CP_PROVISION").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ /** PROVISIONS */
+ if (Category.accountNumberCategory("15", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_PROVISIONS").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ /** DETTES */
+ if (Category.accountNumberCategory("16", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_DETTES_EMPRUNTS").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("15", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_DETTES_AVANCES").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("40", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_DETTES_FOURNISSEURS").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("43", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("44", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_DETTES_FISCALES").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("999", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_DETTES_IMMOBILISATIONS").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("9999", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_DETTES_AUTRES_DETTES").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if (Category.accountNumberCategory("487", balanceDTO.getAccount().getIdNumber())) {
+ passifTab.get("PASSIF_DETTES_PCA").add(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ // Incrémente la barre de chargement
+ value = value + incremente;
+ progressBar.getProgressBar().setValue((int) value);
+ progressBar.getProgressBar().setString((int) value + "% : Compte : " + balanceDTO.getName());
+ }
- progressBar.getProgressBar().setString("90% : Création des tableaux");
- progressBar.getProgressBar().setValue(90);
- /**
- * Ajout des données dans le model
- */
- /** ACTIF */
- List<Bilan> listActif = new LinkedList<Bilan>();
- listActif.add(actifTab.get("ACTIF_IMMOBILISE"));
- listActif.add(actifTab.get("ACTIF_IMMOBILISE_INCORPOREL"));
- listActif.add(actifTab.get("ACTIF_IMMOBILISE_CORPOREL"));
- listActif.add(actifTab.get("ACTIF_IMMOBILISE_FINANCIER"));
- listActif.add(new Bilan("SOUS-TOTAL (1)","soustotal",actifTab.get("ACTIF_IMMOBILISE").getTotal(),actifTab.get("ACTIF_IMMOBILISE").getDepreciation()));
- listActif.add(actifTab.get("ACTIF_CIRCULANT"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_STOCK"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_AVANCES"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_CREANCES"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_VMP"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_CCA"));
- listActif.add(new Bilan("SOUS-TOTAL (2)","soustotal",actifTab.get("ACTIF_CIRCULANT").getTotal(),actifTab.get("ACTIF_CIRCULANT").getDepreciation()));
- listActif.add(actifTab.get("ACTIF"));
+ progressBar.getProgressBar().setString("60% : Mise en place des amortissements et provisions");
+ progressBar.getProgressBar().setValue(60);
+ /**
+ * Mise en place des provisions et amortissements
+ */
+ if (provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL") != null) {
+ List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL");
+ for (BalanceDTO balanceDTO : listBalance) {
+ actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").addDepreciation(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ }
+ if (provisionMap.get("ACTIF_IMMOBILISE_CORPOREL") != null) {
+ List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_CORPOREL");
+ for (BalanceDTO balanceDTO : listBalance) {
+ actifTab.get("ACTIF_IMMOBILISE_CORPOREL").addDepreciation(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ }
+ if (provisionMap.get("ACTIF_IMMOBILISE_FINANCIER") != null) {
+ List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_FINANCIER");
+ for (BalanceDTO balanceDTO : listBalance) {
+ actifTab.get("ACTIF_IMMOBILISE_FINANCIER").addDepreciation(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ }
+ if (provisionMap.get("ACTIF_CIRCULANT_CREANCES") != null) {
+ List<BalanceDTO> listBalance = provisionMap.get("ACTIF_CIRCULANT_CREANCES");
+ for (BalanceDTO balanceDTO : listBalance) {
+ actifTab.get("ACTIF_CIRCULANT_CREANCES").addDepreciation(balanceDTO, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ }
- // Création du modèle à partir de la liste précédement créée
- modelBilanActif.setData(listActif);
- modelBilanActif.fireTableDataChanged();
+ progressBar.getProgressBar().setString("70% : Calcul du résultat");
+ progressBar.getProgressBar().setValue(70);
+ /**
+ * Appel de la méthode du calcul du compte de résultat pour avoir le
+ * résultat
+ */
+ ResultViewImpl resultViewImpl = new ResultViewImpl();
+ resultViewImpl.updateResult((PeriodDTO) comboBoxPeriod.getSelectedItem());
+ passifTab.get("PASSIF_CP_RESULTAT").add(new Bilan("Résultat", "", resultViewImpl.getResult(), "0"), resultViewImpl.getResult());
- /** PASSIF */
- List<Bilan> listPassif = new LinkedList<Bilan>();
- listPassif.add(passifTab.get("PASSIF_CAPITAUX"));
- listPassif.add(passifTab.get("PASSIF_CP_CAPITAL"));
- listPassif.add(passifTab.get("PASSIF_CP_RESULTAT"));
- listPassif.add(passifTab.get("PASSIF_CP_RESERVES"));
- listPassif.add(passifTab.get("PASSIF_CP_RAN"));
- listPassif.add(passifTab.get("PASSIF_CP_SUBVENTION"));
- listPassif.add(passifTab.get("PASSIF_CP_PROVISION"));
- listPassif.add(new Bilan("SOUS-TOTAL (1)","soustotal",passifTab.get("PASSIF_CAPITAUX").getTotal(),"0"));
- listPassif.add(passifTab.get("PASSIF_PR_PROVISIONS"));
- listPassif.add(passifTab.get("PASSIF_PROVISIONS"));
- listPassif.add(new Bilan("SOUS-TOTAL (2)","soustotal",passifTab.get("PASSIF_PR_PROVISIONS").getTotal(),"0"));
- listPassif.add(passifTab.get("PASSIF_DETTES"));
- listPassif.add(passifTab.get("PASSIF_DETTES_EMPRUNTS"));
- listPassif.add(passifTab.get("PASSIF_DETTES_AVANCES"));
- listPassif.add(passifTab.get("PASSIF_DETTES_FOURNISSEURS"));
- listPassif.add(passifTab.get("PASSIF_DETTES_FISCALES"));
- listPassif.add(passifTab.get("PASSIF_DETTES_IMMOBILISATIONS"));
- listPassif.add(passifTab.get("PASSIF_DETTES_AUTRES_DETTES"));
- listPassif.add(passifTab.get("PASSIF_DETTES_PCA"));
- listPassif.add(new Bilan("SOUS-TOTAL (3)","soustotal",passifTab.get("PASSIF_DETTES").getTotal(),"0"));
- listPassif.add(passifTab.get("PASSIF"));
+ progressBar.getProgressBar().setString("90% : Création des tableaux");
+ progressBar.getProgressBar().setValue(90);
+ /**
+ * Ajout des données dans le model
+ */
+ /** ACTIF */
+ List<Bilan> listActif = new LinkedList<Bilan>();
+ listActif.add(actifTab.get("ACTIF_IMMOBILISE"));
+ listActif.add(actifTab.get("ACTIF_IMMOBILISE_INCORPOREL"));
+ listActif.add(actifTab.get("ACTIF_IMMOBILISE_CORPOREL"));
+ listActif.add(actifTab.get("ACTIF_IMMOBILISE_FINANCIER"));
+ listActif.add(new Bilan("SOUS-TOTAL (1)", "soustotal", actifTab.get("ACTIF_IMMOBILISE").getTotal(), actifTab.get("ACTIF_IMMOBILISE").getDepreciation()));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_STOCK"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_AVANCES"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_CREANCES"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_VMP"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_CCA"));
+ listActif.add(new Bilan("SOUS-TOTAL (2)", "soustotal", actifTab.get("ACTIF_CIRCULANT").getTotal(), actifTab.get("ACTIF_CIRCULANT").getDepreciation()));
+ listActif.add(actifTab.get("ACTIF"));
- progressBar.getProgressBar().setString("90% : Opération terminée");
- progressBar.getProgressBar().setValue(90);
- // Création du modèle à partir de la liste précédement créée
- modelBilanPassif.setData(listPassif);
- progressBar.getProgressBar().setValue(95);
- modelBilanPassif.fireTableDataChanged();
- progressBar.getProgressBar().setValue(100);
- progressBar.getProgressBarFrame().dispose();
+ // Création du modèle à partir de la liste précédement créée
+ modelBilanActif.setData(listActif);
+ modelBilanActif.fireTableDataChanged();
+
+ /** PASSIF */
+ List<Bilan> listPassif = new LinkedList<Bilan>();
+ listPassif.add(passifTab.get("PASSIF_CAPITAUX"));
+ listPassif.add(passifTab.get("PASSIF_CP_CAPITAL"));
+ listPassif.add(passifTab.get("PASSIF_CP_RESULTAT"));
+ listPassif.add(passifTab.get("PASSIF_CP_RESERVES"));
+ listPassif.add(passifTab.get("PASSIF_CP_RAN"));
+ listPassif.add(passifTab.get("PASSIF_CP_SUBVENTION"));
+ listPassif.add(passifTab.get("PASSIF_CP_PROVISION"));
+ listPassif.add(new Bilan("SOUS-TOTAL (1)", "soustotal", passifTab.get("PASSIF_CAPITAUX").getTotal(), "0"));
+ listPassif.add(passifTab.get("PASSIF_PR_PROVISIONS"));
+ listPassif.add(passifTab.get("PASSIF_PROVISIONS"));
+ listPassif.add(new Bilan("SOUS-TOTAL (2)", "soustotal", passifTab.get("PASSIF_PR_PROVISIONS").getTotal(), "0"));
+ listPassif.add(passifTab.get("PASSIF_DETTES"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_EMPRUNTS"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_AVANCES"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_FOURNISSEURS"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_FISCALES"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_IMMOBILISATIONS"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_AUTRES_DETTES"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_PCA"));
+ listPassif.add(new Bilan("SOUS-TOTAL (3)", "soustotal", passifTab.get("PASSIF_DETTES").getTotal(), "0"));
+ listPassif.add(passifTab.get("PASSIF"));
+
+ progressBar.getProgressBar().setString("90% : Opération terminée");
+ progressBar.getProgressBar().setValue(90);
+ // Création du modèle à partir de la liste précédement créée
+ modelBilanPassif.setData(listPassif);
+ progressBar.getProgressBar().setValue(95);
+ modelBilanPassif.fireTableDataChanged();
+ progressBar.getProgressBar().setValue(100);
+ progressBar.getProgressBarFrame().dispose();
}
}.start();
@@ -497,7 +451,7 @@
*/
private void initComboBoxPeriod() {
// Recherche la liste de toutes les périodes
- List<PeriodDTO> periodes = Main.getContext().getDataManager().getPeriodes();
+ List<PeriodDTO> periodes = LimaContext.getContext().getDataManager().getPeriodes();
// Model pour les périodes
Vector<PeriodDTO> v = new Vector<PeriodDTO>();
// On ajoute un élément null pour permettre d'afficher toutes les périodes
@@ -507,15 +461,12 @@
v.addElement(period);
//v.addAll(period.getChildren());
}
-
+
comboBoxPeriod.setModel(new DefaultComboBoxModel(v));
comboBoxPeriod.setRenderer(PeriodComboBoxRenderer.getInstance());
periodPanel.add(comboBoxPeriod);
periodPanel.validate();
}
-
-
-
}
\ No newline at end of file
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ClosureViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ClosureViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ClosureViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,6 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import static org.nuiton.i18n.I18n._;
import org.chorem.lima.combobox.renderer.PeriodClosureComboBoxRenderer;
import org.chorem.lima.dto.PeriodDTO;
@@ -28,7 +29,6 @@
import org.chorem.lima.dto.TransactionDTO;
import org.chorem.lima.dto.util.TriPeriodAsc;
import org.chorem.lima.dto.util.TriPeriodDesc;
-import org.chorem.lima.Main;
import org.chorem.lima.table.model.ClosureTableModel;
import org.chorem.lima.util.Util;
import org.jdesktop.swingx.JXTable;
@@ -42,8 +42,8 @@
import java.util.Vector;
import org.jdesktop.swingx.decorator.*;
-
+
/**
* Permet l'affichage du tableau avec les périodes mensuelles.
*
@@ -56,66 +56,64 @@
*/
private static final Log log = LogFactory.getLog(ClosureViewImpl.class);
private final JXTable table;
- private JComboBox comboBoxPeriod = new JComboBox ();
+ private JComboBox comboBoxPeriod = new JComboBox();
private final ClosureTimeSpanForm form;
private final AddPeriod addPeriodForm;
private static boolean blockPeriod;
- private JComboBox comboBoxBeginPeriod = new JComboBox ();
- private JComboBox comboBoxEndPeriod = new JComboBox ();
+ private JComboBox comboBoxBeginPeriod = new JComboBox();
+ private JComboBox comboBoxEndPeriod = new JComboBox();
/**
* Constructor
*/
- public ClosureViewImpl () {
+ public ClosureViewImpl() {
// Initialisation du choix pour les périodes
initComboBoxPeriod();
/** Set Period model */
// Création du model pour le tableau
- table = new JXTable(Main.getContext().getDataManager().getClosureModel());
+ table = new JXTable(LimaContext.getContext().getDataManager().getClosureModel());
table.setRowHeight(24);
// Permet d'alterner les couleurs des lignes pour le tableau
table.setHighlighters(HighlighterFactory.createAlternateStriping());
// Definition de la selection possible sur les lignes
table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
table.setColumnControlVisible(true);
-
+
/**
* Ajout d'un listener lorsque l'utilisateur change de période.
*/
- comboBoxPeriod.addItemListener(new ItemListener()
- {
+ comboBoxPeriod.addItemListener(new ItemListener() {
@Override
public void itemStateChanged(ItemEvent e) {
// Récupère la période master
PeriodDTO periodMaster = (PeriodDTO) comboBoxPeriod.getSelectedItem();
- Filter[] filterArray = { new PatternFilter("(.*"+(periodMaster.getBegin().getYear()+1900)+".*)|(.*Final.*)", 0, 0) };
+ Filter[] filterArray = {new PatternFilter("(.*" + (periodMaster.getBegin().getYear() + 1900) + ".*)|(.*Final.*)", 0, 0)};
FilterPipeline filters = new FilterPipeline(filterArray);
table.setFilters(filters);
}
});
// Récupère la période master (celle de l'exercice)
/**
- PeriodDTO periodMaster = (PeriodDTO) comboBoxPeriod.getSelectedItem();
- // Définition du tri avec une expression régulière
- Filter[] filterArray = { new PatternFilter("(.*"+(periodMaster.getBegin().getYear()+1900)+".*)|(.*Final.*)", 0, 0) };
- FilterPipeline filters = new FilterPipeline(filterArray);
- // Applique le tri
- table.setFilters(filters);
- */
+ PeriodDTO periodMaster = (PeriodDTO) comboBoxPeriod.getSelectedItem();
+ // Définition du tri avec une expression régulière
+ Filter[] filterArray = { new PatternFilter("(.*"+(periodMaster.getBegin().getYear()+1900)+".*)|(.*Final.*)", 0, 0) };
+ FilterPipeline filters = new FilterPipeline(filterArray);
+ // Applique le tri
+ table.setFilters(filters);
+ */
// Ajout du tableau dans l'UI
getClosureScrollPane().setViewportView(table);
/**
* Initialisation du formulaire pour bloquer ou débloquer une période.
*/
- form = Main.getContext().getMainUI().getClosureTimeSpanForm();
+ form = LimaContext.getContext().getMainUI().getClosureTimeSpanForm();
form.getOkButton().addActionListener(new ActionListener() {
@Override
- public void actionPerformed(ActionEvent e)
- {
+ public void actionPerformed(ActionEvent e) {
updatePeriod();
}
});
@@ -123,11 +121,10 @@
/**
* Initialisation du formulaire pour ajouter un exercice
*/
- addPeriodForm = Main.getContext().getMainUI().getAddPeriod();
+ addPeriodForm = LimaContext.getContext().getMainUI().getAddPeriod();
addPeriodForm.getOkButton().addActionListener(new ActionListener() {
@Override
- public void actionPerformed(ActionEvent e)
- {
+ public void actionPerformed(ActionEvent e) {
addPeriod();
}
});
@@ -139,12 +136,12 @@
* Cette méthode permet de charger les périodes (annuelles) pour choisir
* les périodes mensuelles à afficher dans le tableau.
*/
- public void initComboBoxPeriod () {
+ public void initComboBoxPeriod() {
/**
* Charge pour le JComboBox le choix des périodes (exercices) à afficher.
*/
// Récupère les périodes
- List<PeriodDTO> periodes = Main.getContext().getDataManager().getPeriodes();
+ List<PeriodDTO> periodes = LimaContext.getContext().getDataManager().getPeriodes();
// Pour chaque période
Vector<PeriodDTO> v = new Vector<PeriodDTO>();
for (PeriodDTO period : periodes) {
@@ -163,8 +160,7 @@
* plusieurs périodes.
*/
@Override
- public void initBlockForm ()
- {
+ public void initBlockForm() {
blockPeriod = true;
form.setTitle(_("lima.ui.block.timespan"));
initComboBoxForm();
@@ -176,8 +172,7 @@
* Initialise le formulaire pour débloquer des périodes mensuelles.
*/
@Override
- public void initUnblockForm ()
- {
+ public void initUnblockForm() {
blockPeriod = false;
form.setTitle(_("lima.ui.unblock.timespan"));
initComboBoxForm();
@@ -194,7 +189,7 @@
* Charge pour les JComboBox le choix des périodes mensuelles à bloquer.
*/
// Récupère les périodes
- List<PeriodDTO> periodes = Main.getContext().getDataManager().getPeriodes();
+ List<PeriodDTO> periodes = LimaContext.getContext().getDataManager().getPeriodes();
Vector<PeriodDTO> v = new Vector<PeriodDTO>();
// Récupère la période annuelle sélectionnée dans la comboBox
@@ -202,9 +197,8 @@
// Parcours de toutes les périodes pour trouver la période master
for (PeriodDTO period : periodes) {
- if ( period.equals(periodMaster) )
- {
- v.addAll(period.getChildren());
+ if (period.equals(periodMaster)) {
+ v.addAll(period.getChildren());
}
}
@@ -228,8 +222,8 @@
List<PeriodDTO> listPeriod = getSelectedPeriod();
// Parcours du vecteur
comboBoxBeginPeriod.setSelectedItem(listPeriod.get(0));
- comboBoxEndPeriod.setSelectedItem(listPeriod.get((listPeriod.size()-1)));
- }
+ comboBoxEndPeriod.setSelectedItem(listPeriod.get((listPeriod.size() - 1)));
+ }
}
@@ -241,23 +235,22 @@
log.debug("addPeriod : ");
//Get form data
}
- PeriodDTO periodCurrent = Main.getContext().getDataManager().getCurrentPeriod();
- List<StatusDTO> status = Main.getContext().getDataManager().getStatus();
- Date begin = Util.InitDateFirstDayMonth(new Date(periodCurrent.getBegin().getYear()+1,0,1));
- Date end = Util.InitDateEndDayMonth(new Date(periodCurrent.getBegin().getYear()+1,11,1));
- PeriodDTO period = new PeriodDTO("","",begin,end,null,null,status.get(3));
+ PeriodDTO periodCurrent = LimaContext.getContext().getDataManager().getCurrentPeriod();
+ List<StatusDTO> status = LimaContext.getContext().getDataManager().getStatus();
+ Date begin = Util.InitDateFirstDayMonth(new Date(periodCurrent.getBegin().getYear() + 1, 0, 1));
+ Date end = Util.InitDateEndDayMonth(new Date(periodCurrent.getBegin().getYear() + 1, 11, 1));
+ PeriodDTO period = new PeriodDTO("", "", begin, end, null, null, status.get(3));
// Création des enfants periodes
List<PeriodDTO> listPeriodChild = new LinkedList<PeriodDTO>();
- for (int i=0 ; i<12 ; i++)
- {
- begin = Util.InitDateFirstDayMonth(new Date(periodCurrent.getBegin().getYear()+1,i,1));
- end = Util.InitDateEndDayMonth(new Date(periodCurrent.getBegin().getYear()+1,i,1));
- PeriodDTO periodChild = new PeriodDTO("",Integer.toString(begin.getYear()),begin,end,null,period,status.get(3));
+ for (int i = 0; i < 12; i++) {
+ begin = Util.InitDateFirstDayMonth(new Date(periodCurrent.getBegin().getYear() + 1, i, 1));
+ end = Util.InitDateEndDayMonth(new Date(periodCurrent.getBegin().getYear() + 1, i, 1));
+ PeriodDTO periodChild = new PeriodDTO("", Integer.toString(begin.getYear()), begin, end, null, period, status.get(3));
listPeriodChild.add(periodChild);
}
period.setChildren(listPeriodChild);
ClosureTableModel closureModel = (ClosureTableModel) table.getModel();
- closureModel.addPeriod(period,status);
+ closureModel.addPeriod(period, status);
}
/**
@@ -272,50 +265,46 @@
*/
protected void updatePeriod() {
// Liste des status
- List<StatusDTO> status = Main.getContext().getDataManager().getStatus();
+ List<StatusDTO> status = LimaContext.getContext().getDataManager().getStatus();
// Liste des transactions
- List<TransactionDTO> transactions = Main.getContext().getDataManager().getTransactionModel().getData();
+ List<TransactionDTO> transactions = LimaContext.getContext().getDataManager().getTransactionModel().getData();
// Chargement du model
ClosureTableModel closureModel = (ClosureTableModel) table.getModel();
/**
* Récupère l'intervalle des périodes sélectionnées
*/
- PeriodDTO periodBegin = (PeriodDTO)comboBoxBeginPeriod.getSelectedItem();
- PeriodDTO periodEnd = (PeriodDTO)comboBoxEndPeriod.getSelectedItem();
+ PeriodDTO periodBegin = (PeriodDTO) comboBoxBeginPeriod.getSelectedItem();
+ PeriodDTO periodEnd = (PeriodDTO) comboBoxEndPeriod.getSelectedItem();
// Exercice
- PeriodDTO periodMaster = (PeriodDTO)comboBoxPeriod.getSelectedItem();
+ PeriodDTO periodMaster = (PeriodDTO) comboBoxPeriod.getSelectedItem();
// Si block période, on trie la liste en croissant ou bien décroissant
List<PeriodDTO> listPeriod = periodMaster.getChildren();
- if ( blockPeriod )
- {
+ if (blockPeriod) {
Collections.sort(listPeriod, new TriPeriodAsc());
} else {
Collections.sort(listPeriod, new TriPeriodDesc());
- }
+ }
// Pour toutes les périodes mensuelles
- for (PeriodDTO period : listPeriod)
- {
- if ( ( (period.getBegin().after(periodBegin.getBegin()))
+ for (PeriodDTO period : listPeriod) {
+ if (((period.getBegin().after(periodBegin.getBegin()))
&& (period.getBegin().before(periodEnd.getBegin())))
|| (period.equals(periodBegin))
- || (period.equals(periodEnd)))
- {
- if (log.isDebugEnabled()) {
- log.debug("updatePeriod : "+period.getIdName()+" : "
- +blockPeriod);
+ || (period.equals(periodEnd))) {
+ if (log.isDebugEnabled()) {
+ log.debug("updatePeriod : " + period.getIdName() + " : "
+ + blockPeriod);
}
/**
* Détection des messages d'erreur
*/
- String message = closureModel.updatePeriod(period,blockPeriod,status,transactions);
+ String message = closureModel.updatePeriod(period, blockPeriod, status, transactions);
ErrorMessage.showMessage(message);
}
}
// On trie par ordre croissant si c'était en décroissant, sinon l'affichage
// dans les vues est bouleversé. (les périodes seront affichées dans l'ordre
// décroissant).
- if ( !blockPeriod )
- {
+ if (!blockPeriod) {
Collections.sort(listPeriod, new TriPeriodAsc());
}
form.setVisible(false);
@@ -328,16 +317,14 @@
*
* @return liste des périodes sélectionnées
*/
- protected List<PeriodDTO> getSelectedPeriod()
- {
+ protected List<PeriodDTO> getSelectedPeriod() {
// récupère les lignes sélectionnées
int viewIndex[] = table.getSelectedRows();
// chargement du model (tableau des périodes)
ClosureTableModel closureModel = (ClosureTableModel) table.getModel();
LinkedList<PeriodDTO> listPeriod = new LinkedList<PeriodDTO>();
// Pour chaque ligne sélectionnée
- for (int i : viewIndex)
- {
+ for (int i : viewIndex) {
int modelIndex = table.convertRowIndexToModel(i);
listPeriod.add(closureModel.getRow(modelIndex));
}
@@ -345,8 +332,7 @@
}
- public void initAddPeriod ()
- {
+ public void initAddPeriod() {
addPeriodForm.setTitle(_("lima.menubar.closure.addPeriod"));
addPeriodForm.setVisible(true);
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/CriteriaWidgetImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/CriteriaWidgetImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/CriteriaWidgetImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,8 +21,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import static org.nuiton.i18n.I18n._;
-import org.chorem.lima.Main;
import org.chorem.lima.combobox.JWideComboBox;
import org.chorem.lima.combobox.model.AccountComboBoxModel;
import org.chorem.lima.combobox.renderer.AccountComboBoxRenderer;
@@ -162,7 +162,7 @@
@Override
protected void removeCriteriaWidget() {
- Main.getContext().getMainUI().getSearchView().removeCriteriaWidget(this);
+ LimaContext.getContext().getMainUI().getSearchView().removeCriteriaWidget(this);
}
/**
@@ -180,7 +180,7 @@
*/
public JXDatePicker getDatePicker() {
if (datePicker == null) {
- datePicker = new JXDatePicker(new Date(), Main.getContext().getConfig().getLocale());
+ datePicker = new JXDatePicker(new Date(), LimaContext.getContext().getConfig().getLocale());
}
return datePicker;
}
@@ -199,7 +199,7 @@
public JComboBox getAccountCombo() {
if (accountCombo == null) {
List<AccountDTO> accounts = ServiceHelper.getAllFlatAccount(
- Main.getContext().getDataManager().getAccountModel().getData());
+ LimaContext.getContext().getDataManager().getAccountModel().getData());
Vector<AccountDTO> v = new Vector<AccountDTO>(accounts);
AccountComboBoxModel model = new AccountComboBoxModel(v);
accountCombo = new JWideComboBox(model);
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ExportViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ExportViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ExportViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -46,34 +46,29 @@
private static XMLExport xmlExport = new XMLExport();
private static CSVExport cvsExport;
- /**
- * Constructor
- */
public ExportViewImpl(String type) {
// chooser est le JFileChooser
// Ouverture de la boite de dialogue
chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
- if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION){
+ if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
// Récupère le nom du fichier
String fichier = chooser.getSelectedFile().getName();
// Récupère l'adresse du fichier
String cheminFichier = chooser.getSelectedFile().getAbsolutePath();
if (log.isDebugEnabled()) {
- log.debug("Save file : "+fichier+" ("+cheminFichier+")");
+ log.debug("Save file : " + fichier + " (" + cheminFichier + ")");
}
String result = "";
/**
* Action à appeler suivant le choix
*/
- if (type.equals("account"))
- {
+ if (type.equals("account")) {
// Exporter les comptes au format Xml
result = xmlExport.exportAccount(cheminFichier);
} else {
- if (type.equals("all_csv"))
- {
+ if (type.equals("all_csv")) {
// Exporter toutes les données au format csv
cvsExport = new CSVExport(cheminFichier);
result = cvsExport.exportDatas();
@@ -86,16 +81,15 @@
/**
* Message de sortie : succès ou erreur
*/
- if ( result.equals(ServiceHelper.RESPOND_SUCCESS))
- {
+ if (result.equals(ServiceHelper.RESPOND_SUCCESS)) {
Util.showMessageDialog(_("lima.import.success"), _("lima.success"), JOptionPane.INFORMATION_MESSAGE);
} else {
Util.showMessageDialog(_("lima.import.error"), _("lima.error"), JOptionPane.ERROR_MESSAGE);
}
-
+
if (log.isDebugEnabled()) {
- log.debug("File saved : "+fichier+" ("+cheminFichier+")");
+ log.debug("File saved : " + fichier + " (" + cheminFichier + ")");
}
// Si il y a eu une erreur
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ImportViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ImportViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ImportViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,7 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.imports.CSVImport;
import org.chorem.lima.imports.CSVImportEBP;
import org.chorem.lima.imports.XMLImport;
@@ -31,6 +31,7 @@
import org.chorem.lima.service.util.ServiceHelper;
import static org.nuiton.i18n.I18n._;
+
import javax.swing.*;
/**
@@ -45,56 +46,45 @@
*/
private static final Log log = LogFactory.getLog(ImportViewImpl.class);
- private final FileService fileService = ServiceFactory.getServiceFactory().getFileService();
-
- private final XMLImport xmlImport = new XMLImport();
-
-
- /**
- * Constructor
- */
- public ImportViewImpl(String type)
- {
+ public ImportViewImpl(String type) {
// chooser est le JFileChooser
// Ouverture de la boite de dialogue
chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
- if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION){
+ if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
String fichier = chooser.getSelectedFile().getName();
String cheminFichier = chooser.getSelectedFile().getAbsolutePath();
if (log.isDebugEnabled()) {
- log.debug("Open file : "+fichier+" ("+cheminFichier+")");
+ log.debug("Open file : " + fichier + " (" + cheminFichier + ")");
}
String result = "";
/**
* Action à appeler suivant le choix
*/
-
- if (type.equals("account"))
- {
+
+ XMLImport xmlImport = new XMLImport();
+ if (type.equals("account")) {
// Importer les comptes au format Xml
result = xmlImport.importAccount(cheminFichier);
} else {
- if (type.equals("journal"))
- {
+ if (type.equals("journal")) {
// Importer les journaux au format Xml
result = xmlImport.importJournal(cheminFichier);
} else {
- if (type.equals("all_csv"))
- {
+ if (type.equals("all_csv")) {
// Importer les données au format csv
CSVImport cvsimport = new CSVImport(cheminFichier);
result = cvsimport.importDatas();
} else {
- if (type.equals("all_csv_ebp"))
- {
+ if (type.equals("all_csv_ebp")) {
// Importer les données au format csv
CSVImportEBP cvsimport = new CSVImportEBP(cheminFichier);
result = cvsimport.importDatas();
} else {
// Importer les données au format Xml
+ FileService fileService = ServiceFactory.getServiceFactory().getFileService();
result = fileService.importFile(cheminFichier);
- Main.getContext().getDataManager().reset();
+ LimaContext.getContext().getDataManager().reset();
}
}
}
@@ -103,16 +93,15 @@
/**
* Message de sortie : succès ou erreur
*/
- if ( result.equals(ServiceHelper.RESPOND_SUCCESS))
- {
+ if (result.equals(ServiceHelper.RESPOND_SUCCESS)) {
Util.showMessageDialog(_("lima.import.success"), _("lima.success"), JOptionPane.INFORMATION_MESSAGE);
} else {
Util.showMessageDialog(_("lima.import.error"), _("lima.error"), JOptionPane.ERROR_MESSAGE);
}
if (log.isDebugEnabled()) {
- log.debug("File opened : "+fichier+" ("+cheminFichier+")");
- }
+ log.debug("File opened : " + fichier + " (" + cheminFichier + ")");
+ }
}
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/JournalViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/JournalViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/JournalViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,8 +21,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import static org.nuiton.i18n.I18n._;
-import org.chorem.lima.Main;
import org.chorem.lima.dto.JournalDTO;
import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.table.model.JournalTableModel;
@@ -46,18 +46,15 @@
private final JXTable table;
private boolean isAddForm;
- /**
- * Constructor
- */
public JournalViewImpl() {
/** Set Journal model */
- table = new JXTable(Main.getContext().getDataManager().getJournalModel());
+ table = new JXTable(LimaContext.getContext().getDataManager().getJournalModel());
table.setRowHeight(24);
table.setHighlighters(HighlighterFactory.createAlternateStriping());
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.setColumnControlVisible(true);
getJournalScrollPane().setViewportView(table);
- form = Main.getContext().getMainUI().getJournalForm();
+ form = LimaContext.getContext().getMainUI().getJournalForm();
form.getOkButton().addActionListener(new ActionListener() {
@Override
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/LetteringViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/LetteringViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/LetteringViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,7 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.combobox.JWideComboBox;
import org.chorem.lima.combobox.model.AccountComboBoxModel;
import org.chorem.lima.combobox.renderer.AccountComboBoxRenderer;
@@ -49,24 +49,18 @@
*/
private static final Log log = LogFactory.getLog(LetteringViewImpl.class);
private final JWideComboBox accountComboBox;
- private final JWideComboBox sinceComboBox;
- private final JWideComboBox toComboBox;
- private final JXTable table;
- /**
- *
- */
public LetteringViewImpl() {
/** Calling services */
List<AccountDTO> accounts = ServiceHelper.getAllFlatAccount(
- Main.getContext().getDataManager().getAccountModel().getData());
+ LimaContext.getContext().getDataManager().getAccountModel().getData());
/** Creating accounting model */
Vector<AccountDTO> v1 = new Vector<AccountDTO>(accounts);
AccountComboBoxModel model = new AccountComboBoxModel(v1);
accountComboBox = new JWideComboBox();
accountComboBox.setPreferredSize(new Dimension(200, 25));
accountComboBox.setModel(model);
- Main.getContext().getDataManager().getAccountModel().addPropertyChangeListener(model);
+ LimaContext.getContext().getDataManager().getAccountModel().addPropertyChangeListener(model);
accountComboBox.setRenderer(AccountComboBoxRenderer.getInstance());
accountPanel.add(accountComboBox);
@@ -79,25 +73,25 @@
precedentButton.setIcon(backIcon);
/** Creating period model */
- List<PeriodDTO> periodes = Main.getContext().getNeogiaFactory().getPeriodService().getAllPeriod(
- Main.getContext().getNeogiaFactory().getStatusService().getAllStatus()
+ List<PeriodDTO> periodes = LimaContext.getContext().getNeogiaFactory().getPeriodService().getAllPeriod(
+ LimaContext.getContext().getNeogiaFactory().getStatusService().getAllStatus()
);
Vector<PeriodDTO> v2 = new Vector<PeriodDTO>();
for (PeriodDTO period : periodes) {
v2.addElement(period);
v2.addAll(period.getChildren());
}
- sinceComboBox = new JWideComboBox(v2);
+ JWideComboBox sinceComboBox = new JWideComboBox(v2);
sinceComboBox.setRenderer(PeriodComboBoxRenderer.getInstance());
sinceComboBox.setPreferredSize(new Dimension(200, 25));
sincePanel.add(sinceComboBox);
- toComboBox = new JWideComboBox(v2);
+ JWideComboBox toComboBox = new JWideComboBox(v2);
toComboBox.setRenderer(PeriodComboBoxRenderer.getInstance());
toComboBox.setPreferredSize(new Dimension(200, 25));
toPanel.add(toComboBox);
- table = new JXTable();
+ JXTable table = new JXTable();
tablePanel.setViewportView(table);
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/MainView.jaxx
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/MainView.jaxx 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/MainView.jaxx 2009-11-08 12:04:50 UTC (rev 2734)
@@ -1,108 +1,159 @@
-<Application title="lima.title" onWindowClosing="windowClosing()"
- defaultCloseOperation="do_nothing_on_close" resizable="true" width="800" height="600"
- extendedState='{this.MAXIMIZED_BOTH}' >
- <style source="css/lima.css" />
- <script>
- protected void onChangeView() {};
- protected void showAccountView() {};
- protected void showAccueilView() {};
- protected void showAddPeriod() {};
- protected void showBalanceView() {};
- protected void showBilanView() {};
- protected void showClosurePeriodView() {};
- protected void showClosureTimeSpanView() {};
- protected void showClosureView() {};
- protected void showExportView(String type) {};
- protected void showImportView(String type) {};
- protected void showJournalView() {};
- protected void showLetteringView() {};
- protected void showReportsView() {};
- protected void showResultView() {};
- protected void showSearchView() {};
- protected void showTransactionView() {};
- protected void windowClosing() {};
+<JFrame title="lima.title" onWindowClosing="getHandler().close(this)"
+ defaultCloseOperation="do_nothing_on_close" resizable="true" width="800" height="600"
+ extendedState='{this.MAXIMIZED_BOTH}'>
+ <style source="css/lima.css"/>
+ <script><![CDATA[
+import java.util.Locale;
+import org.chorem.lima.LimaConfig;
+
+public LimaConfig getConfig() {
+ return getContextValue(LimaConfig.class);
+}
+
+public MainViewHandler getHandler() {
+ return getContextValue(MainViewHandler.class);
+}
+
+public boolean acceptLocale(Locale l, String expected) {
+ return l != null && l.toString().equals(expected);
+}
+
+protected void onChangeView() {}
+protected void showAccountView() {}
+protected void showAccueilView() {}
+protected void showAddPeriod() {}
+protected void showBalanceView() {}
+protected void showBilanView() {}
+protected void showClosurePeriodView() {}
+protected void showClosureTimeSpanView() {}
+protected void showClosureView() {}
+protected void showExportView(String type) {}
+protected void showImportView(String type) {}
+protected void showJournalView() {}
+protected void showLetteringView() {}
+protected void showReportsView() {}
+protected void showResultView() {}
+protected void showSearchView() {}
+protected void showTransactionView() {}
+ ]]>
</script>
<JMenuBar>
+
<JMenu text="lima.menu.file">
- <JMenu text="lima.import" icon='{createImageIcon("action/import-element.png")}'>
+
+ <JMenu text="lima.import" actionIcon='import-element'>
<JMenuItem text="lima.import.all" onActionPerformed='showImportView("all")'/>
<JMenuItem text="lima.import.all.csv" onActionPerformed='showImportView("all_csv")'/>
<JMenuItem text="lima.import.all.csv.ebp" onActionPerformed='showImportView("all_csv_ebp")'/>
<JMenuItem text="lima.import.account" onActionPerformed='showImportView("account")'/>
<JMenuItem text="lima.import.journal" onActionPerformed='showImportView("journal")'/>
- </JMenu>
- <JMenu text="lima.export" icon='{createImageIcon("action/import-element.png")}'>
+ </JMenu>
+
+ <JMenu text="lima.export" actionIcon='export-element'>
<JMenuItem text="lima.export.all" onActionPerformed='showExportView("all")'/>
<JMenuItem text="lima.export.all.csv" onActionPerformed='showExportView("all_csv")'/>
<JMenuItem text="lima.export.account" onActionPerformed='showExportView("account")'/>
- </JMenu>
+ </JMenu>
<JSeparator/>
+
<JMenuItem text="lima.print"
- icon='{createImageIcon("print.png")}'/>
+ actionIcon='print'/>
<JSeparator/>
+
<JMenuItem mnemonic="{'Q'}"
- icon='{createImageIcon("action/quit.png")}'
- text="lima.quit" onActionPerformed='windowClosing()'/>
+ actionIcon='quit'
+ text="lima.quit" onActionPerformed='getHandler().close(this)'/>
</JMenu>
+
<JMenu text="lima.edit">
<JMenuItem text="lima.journal" onActionPerformed='showJournalView()'
- icon='{createImageIcon("journal.png")}'/>
+ actionIcon='journal'/>
<JMenuItem text="lima.account" onActionPerformed='showAccountView()'
- icon='{createImageIcon("account.png")}'/>
+ actionIcon='account'/>
<JMenuItem text="lima.find.transaction" onActionPerformed='showSearchView()'
- icon='{createImageIcon("search.png")}'/>
- <JMenuItem id="config"/>
+ actionIcon='search'/>
+ <JMenuItem text="lima.preferences"
+ actionIcon="config" onActionPerformed="getHandler().showConfig(this)"/>
</JMenu>
+
<JMenu text="lima.daily">
<JMenuItem text="lima.edit.transaction" onActionPerformed='showTransactionView()'
- icon='{createImageIcon("transaction.png")}'/>
+ actionIcon='transaction'/>
<JMenuItem text="lima.lettering" onActionPerformed='showLetteringView()'
- icon='{createImageIcon("lettering.png")}'/>
+ actionIcon='lettering'/>
</JMenu>
+
<JMenu text="lima.view">
<JCheckBoxMenuItem id="viewFlatten" text="lima.view.flatten" onItemStateChanged='onChangeView()'
selected="false"
- icon='{createImageIcon("view.png")}'/>
+ actionIcon='view'/>
</JMenu>
+
<JMenu text="lima.reports">
- <JMenuItem text="lima.reports" onActionPerformed='showReportsView()'
- icon='{createImageIcon("rapport.png")}'/>
+ <JMenuItem text="lima.reports" onActionPerformed='showReportsView()' actionIcon='rapport'/>
<JMenuItem text="lima.balance" onActionPerformed='showBalanceView()'/>
<JMenuItem text="lima.bilan" onActionPerformed='showBilanView()'/>
<JMenuItem text="lima.result" onActionPerformed='showResultView()'/>
</JMenu>
+
<JMenu text="lima.menubar.closure">
+
<JMenuItem text="lima.menubar.closure.addPeriod" onActionPerformed='showAddPeriod()'/>
+
<JMenuItem text="lima.menubar.closure.timespan" onActionPerformed='showClosureTimeSpanView()'
- icon='{createImageIcon("closure-timespan.png")}'/>
+ actionIcon='closure-timespan'/>
+
<JMenuItem text="lima.menubar.closure.period" onActionPerformed='showClosurePeriodView()'/>
+
<JMenuItem text="lima.menubar.closure.listperiod" onActionPerformed='showClosureView()'
- icon='{createImageIcon("closure.png")}'/>
+ actionIcon='closure'/>
</JMenu>
<JMenu text="lima.menu.help" mnemonic="{'H'}">
- <JMenuItem id="help"/>
- <JMenuItem id="site"/>
- <JMenuItem id="about"/>
- <JMenu id='i18nMenu'/>
- <!--JMenu text='lima.menu.help.i18n' mnemonic="{'L'}"
- icon='{createImageIcon("action/translate.png")}'>
- <JMenuItem id="i18n_fr"/>
- <JMenuItem id="i18n_en"/>
- </JMenu-->
+
+ <JMenuItem id="help" text='lima.menu.help.help' actionIcon="help"
+ onActionPerformed="getHandler().showHelp(this, null)"/>
+
+ <JMenuItem id="site" text='lima.menu.help.site' actionIcon="site"
+ onActionPerformed="getHandler().gotoSite(this)"/>
+
+ <JMenuItem id="about" text='lima.menu.help.about' actionIcon="about"
+ onActionPerformed="getHandler().showAbout(this)"/>
+
+ <JMenu text='lima.menu.help.i18n' mnemonic="{'L'}" actionIcon="translate">
+
+ <JMenuItem id="i18n_fr" actionIcon="i18n-fr" text='lima.menu.help.i18n.fr'
+ enabled='{!acceptLocale(getConfig().getLocale(), "fr_FR")}'
+ onActionPerformed="getHandler().changeLanguage(this, Locale.FRANCE)"/>
+
+ <JMenuItem id="i18n_en" actionIcon="i18n-uk" text='lima.menu.help.i18n.uk'
+ enabled='{!acceptLocale(getConfig().getLocale(), "en_GB")}'
+ onActionPerformed="getHandler().changeLanguage(this, Locale.UK)"/>
+
+ </JMenu>
</JMenu>
</JMenuBar>
- <Table insets='0,0,0,0'>
- <!-- le panel principal à surcharger selon le context -->
- <row fill="both" weightx="1" weighty="1">
- <cell>
- <JTabbedPane id="contentTabbedPane"/>
- </cell>
- </row>
- <!-- la barre de status -->
- <row>
- <cell fill="both">
- <org.nuiton.widget.StatusBar id='statusBar'/>
- </cell>
- </row>
- </Table>
-</Application>
+ <JPanel layout='{new BorderLayout()}'>
+
+ <JTabbedPane id="contentTabbedPane" constraints="BorderLayout.CENTER"/>
+
+ <jaxx.runtime.swing.StatusMessagePanel id='statusBar'
+ _help='"ui.main.statusBar"'
+ constraints="BorderLayout.SOUTH"/>
+ </JPanel>
+
+ <!--<Table insets='0,0,0,0'>-->
+ <!--<!– le panel principal à surcharger selon le context –>-->
+ <!--<row fill="both" weightx="1" weighty="1">-->
+ <!--<cell>-->
+ <!--<JTabbedPane id="contentTabbedPane"/>-->
+ <!--</cell>-->
+ <!--</row>-->
+ <!--<!– la barre de status –>-->
+ <!--<row>-->
+ <!--<cell fill="both">-->
+ <!--<org.nuiton.widget.StatusBar id='statusBar'/>-->
+ <!--</cell>-->
+ <!--</row>-->
+ <!--</Table>-->
+
+</JFrame>
Added: trunk/lima-main/src/main/java/org/chorem/lima/ui/MainViewHandler.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/MainViewHandler.java (rev 0)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/MainViewHandler.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -0,0 +1,264 @@
+package org.chorem.lima.ui;
+
+import jaxx.runtime.JAXXContext;
+import jaxx.runtime.swing.AboutPanel;
+import jaxx.runtime.swing.ErrorDialogUI;
+import jaxx.runtime.swing.editor.config.ConfigUI;
+import jaxx.runtime.swing.editor.config.ConfigUIBuilder;
+import jaxx.runtime.swing.editor.config.model.ConfigUIModel;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaConfig;
+import org.chorem.lima.LimaContext;
+import org.chorem.lima.Main;
+import static org.nuiton.i18n.I18n._;
+import static org.nuiton.i18n.I18n.n_;
+
+import java.awt.*;
+import java.net.URL;
+import java.util.Locale;
+
+/**
+ * User: chemit
+ * Date: 8 nov. 2009
+ * Time: 09:59:54
+ */
+public class MainViewHandler { //implements JAXXHelp {
+
+ /**
+ * to use log facility, just put in your code: log.info(\"...\");
+ */
+ static private Log log = LogFactory.getLog(MainViewHandler.class);
+
+ /**
+ * Methode pour initialiser l'ui principale sans l'afficher.
+ *
+ * @param rootContext le context applicatif
+ * @param fullscreen flag pour indiquer si on doit ouvrir l'ui en model console (pleine ecran).
+ * @return l'ui instancie et initialisee mais non visible encore
+ */
+ public MainView initUI(LimaContext rootContext, boolean fullscreen) {
+
+ // show main ui
+ final MainView ui = new MainViewImpl(rootContext);
+
+ LimaContext.MAIN_UI_ENTRY_DEF.setContextValue(rootContext, ui);
+
+ ErrorDialogUI.init(ui);
+
+ // set fullscreen propery on main ui
+ ui.getGraphicsConfiguration().getDevice().setFullScreenWindow(fullscreen ? ui : null);
+
+ return ui;
+ }
+
+ public void changeLanguage(MainView mainUI, Locale newLocale) {
+ LimaConfig config = mainUI.getConfig();
+
+ // sauvegarde de la nouvelle locale
+ config.setLocale(newLocale);
+
+ // rechargement i18n
+ LimaContext.get().initI18n();
+
+ // on recharge l'ui
+ reloadUI(LimaContext.get(), config.isFullScreen());
+ }
+
+ /**
+ * Ferme l'application.
+ *
+ * @param ui l'ui principale de l'application
+ */
+ public void close(MainView ui) {
+ log.info("Vradi quitting...");
+ boolean canContinue = ensureModification(ui);
+ if (!canContinue) {
+ return;
+ }
+ try {
+ ui.dispose();
+
+ Main.ShutdownHook.interrupted();
+ //LimaContext.get().close();
+ Runtime.getRuntime().halt(0);
+
+ } catch (Exception ex) {
+ log.error("error while closing " + ex.getMessage(), ex);
+ Runtime.getRuntime().halt(1);
+ }
+ }
+
+ /**
+ * Méthode pour changer de mode d'affichage.
+ * <p/>
+ * Si <code>fullscreen</code> est à <code>true</code> alors on passe en
+ * mode console (c'est à dire en mode plein écran exclusif), sinon on
+ * passe en mode fenetré normal.
+ *
+ * @param ui l'ui principale de l'application
+ * @param fullscreen le nouvel état requis.
+ */
+ public void changeScreen(MainView ui, final boolean fullscreen) {
+ boolean canContinue = ensureModification(ui);
+ if (!canContinue) {
+ return;
+ }
+
+ ui.getConfig().setFullscreen(fullscreen);
+
+ reloadUI(LimaContext.get(), fullscreen);
+ }
+
+ public void showConfig(JAXXContext context) {
+ MainView ui = getUI(context);
+ LimaConfig config = context.getContextValue(LimaConfig.class);
+ ConfigUIModel model = new ConfigUIModel(config);
+
+ // categorie repertoires
+ model.addCategory(
+ n_("lima.config.category.directories"),
+ n_("lima.config.category.directories.description"),
+ LimaConfig.Option.CONFIG_FILE);
+
+ // others
+ model.addCategory(
+ n_("lima.config.category.other"),
+ n_("lima.config.category.other.description"),
+ LimaConfig.Option.FULL_SCREEN,
+ LimaConfig.Option.LOCALE);
+
+ ConfigUI configUI = ConfigUIBuilder.newConfigUI(context, model, "lima.config.category.directories");
+
+ ConfigUIBuilder.showConfigUI(configUI, ui, false);
+ }
+
+ // @Override
+ public void showHelp(JAXXContext context, String helpId) {
+// MainView mainUI = getUI(context);
+//
+// ObserveHelpBroker helpBroker = context.getContextValue(ObserveHelpBroker.class);
+//
+// if (helpId == null) {
+// helpId = helpBroker.getDefaultID();
+// }
+// log.debug("show help " + helpId);
+// mainUI.getHelp().setCurrentID(helpId);
+//
+// mainUI.setContextValue(mainUI.getMode(), "oldMode");
+// mainUI.setMode(ObserveUIMode.HELP);
+ }
+
+ public void closeHelp(JAXXContext context) {
+// MainView mainUI = getUI(context);
+// ObserveUIMode oldMode = mainUI.getContextValue(ObserveUIMode.class, "oldMode");
+// if (oldMode == null) {
+// // on regarde si une base est chargee
+// ObserveDataContext dataContext = context.getContextValue(ObserveDataContext.class);
+// StorageService<?> mainStorage = dataContext.getStorage();
+//
+// if (mainStorage == null) {
+// oldMode = ObserveUIMode.NO_DB;
+// } else {
+// oldMode = ObserveUIMode.DB;
+// }
+// }
+// mainUI.setMode(oldMode);
+ }
+
+ public void gotoSite(JAXXContext rootContext) {
+
+ LimaConfig config = rootContext.getContextValue(LimaConfig.class);
+
+ URL siteURL = config.getOptionAsURL("application.site.url");
+
+ log.info("goto " + siteURL);
+ if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
+ try {
+ Desktop.getDesktop().browse(siteURL.toURI());
+ } catch (Exception ex) {
+ log.error(ex.getMessage(), ex);
+ ErrorDialogUI.showError(ex);
+ }
+ }
+ }
+
+ public void showAbout(MainView ui) {
+
+ AboutPanel about = new AboutPanel() {
+ @Override
+ public void buildTopPanel() {
+ setIconPath("/icons/lima.png");
+ super.buildTopPanel();
+ }
+ };
+ about.setTitle(_("lima.title.about"));
+ about.setAboutText(_("lima.about.message"));
+ about.setBottomText(ui.getConfig().getCopyrightText());
+// about.setIconPath("/icons/lima.png");
+ about.setLicenseFile("META-INF/lima-main-LICENSE.txt");
+ about.setThirdpartyFile("META-INF/lima-main-THIRD-PARTY.txt");
+ about.init();
+ about.showInDialog(ui, true);
+ }
+
+ /**
+ * Permet de recharger l'ui principale et de changer de le mode d'affichage.
+ *
+ * @param rootContext le contexte applicatif
+ * @param fullscreen le type de fenetre à reouvrir
+ */
+ protected void reloadUI(LimaContext rootContext, boolean fullscreen) {
+
+ // must remove all properties listener on config
+ rootContext.getContextValue(LimaConfig.class).removeJaxxPropertyChangeListener();
+
+ // scan main ui
+ MainView ui = getUI(rootContext);
+
+ if (ui != null) {
+
+ ErrorDialogUI.init(null);
+
+ LimaContext.MAIN_UI_ENTRY_DEF.removeContextValue(rootContext);
+
+ ui.dispose();
+
+ ui.setVisible(false);
+ }
+
+ ui = initUI(rootContext, fullscreen);
+
+ // show ui
+ ui.setVisible(true);
+ }
+
+ /**
+ * Test if there is some modification on screen,
+ *
+ * @param rootContext the context
+ * @return <code>true</code> if no more modification is detected
+ * @throws IllegalArgumentException if rootContext is null
+ */
+ protected boolean ensureModification(JAXXContext rootContext) throws IllegalArgumentException {
+ if (rootContext == null) {
+ throw new IllegalArgumentException("rootContext can not be null");
+ }
+ MainView ui = getUI(rootContext);
+ if (ui == null) {
+ // no ui, so no modification
+ return true;
+ }
+ // check ui is not modified
+ return true;
+ }
+
+ MainView getUI(JAXXContext context) {
+ if (context instanceof MainView) {
+ return (MainView) context;
+ }
+ MainView ui = LimaContext.MAIN_UI_ENTRY_DEF.getContextValue(context);
+ return ui;
+ }
+
+}
Property changes on: trunk/lima-main/src/main/java/org/chorem/lima/ui/MainViewHandler.java
___________________________________________________________________
Added: svn:keywords
+ "Author Date Id Revision HeadURL
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/MainViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/MainViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/MainViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -18,13 +18,12 @@
*/
package org.chorem.lima.ui;
+import jaxx.runtime.JAXXContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import static org.nuiton.i18n.I18n._;
-import org.chorem.lima.LimaContext;
-import org.chorem.lima.Main;
import org.chorem.lima.table.TransactionJXTable;
import org.chorem.lima.table.model.TransactionFlattenTableModel;
+import static org.nuiton.i18n.I18n._;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
@@ -43,8 +42,6 @@
private static final Log log = LogFactory.getLog(MainViewImpl.class);
private AccueilViewImpl accueilView;
private ClosureViewImpl closureView;
- private ImportViewImpl importView;
- private ExportViewImpl exportView;
private TransactionViewImpl transactionView;
private TransactionViewImpl searchResultView;
private JournalViewImpl journalView;
@@ -60,10 +57,6 @@
private BalanceViewImpl balanceView;
private AddPeriod addPeriod;
- /**
- * Ajax
- */
-
public AccueilViewImpl getAccueilView() {
if (accueilView == null) {
accueilView = new AccueilViewImpl();
@@ -121,12 +114,12 @@
}
public ExportViewImpl getExportView(String type) {
- exportView = new ExportViewImpl(type);
+ ExportViewImpl exportView = new ExportViewImpl(type);
return exportView;
}
public ImportViewImpl getImportView(String type) {
- importView = new ImportViewImpl(type);
+ ImportViewImpl importView = new ImportViewImpl(type);
return importView;
}
@@ -136,7 +129,7 @@
}
return journalForm;
}
-
+
public JournalView getJournalView() {
if (journalView == null) {
journalView = new JournalViewImpl();
@@ -187,8 +180,8 @@
}
/**
- * @param name
- * @param container
+ * @param name name of tab to show
+ * @param container the tab container
*/
private void showTab(String name, Component container) {
// if contentTabbedPane doesnot yet contains tab
@@ -245,14 +238,14 @@
protected void showImportView(String type) {
if (!getImportView(type).isEnabled()) {
getImportView(type).setEnabled(true);
- }
+ }
}
@Override
protected void showExportView(String type) {
if (!getExportView(type).isEnabled()) {
getExportView(type).setEnabled(true);
- }
+ }
}
@Override
@@ -301,34 +294,32 @@
showTab(_("lima.tab.result"), getResultView());
}
- @Override
- protected void windowClosing() {
- if (log.isDebugEnabled()) {
- log.debug("Shutdown called");
- }
- //Main.getActionFactory().fireAction("quit", this);
- try {
- dispose();
- Main.ShutdownHook.interrupted();
- //Main.getContext().close();
- Runtime.getRuntime().halt(0);
- System.exit(0);
- } catch (Exception ex) {
- log.error("error while closing " + ex.getMessage(), ex);
- Runtime.getRuntime().halt(1);
- }
- }
+// @Override
+// protected void windowClosing() {
+// if (log.isDebugEnabled()) {
+// log.debug("Shutdown called");
+// }
+// //Main.getActionFactory().fireAction("quit", this);
+// try {
+// dispose();
+// Main.ShutdownHook.interrupted();
+// //Main.getContext().close();
+// Runtime.getRuntime().halt(0);
+// System.exit(0);
+// } catch (Exception ex) {
+// log.error("error while closing " + ex.getMessage(), ex);
+// Runtime.getRuntime().halt(1);
+// }
+// }
- /**
- * Constructor
- */
- public MainViewImpl() {
+ public MainViewImpl(JAXXContext c) {
+ super(c);
// ContextProvider.checkContextInit();
-
+
showAccueilView();
-
+
// Register a change listener
contentTabbedPane.addChangeListener(new ChangeListener() {
// This method is called whenever the selected tab changes
@@ -353,22 +344,9 @@
}
}
});
- finalizeInit(Main.getContext());
}
- protected void finalizeInit(LimaContext context) {
- // create i18n entries in menu with id 'i18nMenu'
- //ActionHelper.createI18nMenu(this);
- // chargement dans l'ui des actions
- //ActionFactory<LimaBaseAction> factory = context.getActionFactory();
- //factory.loadActions(this);
- //getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, InputEvent.ALT_MASK), "quit");
- //getRootPane().getActionMap().put("quit", factory.newAction("quit", null));
- // repaint i18n actions
- //ActionHelper.refreshI18nActions(context, factory, this);
- }
-
@Override
public void dispose() {
// Disposing other windows before main view
@@ -380,7 +358,7 @@
}
/**
- * @param window
+ * @param window the windows to dispose
*/
public void disposeWindow(JFrame window) {
if (window != null) {
@@ -396,8 +374,8 @@
if (log.isDebugEnabled()) {
log.debug("onChangeView : ");
}
- transactionView = Main.getContext().getMainUI().getTransactionView();
- searchResultView = Main.getContext().getMainUI().getSearchResultView();
+ transactionView = getTransactionView();
+ searchResultView = getSearchResultView();
if (viewFlatten.getState()) {
// View not flatten
if (log.isDebugEnabled()) {
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ProgressBarImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ProgressBarImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ProgressBarImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -22,10 +22,11 @@
import java.io.IOException;
import java.net.URL;
import javax.swing.JOptionPane;
+
+import org.chorem.lima.LimaContext;
import static org.nuiton.i18n.I18n._;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
import org.chorem.lima.dto.AccountDTO;
import org.chorem.lima.imports.XMLImport;
@@ -41,10 +42,6 @@
*/
private static final Log log = LogFactory.getLog(ProgressBarImpl.class);
-
- /**
- * Constructor
- */
public ProgressBarImpl() {
//progressBar.setVisible(true);
if (log.isDebugEnabled()) {
@@ -85,11 +82,10 @@
log.error("Erreur chargement du fichier 'default_pcg.xml'", eee);
}
} else {
- Main.getContext().getDataManager().resetAccountModel();
+ LimaContext.getContext().getDataManager().resetAccountModel();
}
- }
+ }
}
-
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ReportsViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ReportsViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ReportsViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -20,8 +20,6 @@
package org.chorem.lima.ui;
-import org.chorem.lima.ui.*;
-
/**
* @author ore
*/
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -19,13 +19,13 @@
package org.chorem.lima.ui;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.combobox.renderer.PeriodComboBoxRenderer;
import org.chorem.lima.balance.Balance;
import org.chorem.lima.balance.Category;
import org.chorem.lima.dto.BalanceDTO;
import org.chorem.lima.dto.PeriodDTO;
import org.chorem.lima.dto.util.DTOHelper;
-import org.chorem.lima.Main;
import org.chorem.lima.table.ResultChargesJXTable;
import org.chorem.lima.table.ResultProduitsJXTable;
import org.chorem.lima.table.model.ResultChargesTableModel;
@@ -36,6 +36,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jdesktop.swingx.JXTable;
+
import javax.swing.table.DefaultTableModel;
import javax.swing.*;
@@ -51,7 +52,7 @@
* _ pour produit (identifié par tabProduit)
* _ pour charge (identifié par tabCharge)
* _ pour les totaux (identifié par tabChargeRes et tabProduitRes)
- *
+ * <p/>
* Elle va dans un premier temps déterminer les deux tableaux charges et produits.
* Ensuite, elle va calculer le résultat pour charges et produits.
* Enfin elle détermine le résultat final suivant le bénéfice ou perte, il sera
@@ -62,10 +63,8 @@
public class ResultViewImpl extends ResultView {
private static final Log log = LogFactory.getLog(ResultViewImpl.class);
- private JComboBox comboBoxPeriod = new JComboBox ();
- private Balance balance = new Balance ();
- private JXTable tableCharge;
- private JXTable tableProduit;
+ private JComboBox comboBoxPeriod = new JComboBox();
+ private Balance balance = new Balance();
private JXTable tableChargeRes;
private JXTable tableProduitRes;
private String resultat;
@@ -74,9 +73,6 @@
private DefaultTableModel modelChargeRes;
private DefaultTableModel modelProduitRes;
- /**
- * Constructor
- */
public ResultViewImpl() {
// Initialise la combobox pour les périodes
@@ -90,18 +86,18 @@
* Initialise les tableaux pour afficher les résultats de produits
* et charges
*/
- String[] columnNames = {"1","2"};
+ String[] columnNames = {"1", "2"};
// Résultat charges
modelChargeRes = new DefaultTableModel();
modelChargeRes.setColumnIdentifiers(columnNames);
- tableChargeRes = new JXTable (modelChargeRes);
+ tableChargeRes = new JXTable(modelChargeRes);
// On cache le header des colonnes
tableChargeRes.setColumnControlVisible(false);
tableChargeRes.getTableHeader().setVisible(false);
// Résultat produits
modelProduitRes = new DefaultTableModel();
modelProduitRes.setColumnIdentifiers(columnNames);
- tableProduitRes = new JXTable (modelProduitRes);
+ tableProduitRes = new JXTable(modelProduitRes);
// On cache le header des colonnes
tableProduitRes.setColumnControlVisible(false);
tableProduitRes.getTableHeader().setVisible(false);
@@ -114,7 +110,7 @@
* CHARGES
*/
// Création du tableau avec le modèle
- tableCharge = new ResultChargesJXTable(modelResultCharges);
+ JXTable tableCharge = new ResultChargesJXTable(modelResultCharges);
// Ajout du tableau
tabCharge.setViewportView(tableCharge);
@@ -122,7 +118,7 @@
* PRODUITS
*/
// Création du tableau avec le modèle
- tableProduit = new ResultProduitsJXTable(modelResultProduits);
+ JXTable tableProduit = new ResultProduitsJXTable(modelResultProduits);
// Ajout du tableau
tabProduit.setViewportView(tableProduit);
@@ -132,32 +128,30 @@
comboBoxPeriod.addItemListener(new ItemListener() {
@Override
public void itemStateChanged(ItemEvent e) {
- // Actualise le compte de résultat
- updateResult((PeriodDTO) comboBoxPeriod.getSelectedItem());
- }
+ // Actualise le compte de résultat
+ updateResult((PeriodDTO) comboBoxPeriod.getSelectedItem());
+ }
});
-
+
}
@Override
- public void update ()
- {
+ public void update() {
updateResult((PeriodDTO) comboBoxPeriod.getSelectedItem());
}
/**
* Permet d'initialiser le résultat des charges
+ *
* @param totalCharges
*/
- private void initTabChargeRes(String totalCharges)
- {
+ private void initTabChargeRes(String totalCharges) {
// Définition des données
Object[] data =
- {_("lima.result.total.charge"),totalCharges};
+ {_("lima.result.total.charge"), totalCharges};
// Si il existe déja une ligne
- if ( modelChargeRes.getRowCount() > 0 )
- {
+ if (modelChargeRes.getRowCount() > 0) {
modelChargeRes.removeRow(0);
}
// Ajout de la ligne
@@ -168,16 +162,15 @@
/**
* Permet d'initialiser le résultat des produits
+ *
* @param totalProduits
*/
- private void initTabProduitRes(String totalProduits)
- {
+ private void initTabProduitRes(String totalProduits) {
// Définition des données
Object[] data =
- {_("lima.result.total.produit"),totalProduits};
+ {_("lima.result.total.produit"), totalProduits};
// Si il existe déja une ligne
- if ( modelProduitRes.getRowCount() > 0 )
- {
+ if (modelProduitRes.getRowCount() > 0) {
modelProduitRes.removeRow(0);
}
// Ajout de la ligne
@@ -195,22 +188,22 @@
* (produits et charges, financier, exceptionnelles, etc).
* Enfin, il associe les données aux modèles, et lance le calcul des
* résultats.
+ * @param period
*/
- protected void updateResult (PeriodDTO period)
- {
+ protected void updateResult(PeriodDTO period) {
// Chargement de la balance
List<BalanceDTO> ListbalanceDTO = balance.createBalance(period);
/**
* Création tableau associatif pour produits et charges
*/
// charges
- Hashtable<String,List<BalanceDTO>> chargeTab = new Hashtable<String,List<BalanceDTO>>();
+ Hashtable<String, List<BalanceDTO>> chargeTab = new Hashtable<String, List<BalanceDTO>>();
chargeTab.put("exploitation", new LinkedList<BalanceDTO>());
chargeTab.put("financier", new LinkedList<BalanceDTO>());
chargeTab.put("exceptionnel", new LinkedList<BalanceDTO>());
chargeTab.put("autres", new LinkedList<BalanceDTO>());
// Produits
- Hashtable<String,List<BalanceDTO>> produitTab = new Hashtable<String,List<BalanceDTO>>();
+ Hashtable<String, List<BalanceDTO>> produitTab = new Hashtable<String, List<BalanceDTO>>();
produitTab.put("exploitation", new LinkedList<BalanceDTO>());
produitTab.put("financier", new LinkedList<BalanceDTO>());
produitTab.put("exceptionnel", new LinkedList<BalanceDTO>());
@@ -225,79 +218,71 @@
* catégorie 64, donc à mettre dans Charges-Exploitation
*/
String totalCharges = "0";
- String totalProduits = "0";
+ String totalProduits = "0";
// Parcours tous les comptes de la balance pour rechercher les comptes 6 et 7
- for ( BalanceDTO balanceDTO : ListbalanceDTO)
- {
+ for (BalanceDTO balanceDTO : ListbalanceDTO) {
/**
* CHARGES
*/
// Exploitation
- if ( Category.accountNumberCategory("60", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("61", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("62", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("63", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("64", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("65", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("681", balanceDTO.getAccount().getIdNumber())
- )
- {
+ if (Category.accountNumberCategory("60", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("61", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("62", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("63", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("64", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("65", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("681", balanceDTO.getAccount().getIdNumber())
+ ) {
chargeTab.get("exploitation").add(balanceDTO);
- totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(),balanceDTO.getCredit()));
+ totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
}
// Financières
- if ( Category.accountNumberCategory("66", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("686", balanceDTO.getAccount().getIdNumber()) )
- {
+ if (Category.accountNumberCategory("66", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("686", balanceDTO.getAccount().getIdNumber())) {
chargeTab.get("financier").add(balanceDTO);
- totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(),balanceDTO.getCredit()));
+ totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
}
// Exceptionnelles
- if ( Category.accountNumberCategory("67", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("687", balanceDTO.getAccount().getIdNumber()) )
- {
+ if (Category.accountNumberCategory("67", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("687", balanceDTO.getAccount().getIdNumber())) {
chargeTab.get("exceptionnel").add(balanceDTO);
- totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(),balanceDTO.getCredit()));
+ totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
}
// Autres
- if ( Category.accountNumberCategory("691", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("695", balanceDTO.getAccount().getIdNumber()) )
- {
+ if (Category.accountNumberCategory("691", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("695", balanceDTO.getAccount().getIdNumber())) {
chargeTab.get("autres").add(balanceDTO);
- totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(),balanceDTO.getCredit()));
+ totalCharges = DTOHelper.AddNumbersString(totalCharges, DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
}
/**
* PRODUIT
*/
// Exploitation
- if ( Category.accountNumberCategory("70", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("71", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("72", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("73", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("74", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("75", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("781", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("791", balanceDTO.getAccount().getIdNumber())
- )
- {
+ if (Category.accountNumberCategory("70", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("71", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("72", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("73", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("74", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("75", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("781", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("791", balanceDTO.getAccount().getIdNumber())
+ ) {
produitTab.get("exploitation").add(balanceDTO);
- totalProduits = DTOHelper.AddNumbersString(totalProduits, DTOHelper.SubNumbersString(balanceDTO.getCredit(),balanceDTO.getDebit()));
+ totalProduits = DTOHelper.AddNumbersString(totalProduits, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
}
// Financières
- if ( Category.accountNumberCategory("76", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("786", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("796", balanceDTO.getAccount().getIdNumber()) )
- {
+ if (Category.accountNumberCategory("76", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("786", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("796", balanceDTO.getAccount().getIdNumber())) {
produitTab.get("financier").add(balanceDTO);
- totalProduits = DTOHelper.AddNumbersString(totalProduits, DTOHelper.SubNumbersString(balanceDTO.getCredit(),balanceDTO.getDebit()));
+ totalProduits = DTOHelper.AddNumbersString(totalProduits, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
}
// Exceptionnelles
- if ( Category.accountNumberCategory("77", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("787", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("797", balanceDTO.getAccount().getIdNumber()) )
- {
+ if (Category.accountNumberCategory("77", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("787", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("797", balanceDTO.getAccount().getIdNumber())) {
produitTab.get("exceptionnel").add(balanceDTO);
- totalProduits = DTOHelper.AddNumbersString(totalProduits, DTOHelper.SubNumbersString(balanceDTO.getCredit(),balanceDTO.getDebit()));
+ totalProduits = DTOHelper.AddNumbersString(totalProduits, DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
}
}
@@ -306,16 +291,16 @@
*/
// CHARGES
List<BalanceDTO> listCharges = new LinkedList<BalanceDTO>();
- BalanceDTO titleExploitation = new BalanceDTO("Exploitation","title","0","0","title",null);
+ BalanceDTO titleExploitation = new BalanceDTO("Exploitation", "title", "0", "0", "title", null);
listCharges.add(titleExploitation);
listCharges.addAll(chargeTab.get("exploitation"));
- BalanceDTO titleFinancier = new BalanceDTO("Financiers","title","0","0","title",null);
+ BalanceDTO titleFinancier = new BalanceDTO("Financiers", "title", "0", "0", "title", null);
listCharges.add(titleFinancier);
listCharges.addAll(chargeTab.get("financier"));
- BalanceDTO titleExceptionnel = new BalanceDTO("Exceptionnelles","title","0","0","title",null);
+ BalanceDTO titleExceptionnel = new BalanceDTO("Exceptionnelles", "title", "0", "0", "title", null);
listCharges.add(titleExceptionnel);
listCharges.addAll(chargeTab.get("exceptionnel"));
- BalanceDTO titleAutre = new BalanceDTO("Autres","title","0","0","title",null);
+ BalanceDTO titleAutre = new BalanceDTO("Autres", "title", "0", "0", "title", null);
listCharges.add(titleAutre);
listCharges.addAll(chargeTab.get("autres"));
// Création du modèle à partir de la liste précédement créée
@@ -324,13 +309,13 @@
// PRODUITS
List<BalanceDTO> listProduits = new LinkedList<BalanceDTO>();
- titleExploitation = new BalanceDTO("Exploitation","title","0","0","title",null);
+ titleExploitation = new BalanceDTO("Exploitation", "title", "0", "0", "title", null);
listProduits.add(titleExploitation);
listProduits.addAll(produitTab.get("exploitation"));
- titleFinancier = new BalanceDTO("Financiers","title","0","0","title",null);
+ titleFinancier = new BalanceDTO("Financiers", "title", "0", "0", "title", null);
listProduits.add(titleFinancier);
listProduits.addAll(produitTab.get("financier"));
- titleExceptionnel = new BalanceDTO("Exceptionnelles","title","0","0","title",null);
+ titleExceptionnel = new BalanceDTO("Exceptionnelles", "title", "0", "0", "title", null);
listProduits.add(titleExceptionnel);
listProduits.addAll(produitTab.get("exceptionnel"));
// Création du modèle à partir de la liste précédement créée
@@ -340,45 +325,40 @@
/**
* Actualise les résultats
*/
- initTabChargeRes(totalCharges);
+ initTabChargeRes(totalCharges);
initTabProduitRes(totalProduits);
// Affiche le résultat en produit OU en charge suivant le bénéfice ou perte
resultat = "0";
// On efface les résultats (ligne bénéfice ou perte)
- if ( modelChargeRes.getRowCount() > 1 )
- {
+ if (modelChargeRes.getRowCount() > 1) {
modelChargeRes.removeRow(0);
}
- if ( modelProduitRes.getRowCount() > 1 )
- {
+ if (modelProduitRes.getRowCount() > 1) {
modelProduitRes.removeRow(0);
}
// Si les charges sont plus grandes que les produits : pertes
- if (Util.compareTo(totalCharges, totalProduits) == 1 )
- {
+ if (Util.compareTo(totalCharges, totalProduits) == 1) {
resultat = DTOHelper.SubNumbersString(totalProduits, totalCharges);
- Object[] data =
- {_("lima.result.loss"),resultat};
+ Object[] data ={_("lima.result.loss"), resultat};
modelChargeRes.addRow(data);
modelChargeRes.fireTableDataChanged();
} else {
// Sinon profit
resultat = DTOHelper.SubNumbersString(totalProduits, totalCharges);
- Object[] data =
- {_("lima.result.profit"),resultat};
-
+ Object[] data ={_("lima.result.profit"), resultat};
+
modelProduitRes.addRow(data);
modelProduitRes.fireTableDataChanged();
- }
+ }
}
-
+
/**
* Initialise la combobox contenant les périodes
*/
private void initComboBoxPeriod() {
// Recherche la liste de toutes les périodes
- List<PeriodDTO> periodes = Main.getContext().getDataManager().getPeriodes();
+ List<PeriodDTO> periodes = LimaContext.getContext().getDataManager().getPeriodes();
// Model pour les périodes
Vector<PeriodDTO> v = new Vector<PeriodDTO>();
// On ajoute un élément null pour permettre d'afficher toutes les périodes
@@ -394,8 +374,7 @@
periodPanel.validate();
}
- public String getResult()
- {
+ public String getResult() {
return resultat;
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/SearchTransactionViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/SearchTransactionViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/SearchTransactionViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -21,8 +21,8 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import static org.nuiton.i18n.I18n._;
-import org.chorem.lima.Main;
import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.enumeration.FilterEnum;
import org.chorem.lima.table.TransactionJXTable;
@@ -41,9 +41,6 @@
private static final Log log = LogFactory.getLog(SearchTransactionViewImpl.class);
private final TransactionJXTable table;
- /**
- * Constructor
- */
public SearchTransactionViewImpl() {
// At Least one criteria
CriteriaWidgetImpl widget = new CriteriaWidgetImpl();
@@ -51,7 +48,7 @@
criteriaWidgetPanel.add(widget);
this.validate();
- TransactionViewImpl searchResult = Main.getContext().getMainUI().getSearchResultView();
+ TransactionViewImpl searchResult = LimaContext.getContext().getMainUI().getSearchResultView();
searchResult.setFiltreEnabled(false);
table = searchResult.getTransactionTable();
getRootPane().setDefaultButton(okButton);
@@ -68,11 +65,8 @@
this.validate();
}
- /**
- *
- */
protected void showTransactionView() {
- Main.getContext().getMainUI().showSearchResultView();
+ LimaContext.getContext().getMainUI().showSearchResultView();
}
@Override
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionView.jaxx
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionView.jaxx 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionView.jaxx 2009-11-08 12:04:50 UTC (rev 2734)
@@ -5,11 +5,11 @@
protected void addEmptyEntry() {};
</script>
<JPopupMenu id="MenuRightPanel">
- <JMenuItem text="Ajouter une transaction" onActionPerformed='addEmptyTransaction()'/>
+ <JMenuItem text="lima.add.transaction" onActionPerformed='addEmptyTransaction()'/>
<JMenuItem text="lima.print"/>
</JPopupMenu>
<JPopupMenu id="MenuRightTransaction">
- <JMenuItem text="Ajouter" onActionPerformed='addEmptyTransaction()'/>
+ <JMenuItem text="lima.add" onActionPerformed='addEmptyTransaction()'/>
<JMenuItem text="lima.print"/>
</JPopupMenu>
<row fill="horizontal" weightx="0.75" weighty="0" anchor="center" insets='5,5,5,5'>
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/TransactionViewImpl.java 2009-11-08 12:04:50 UTC (rev 2734)
@@ -27,6 +27,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
import org.chorem.lima.combobox.model.JournalComboBoxModel;
import org.chorem.lima.combobox.renderer.JournalComboBoxRenderer;
import org.chorem.lima.combobox.renderer.PeriodComboBoxRenderer;
@@ -37,7 +38,6 @@
import org.chorem.lima.dto.util.DTOHelper;
import org.chorem.lima.enumeration.FilterEnum;
import org.chorem.lima.listener.ClicRight;
-import org.chorem.lima.Main;
import org.chorem.lima.service.util.ServiceHelper;
import org.chorem.lima.table.model.*;
import org.chorem.lima.table.TransactionJXTable;
@@ -45,7 +45,6 @@
import static org.nuiton.i18n.I18n._;
-
/**
* @author ore
* @author Rémi Chapelet
@@ -65,12 +64,9 @@
private TransactionSortedTableColumnModel columnModel;
private TransactionFlattenTableModel flattenModel;
- /**
- * MODELS
- */
public TransactionDataTableModel getModel() {
if (model == null) {
- model = Main.getContext().getDataManager().getTransactionModel();
+ model = LimaContext.getContext().getDataManager().getTransactionModel();
}
return model;
}
@@ -137,7 +133,7 @@
getTransactionTable().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
transactionScrollPane.setViewportView(getTransactionTable());
-
+
/**
* Property change listeners
*/
@@ -156,7 +152,7 @@
JComboBox comboBox = (JComboBox) e.getSource();
JournalDTO item = (JournalDTO) comboBox.getSelectedItem();
getFlattenModel().filter(FilterEnum.Journal, item, true);
- Main.getContext().getDataManager().setCurrentJournal(item);
+ LimaContext.getContext().getDataManager().setCurrentJournal(item);
}
if (!(getComboPeriod().getSelectedIndex() == -1 || getComboPeriod().getSelectedIndex() == 0)) {
@@ -174,7 +170,7 @@
JComboBox comboBox = (JComboBox) e.getSource();
PeriodDTO item = (PeriodDTO) comboBox.getSelectedItem();
getFlattenModel().filter(FilterEnum.Period, item, true);
- Main.getContext().getDataManager().setCurrentPeriod(item);
+ LimaContext.getContext().getDataManager().setCurrentPeriod(item);
}
if (!(getComboJournal().getSelectedIndex() == -1 || getComboJournal().getSelectedIndex() == 0)) {
@@ -189,14 +185,11 @@
int index = 0;
// Récupère la date actuelle
Date d = new Date();
- String dateToday = ServiceHelper.dateToMonth(d)+" "+(d.getYear()+1900);
- for (int i=0;i<= getComboPeriod().getItemCount();i++)
- {
+ String dateToday = ServiceHelper.dateToMonth(d) + " " + (d.getYear() + 1900);
+ for (int i = 0; i <= getComboPeriod().getItemCount(); i++) {
Object o = getComboPeriod().getItemAt(i);
- if (o != null)
- {
- if ( dateToday.equals(((PeriodDTO) o).getIdName()))
- {
+ if (o != null) {
+ if (dateToday.equals(((PeriodDTO) o).getIdName())) {
index = i;
}
}
@@ -210,13 +203,13 @@
getTransactionTable().addMouseListener(popupListeneTransr);
}
-
+
/**
* Initialise la combobox contenant les journaux
*/
private void initJournalComboBox() {
/** Getting data from journal model **/
- List<JournalDTO> journals = Main.getContext().getDataManager().getJournalModel().getData();
+ List<JournalDTO> journals = LimaContext.getContext().getDataManager().getJournalModel().getData();
/** Creating combobox model */
Vector<JournalDTO> v = new Vector<JournalDTO>(journals.size());
/** null item */
@@ -224,7 +217,7 @@
v.addAll(journals);
JournalComboBoxModel comboBoxModel = new JournalComboBoxModel(v);
/** Property Change Listener */
- Main.getContext().getDataManager().getJournalModel().addPropertyChangeListener(comboBoxModel);
+ LimaContext.getContext().getDataManager().getJournalModel().addPropertyChangeListener(comboBoxModel);
getComboJournal().setModel(comboBoxModel);
getComboJournal().setRenderer(JournalComboBoxRenderer.getInstance());
@@ -239,7 +232,7 @@
*/
private void initPeriodComboBox() {
// Recherche la liste de toutes les périodes
- List<PeriodDTO> periodes = Main.getContext().getDataManager().getPeriodes();
+ List<PeriodDTO> periodes = LimaContext.getContext().getDataManager().getPeriodes();
// Model pour les périodes
Vector<PeriodDTO> v = new Vector<PeriodDTO>();
// On ajoute un élément null pour permettre d'afficher toutes les périodes
@@ -247,20 +240,20 @@
// Pour chaque période (annuelle et NON mensuelle !)
for (PeriodDTO period : periodes) {
v.addElement(period);
- v.addAll(period.getChildren());
+ v.addAll(period.getChildren());
}
getComboPeriod().setModel(new DefaultComboBoxModel(v));
getComboPeriod().setRenderer(PeriodComboBoxRenderer.getInstance());
// AutoCompletion
// AutoCompleteDecorator.decorate(comboPeriod, PeriodToStringConverter.getInstance());
-
+
periodPanel.add(getComboPeriod());
periodPanel.validate();
}
/**
- * @param enabled
+ * @param enabled new value
*/
public void setFiltreEnabled(boolean enabled) {
getComboPeriod().setEnabled(enabled);
@@ -271,7 +264,7 @@
* ajout de transaction vide avec le bouton
*/
@Override
- protected void addEmptyTransaction(){
+ protected void addEmptyTransaction() {
String result = transactionTable.getModel().addEmptyTransaction();
/**
* Si il n'y pas de message success, alors il existe une erreur.
@@ -283,59 +276,56 @@
/**
* suppression de transaction avec le bouton
*/
- @Override
+ @Override
protected void removeTransaction() {
// Any row selected
Integer indexSelectedRow = transactionTable.getSelectedRow();
if (indexSelectedRow != -1) {
String message = DTOHelper.isTransaction(
- transactionTable.getModel().getElementAt(indexSelectedRow))
- ? _("lima.question.remove.transaction")
- : _("lima.question.remove.entry");
- int n = Util.showConfirmDialog(message);
- if (n == JOptionPane.YES_OPTION) {
- TransactionTableModel model = transactionTable.getModel();
- // Message de retour
- String result="";
- if (TransactionFlattenTableModel.isFlattenModel(model))
- {
- // Flatten
- TransactionFlattenTableModel flattenModel = (TransactionFlattenTableModel) transactionTable.getModel();
- flattenModel.removeEmptyLine();
- /**
- * Supprime la ligne sélectionnée : transaction ou entry
- */
- if (DTOHelper.isTransaction(model.getElementAt(indexSelectedRow))) {
- // Transaction
- result = model.removeTransaction((TransactionDTO) model.getElementAt(indexSelectedRow));
- } else {
- // Entry
- result = flattenModel.removeEntry((EntryDTO) model.getElementAt(indexSelectedRow));
- }
- transactionTable.addColorEmptyLine();
- } else {
- // Not Flatten
- result = model.removeTransaction((TransactionDTO) model.getElementAt(indexSelectedRow));
- }
+ transactionTable.getModel().getElementAt(indexSelectedRow))
+ ? _("lima.question.remove.transaction")
+ : _("lima.question.remove.entry");
+ int n = Util.showConfirmDialog(message);
+ if (n == JOptionPane.YES_OPTION) {
+ TransactionTableModel model = transactionTable.getModel();
+ // Message de retour
+ String result = "";
+ if (TransactionFlattenTableModel.isFlattenModel(model)) {
+ // Flatten
+ TransactionFlattenTableModel flattenModel = (TransactionFlattenTableModel) transactionTable.getModel();
+ flattenModel.removeEmptyLine();
/**
- * Messages erreurs
+ * Supprime la ligne sélectionnée : transaction ou entry
*/
- if ( !result.equals(ServiceHelper.RESPOND_SUCCESS) )
- {
- ErrorMessage.showMessage(message);
+ if (DTOHelper.isTransaction(model.getElementAt(indexSelectedRow))) {
+ // Transaction
+ result = model.removeTransaction((TransactionDTO) model.getElementAt(indexSelectedRow));
+ } else {
+ // Entry
+ result = flattenModel.removeEntry((EntryDTO) model.getElementAt(indexSelectedRow));
}
+ transactionTable.addColorEmptyLine();
+ } else {
+ // Not Flatten
+ result = model.removeTransaction((TransactionDTO) model.getElementAt(indexSelectedRow));
}
+ /**
+ * Messages erreurs
+ */
+ if (!result.equals(ServiceHelper.RESPOND_SUCCESS)) {
+ ErrorMessage.showMessage(message);
+ }
+ }
}
}
- /**
- * Implémente le bouton ajout d'une entrée.
- * Permet d'ajouter une ligne comptable sur la transaction sélectionnée.
- */
+ /**
+ * Implémente le bouton ajout d'une entrée.
+ * Permet d'ajouter une ligne comptable sur la transaction sélectionnée.
+ */
@Override
- protected void addEmptyEntry(){
- if (transactionTable.getSelectionModel().isSelectionEmpty())
- {
+ protected void addEmptyEntry() {
+ if (transactionTable.getSelectionModel().isSelectionEmpty()) {
// Not line selected
} else {
// Line selected
@@ -348,13 +338,13 @@
if (DTOHelper.isTransaction(o)) {
// Transaction n'est pas éditable
if (!ServiceHelper.isEditable((TransactionDTO) o)) {
- Util.showMessageDialog(_("lima.error.transaction.period.not.blocked")+".",_("lima.error"),JOptionPane.WARNING_MESSAGE);
+ Util.showMessageDialog(_("lima.error.transaction.period.not.blocked") + ".", _("lima.error"), JOptionPane.WARNING_MESSAGE);
return;
}
} else {
//Entry n'est pas éditable
if (!ServiceHelper.isEditable((EntryDTO) o)) {
- Util.showMessageDialog(_("lima.error.transaction.period.not.blocked")+".",_("lima.error"),JOptionPane.WARNING_MESSAGE);
+ Util.showMessageDialog(_("lima.error.transaction.period.not.blocked") + ".", _("lima.error"), JOptionPane.WARNING_MESSAGE);
return;
}
}
Modified: trunk/lima-main/src/main/resources/i18n/lima-main-en_GB.properties
===================================================================
--- trunk/lima-main/src/main/resources/i18n/lima-main-en_GB.properties 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/resources/i18n/lima-main-en_GB.properties 2009-11-08 12:04:50 UTC (rev 2734)
@@ -1,18 +1,10 @@
-Ajouter=
-Ajouter\ une\ transaction=
-Page\ d'accueil\ -\ TODO=
-bilan=
+lima.about.message=
lima.account=Account
lima.account.type=Account type
lima.actif=Asset
-lima.action.connect=
-lima.action.connect.help=
-lima.action.connect.tooltip=
-lima.action.unconnect=
-lima.action.unconnect.help=
-lima.action.unconnect.tooltip=
+lima.action.commandline.disable.main.ui=Do not launch main ui
+lima.action.commandline.help=Show help in console
lima.add=Add
-lima.add.account=Add an account
lima.add.entry=Add an entry
lima.add.lettering=Add a letter
lima.add.transaction=Add a transaction
@@ -38,34 +30,15 @@
lima.block=block
lima.cancel=Cancel
lima.charge=Expense
-lima.closure=Closure
lima.closure.period.begin=Period
-lima.closure.period.end=
lima.closure.timespan.warning=Warning\: when the period is blocked, it is possible to add, edit and delete entries on the accounting period.
+lima.config.category.directories=
+lima.config.category.directories.description=
+lima.config.category.other=
+lima.config.category.other.description=
+lima.config.configFileName.description=
lima.config.locale.description=
-lima.config.main.configFileName.description=Absolute path to configuration file
-lima.config.main.copyright.description=
-lima.config.main.debugMode.description=Flag to have or not debug mode
-lima.config.main.description=Main configuration of Application
-lima.config.main.encoding.description=User's encoding to be used in application
-lima.config.main.locale.description=User's locale to be used in application
-lima.config.main.organisationName.description=
-lima.config.main.organisationURL.description=
-lima.config.main.projectName.description=Name of the project
-lima.config.main.projectURL.description=
-lima.config.main.userFirstName.description=First name of user
-lima.config.main.userLastName.description=Last name of user
-lima.config.main.userMail.description=Email of user
-lima.config.main.version.description=Version of application
-lima.config.remote.URI.description=URI of remote server
-lima.config.remote.description=Configuration of remote server
-lima.config.remote.login.description=Login of user on remote server
-lima.config.remote.password.description=Password of user on remote server
-lima.config.remote.proxyLogin.description=Login of user on proxy server
-lima.config.remote.proxyPassword.description=Password of user on proxy server
-lima.config.remote.useProxy.description=Flag to indicate if a proxy is used to acces remote server
lima.config.ui.fullscreen=
-lima.configuration=Configuration
lima.credit=Credit
lima.daily=Daily
lima.date=Date
@@ -91,24 +64,18 @@
lima.error.account.not.exist=This account doesn't exist
lima.error.account.not.master=This account has not an account master
lima.error.account.with.entries=This account has some entries
-lima.error.at.least.one.criteria=A criteria must
lima.error.entry.not.exist=
lima.error.entry.not.remove=
lima.error.journal.double=A journal exist with this name
lima.error.journal.not.exist=This journal doesn't exist
lima.error.journal.with.transactions=This journal has some transactions
-lima.error.login.failed=Login failed
lima.error.period.all.timespan=
lima.error.period.create.timespan=
-lima.error.period.next.blocked=It exists periods blocked
lima.error.period.next.not.blocked=
lima.error.period.not.exist=
-lima.error.period.not.selected=Please choose a period
lima.error.period.prec.not.blocked=It exists periods not blocked
lima.error.period.timespan.block=
lima.error.period.timespan.not.blocked=
-lima.error.service.failed=Service failed
-lima.error.transaction.balance=The transaction is not balanced
lima.error.transaction.exist.not.balanced=It exists transactions not balanced
lima.error.transaction.not.create=This transaction has not been created
lima.error.transaction.not.exist=This transaction doesn't exist
@@ -133,6 +100,7 @@
lima.filter.starts.with=Starts with
lima.find.transaction=Find transaction
lima.grand.livre=General Ledger
+lima.home=Home - TODO
lima.import=Import
lima.import.account=Import PCG
lima.import.all=Import all datas
@@ -141,25 +109,27 @@
lima.import.error=Your datas had't not been loaded
lima.import.journal=Import journal
lima.import.success=Your datas had been loaded
-lima.information=Information
lima.init.closed=
-lima.init.context.done=
-lima.init.ui.done=
+lima.init.context.done=Context was initialized in %1$s
+lima.init.ui.done=UI initialized
lima.journal=Journal
-lima.language=Language
lima.lettered=Lettered
lima.lettering=Lettering
lima.loading=Loading
-lima.login.retry=Account
lima.menu.file=File
lima.menu.help=Help
-lima.menu.help.i18n=
+lima.menu.help.about=About
+lima.menu.help.help=Help
+lima.menu.help.i18n=Language
+lima.menu.help.i18n.fr=French
+lima.menu.help.i18n.uk=English
+lima.menu.help.site=WebSite
lima.menubar.closure=Closure
lima.menubar.closure.addPeriod=Add a period
lima.menubar.closure.listperiod=See all periods
lima.menubar.closure.period=close a period (annual)
lima.menubar.closure.timespan=close a period (monthly)
-lima.message.config.loaded=
+lima.message.config.loaded=Config was loaded
lima.message.error.empty.line=Please choose an account
lima.model.account=Account
lima.model.balance=Balance
@@ -178,17 +148,8 @@
lima.name=Name
lima.non.valids.transactions=No valids transactions
lima.not.lettered=Not lettered
-lima.numbe=
lima.number=Number
lima.ok=OK
-lima.option.description.changeConfig=Change some properties of configuration
-lima.option.description.changeFileConfig=Change the configuration's file
-lima.option.description.editConfig=Edit the configuration
-lima.option.description.help=Show the help screen
-lima.option.description.helpConfig=Show the detail of properties of configuration
-lima.option.description.resetConfig=Reset configuration
-lima.option.description.showConfig=Show the detail of current configuration
-lima.option.description.ui=Flag to indicate to see or not UI
lima.passif=Liability
lima.period=Period
lima.period.close=Close
@@ -210,9 +171,7 @@
lima.progressBar.load.etape3=Loading status
lima.progressBar.load.etape4=Loading periods
lima.progressBar.load.etape5=Loading transactions
-lima.progressBar.load.title=Loading datas
lima.question=Question
-lima.question.close=Do you want to close Lima ?
lima.question.load.accounts=There is no existing accounts in Lima. Do you want to load default accounts ?
lima.question.remove.account=Do you want to remove this account ?
lima.question.remove.entry=Do you want to remove this entry ?
@@ -252,6 +211,7 @@
lima.tab.search.result=Search result
lima.tab.transaction=Transaction
lima.title=Lutin Invoice Monitoring and Accounting
+lima.title.about=About Lima...
lima.to=To
lima.ui.add.account=Add account
lima.ui.add.journal=Add journal
@@ -264,8 +224,5 @@
lima.view=View
lima.view.flatten=Flatten view
lima.voucher=Voucher
-lima.warning.nimbus.landf=
-lima.warning.no.ui=
-observe.action.commandline.disable.main.ui=
-observe.action.commandline.help=
-observe.config.configFileName.description=
+lima.warning.nimbus.landf=Could not find Numbus Look&Feel
+lima.warning.no.ui=No ui display detected
Modified: trunk/lima-main/src/main/resources/i18n/lima-main-fr_FR.properties
===================================================================
--- trunk/lima-main/src/main/resources/i18n/lima-main-fr_FR.properties 2009-11-04 17:24:33 UTC (rev 2733)
+++ trunk/lima-main/src/main/resources/i18n/lima-main-fr_FR.properties 2009-11-08 12:04:50 UTC (rev 2734)
@@ -1,22 +1,13 @@
-Ajouter=
-Ajouter\ une\ transaction=
-Page\ d'accueil\ -\ TODO=
-bilan=
-lima=Lutin Invoice Monitoring and Accounting
+lima.about.message=
lima.account=Compte
lima.account.type=Type de compte
lima.actif=Actif
-lima.action.connect=Se connecter
-lima.action.connect.help=Aide
-lima.action.connect.tooltip=tooltip
-lima.action.unconnect=D\u00E9connecter
-lima.action.unconnect.help=Aide
-lima.action.unconnect.tooltip=tooltip
+lima.action.commandline.disable.main.ui=Ne pas lancer l'ui
+lima.action.commandline.help=Afficher l'aide en console
lima.add=Ajout
-lima.add.account=Ajouter un compte
lima.add.entry=Ajouter une entr\u00E9e
lima.add.lettering=Ajouter une lettre
-lima.add.transaction=
+lima.add.transaction=Ajouter une transaction
lima.all=Tous
lima.all.criteria=Tous les crit\u00E8res correspondent
lima.amount=Montant
@@ -39,34 +30,15 @@
lima.block=Bloquer
lima.cancel=Annuler
lima.charge=Charge
-lima.closure=Cl\u00F4ture
lima.closure.period.begin=P\u00E9riode du
-lima.closure.period.end=
lima.closure.timespan.warning=Attention \: lorsque la p\u00E9riode est bloqu\u00E9e, il n'est plus possible d'ajouter, modifier et supprimer les entr\u00E9es comptables sur cette p\u00E9riode.
-lima.config.locale.description=
-lima.config.main.configFileName.description=Nom du fichier de configuration
-lima.config.main.copyright.description=
-lima.config.main.debugMode.description=flag pour activer le mode debug
-lima.config.main.description=Configuration principale de l'application
-lima.config.main.encoding.description=Encoding des fichiers de l'application
-lima.config.main.locale.description=Locale utilis\u00E9e par l'application
-lima.config.main.organisationName.description=
-lima.config.main.organisationURL.description=
-lima.config.main.projectName.description=Nom du projet
-lima.config.main.projectURL.description=
-lima.config.main.userFirstName.description=Nom de l'utilisateur
-lima.config.main.userLastName.description=Pr\u00E9nom de l'utilisateur
-lima.config.main.userMail.description=Courriel de l'utilisateur
-lima.config.main.version.description=Version de l'application
-lima.config.remote.URI.description=URL d'acces au serveur distant
-lima.config.remote.description=Configuration d'acc\u00E8s au serveur distant
-lima.config.remote.login.description=Login au serveur distant
-lima.config.remote.password.description=Mot de passe d'acc\u00E8s au serveur distant
-lima.config.remote.proxyLogin.description=Login du proxy
-lima.config.remote.proxyPassword.description=Mot de passe du proxy
-lima.config.remote.useProxy.description=Pour indiquer l'utilisation ou non d'un proxy pour atteindre le serveur distant
-lima.config.ui.fullscreen=
-lima.configuration=Configuration
+lima.config.category.directories=R\u00E9pertoires
+lima.config.category.directories.description=R\u00E9pertoires utilis\u00E9s par Lima
+lima.config.category.other=Autre
+lima.config.category.other.description=Autre propri\u00E9t\u00E9s de configuration
+lima.config.configFileName.description=
+lima.config.locale.description=Locale utilis\u00E9e par l'application
+lima.config.ui.fullscreen=Drapeau pour utiliser le mode plein \u00E9cran
lima.credit=Credit
lima.daily=Quotidien
lima.date=Date
@@ -92,24 +64,18 @@
lima.error.account.not.exist=Ce num\u00E9ro de compte n'existe pas
lima.error.account.not.master=Ce compte ne poss\u00E8de pas de compte principal
lima.error.account.with.entries=Ce compte poss\u00E8de des entr\u00E9es comptables
-lima.error.at.least.one.criteria=Au moins un crit\u00E8re doit
lima.error.entry.not.exist=
lima.error.entry.not.remove=
lima.error.journal.double=Un journal poss\u00E8de d\u00E9j\u00E0 ce nom
lima.error.journal.not.exist=Ce journal n'existe pas
lima.error.journal.with.transactions=Ce journal poss\u00E8de des transactions comptables
-lima.error.login.failed=Echec d'authentification
lima.error.period.all.timespan=
lima.error.period.create.timespan=
-lima.error.period.next.blocked=Il existe des p\u00E9riodes suivantes bloqu\u00E9es
lima.error.period.next.not.blocked=
lima.error.period.not.exist=
-lima.error.period.not.selected=La p\u00E9riode doit \u00EAtre selectionn\u00E9e
lima.error.period.prec.not.blocked=Il existe des p\u00E9riodes pr\u00E9c\u00E9dentes non bloqu\u00E9es
lima.error.period.timespan.block=
lima.error.period.timespan.not.blocked=
-lima.error.service.failed=Service failed
-lima.error.transaction.balance=La transaction n'est pas \u00E9quilibr\u00E9e
lima.error.transaction.exist.not.balanced=Il existe des transactions non \u00E9quilibr\u00E9es
lima.error.transaction.not.create=La transaction n'a pu \u00EAtre cr\u00E9\u00E9e
lima.error.transaction.not.exist=La transaction n'existe pas
@@ -134,6 +100,7 @@
lima.filter.starts.with=Commence par
lima.find.transaction=Rechercher transaction
lima.grand.livre=Grand-Livre
+lima.home=Page d'accueil - TODO
lima.import=Import
lima.import.account=Importer le PCG
lima.import.all=Importer une nouvelle base (XML)
@@ -142,19 +109,21 @@
lima.import.error=Vos donn\u00E9es n'ont pu \u00EAtre charg\u00E9es
lima.import.journal=Importer le journal
lima.import.success=Vos donn\u00E9es ont bien \u00E9t\u00E9 charg\u00E9es
-lima.information=Information
lima.init.closed=
-lima.init.context.done=
-lima.init.ui.done=
+lima.init.context.done=Initialisation du context termin\u00E9 en %1$s
+lima.init.ui.done=Initialisation des interface graphiques termin\u00E9e
lima.journal=Journal
-lima.language=Langue
lima.lettered=Lettr\u00E9
lima.lettering=Lettrage
lima.loading=Chargement
-lima.login.retry=R\u00E9essayer
lima.menu.file=Fichier
lima.menu.help=Aide
-lima.menu.help.i18n=
+lima.menu.help.about=Afficher l'A Propos
+lima.menu.help.help=Afficher l'aide
+lima.menu.help.i18n=Langue
+lima.menu.help.i18n.fr=Fran\u00E7ais
+lima.menu.help.i18n.uk=Anglais
+lima.menu.help.site=Acc\u00E9der au site de Lima
lima.menubar.closure=Cl\u00F4ture
lima.menubar.closure.addPeriod=Ajouter une p\u00E9riode
lima.menubar.closure.listperiod=Voir toutes les cl\u00F4tures
@@ -179,17 +148,8 @@
lima.name=Nom
lima.non.valids.transactions=Ecritures non valides
lima.not.lettered=Non lettr\u00E9
-lima.numbe=
lima.number=Num\u00E9ro
lima.ok=OK
-lima.option.description.changeConfig=Changer une propri\u00E9t\u00E9 de la configuration
-lima.option.description.changeFileConfig=Change de fichier de configuration
-lima.option.description.editConfig=Editer la configuration
-lima.option.description.help=Afficher l'aide
-lima.option.description.helpConfig=Afficher les d\u00E9tail de la configuration
-lima.option.description.resetConfig=R\u00E9initialiser la configuration
-lima.option.description.showConfig=Afficher la configuration
-lima.option.description.ui=Permettre ou non l'utilisation des UI
lima.passif=Passif
lima.period=P\u00E9riode
lima.period.close=Ferm\u00E9
@@ -211,9 +171,7 @@
lima.progressBar.load.etape3=Chargement des status
lima.progressBar.load.etape4=Chargement des p\u00E9riodes
lima.progressBar.load.etape5=Chargement des transactions
-lima.progressBar.load.title=Chargement des donn\u00E9es
lima.question=Question
-lima.question.close=Voulez vous quitter Lima?
lima.question.load.accounts=Il n'y a aucun plan comptable existant dans Lima. Voulez-vous en charger un par d\u00E9faut ?
lima.question.remove.account=Voulez-vous supprimer ce compte?
lima.question.remove.entry=Voulez-vous supprimer cette ligne de transaction?
@@ -253,6 +211,7 @@
lima.tab.search.result=Recherche
lima.tab.transaction=Ecriture
lima.title=Lutin Invoice Monitoring and Accounting
+lima.title.about=A propos de Lima...
lima.to=A
lima.ui.add.account=Ajouter un compte
lima.ui.add.journal=Ajouter un journal
@@ -265,8 +224,5 @@
lima.view=Vue
lima.view.flatten=Vue aplatie
lima.voucher=Document
-lima.warning.nimbus.landf=
-lima.warning.no.ui=
-observe.action.commandline.disable.main.ui=
-observe.action.commandline.help=
-observe.config.configFileName.description=
+lima.warning.nimbus.landf=Le look and feel nymbus n'a pas \u00E9t\u00E9 trouv\u00E9
+lima.warning.no.ui=Aucun environnement graphique d\u00E9tect\u00E9.
Deleted: trunk/lima-main/src/main/resources/icons/account.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/action/about.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/action/export-element.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/action/help.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/action/i18n-en.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/action/i18n-fr.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/action/quit.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/action/search.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/action/site.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/action/translate.png
===================================================================
(Binary files differ)
Copied: trunk/lima-main/src/main/resources/icons/action-about.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/about.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-about.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-account.png (from rev 2733, trunk/lima-main/src/main/resources/icons/account.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-account.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-closure-timespan.png (from rev 2733, trunk/lima-main/src/main/resources/icons/closure-timespan.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-closure-timespan.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-closure.png (from rev 2733, trunk/lima-main/src/main/resources/icons/closure.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-closure.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-config.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/config.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-config.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-export-element.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/export-element.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-export-element.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-help.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/help.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-help.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-i18n-fr.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/i18n-fr.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-i18n-fr.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-i18n-uk.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/i18n-en.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-i18n-uk.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/lima-main/src/main/resources/icons/action-import-element.png
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-import-element.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-journal.png (from rev 2733, trunk/lima-main/src/main/resources/icons/journal.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-journal.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-lettering.png (from rev 2733, trunk/lima-main/src/main/resources/icons/lettering.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-lettering.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-print.png (from rev 2733, trunk/lima-main/src/main/resources/icons/print.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-print.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-quit.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/quit.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-quit.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-rapport.png (from rev 2733, trunk/lima-main/src/main/resources/icons/rapport.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-rapport.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-search.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/search.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-search.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-site.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/site.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-site.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-transaction.png (from rev 2733, trunk/lima-main/src/main/resources/icons/transaction.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-transaction.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-translate.png (from rev 2733, trunk/lima-main/src/main/resources/icons/action/translate.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-translate.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Copied: trunk/lima-main/src/main/resources/icons/action-view.png (from rev 2733, trunk/lima-main/src/main/resources/icons/view.png)
===================================================================
(Binary files differ)
Property changes on: trunk/lima-main/src/main/resources/icons/action-view.png
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ application/octet-stream
Deleted: trunk/lima-main/src/main/resources/icons/closure-timespan.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/closure.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/journal.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/lettering.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/print.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/rapport.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/transaction.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-main/src/main/resources/icons/view.png
===================================================================
(Binary files differ)
1
0
r2733 - in trunk: . lima-dto lima-main lima-service lima-service-callao lima-service-mock lima-service-neogia
by fdesbois@users.chorem.org 04 Nov '09
by fdesbois@users.chorem.org 04 Nov '09
04 Nov '09
Author: fdesbois
Date: 2009-11-04 18:24:33 +0100 (Wed, 04 Nov 2009)
New Revision: 2733
Modified:
trunk/lima-dto/pom.xml
trunk/lima-main/pom.xml
trunk/lima-service-callao/pom.xml
trunk/lima-service-mock/pom.xml
trunk/lima-service-neogia/pom.xml
trunk/lima-service/pom.xml
trunk/pom.xml
Log:
[maven-release-plugin] prepare for next development iteration
Modified: trunk/lima-dto/pom.xml
===================================================================
--- trunk/lima-dto/pom.xml 2009-11-04 17:24:28 UTC (rev 2732)
+++ trunk/lima-dto/pom.xml 2009-11-04 17:24:33 UTC (rev 2733)
@@ -10,7 +10,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.1-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-main/pom.xml
===================================================================
--- trunk/lima-main/pom.xml 2009-11-04 17:24:28 UTC (rev 2732)
+++ trunk/lima-main/pom.xml 2009-11-04 17:24:33 UTC (rev 2733)
@@ -9,7 +9,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.1-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service/pom.xml
===================================================================
--- trunk/lima-service/pom.xml 2009-11-04 17:24:28 UTC (rev 2732)
+++ trunk/lima-service/pom.xml 2009-11-04 17:24:33 UTC (rev 2733)
@@ -8,7 +8,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.1-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-callao/pom.xml
===================================================================
--- trunk/lima-service-callao/pom.xml 2009-11-04 17:24:28 UTC (rev 2732)
+++ trunk/lima-service-callao/pom.xml 2009-11-04 17:24:33 UTC (rev 2733)
@@ -7,7 +7,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.1-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-mock/pom.xml
===================================================================
--- trunk/lima-service-mock/pom.xml 2009-11-04 17:24:28 UTC (rev 2732)
+++ trunk/lima-service-mock/pom.xml 2009-11-04 17:24:33 UTC (rev 2733)
@@ -7,7 +7,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.1-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-neogia/pom.xml
===================================================================
--- trunk/lima-service-neogia/pom.xml 2009-11-04 17:24:28 UTC (rev 2732)
+++ trunk/lima-service-neogia/pom.xml 2009-11-04 17:24:33 UTC (rev 2733)
@@ -7,7 +7,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.1-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-11-04 17:24:28 UTC (rev 2732)
+++ trunk/pom.xml 2009-11-04 17:24:33 UTC (rev 2733)
@@ -15,7 +15,7 @@
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.1-SNAPSHOT</version>
<modules>
<module>lima-dto</module>
@@ -259,10 +259,10 @@
<!-- ************************************************************* -->
<scm>
- <connection>scm:svn:http://svn.chorem.org/svn/lima/tags/lima-0.3.0</connection>
- <developerConnection>scm:svn:svn+ssh://publish@svn.chorem.org/var/lib/svn/svn-chorem/lima/tags/lima-0.3.0
+ <connection>scm:svn:http://svn.chorem.org/svn/lima/trunk</connection>
+ <developerConnection>scm:svn:svn+ssh://publish@svn.chorem.org/var/lib/svn/svn-chorem/lima/trunk
</developerConnection>
- <url>http://www.chorem.org/repositories/browse/lima/tags/lima-0.3.0</url>
+ <url>http://www.chorem.org/repositories/browse/lima/trunk</url>
</scm>
<repositories>
1
0
Author: publish
Date: 2009-11-04 18:24:28 +0100 (Wed, 04 Nov 2009)
New Revision: 2732
Added:
tags/lima-0.3.0/
Log:
[maven-scm] copy for tag lima-0.3.0
Property changes on: tags/lima-0.3.0
___________________________________________________________________
Added: svn:ignore
+ *.log
target
bin
.classpath
.project
*.ipr
*.iws
*.iml
Added: svn:mergeinfo
+
1
0
r2731 - in trunk: . lima-dto lima-main lima-service lima-service-callao lima-service-mock lima-service-neogia
by fdesbois@users.chorem.org 04 Nov '09
by fdesbois@users.chorem.org 04 Nov '09
04 Nov '09
Author: fdesbois
Date: 2009-11-04 18:24:20 +0100 (Wed, 04 Nov 2009)
New Revision: 2731
Modified:
trunk/lima-dto/pom.xml
trunk/lima-main/pom.xml
trunk/lima-service-callao/pom.xml
trunk/lima-service-mock/pom.xml
trunk/lima-service-neogia/pom.xml
trunk/lima-service/pom.xml
trunk/pom.xml
Log:
[maven-release-plugin] prepare release lima-0.3.0
Modified: trunk/lima-dto/pom.xml
===================================================================
--- trunk/lima-dto/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
+++ trunk/lima-dto/pom.xml 2009-11-04 17:24:20 UTC (rev 2731)
@@ -1,6 +1,5 @@
-<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">
+<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>
@@ -11,7 +10,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-main/pom.xml
===================================================================
--- trunk/lima-main/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
+++ trunk/lima-main/pom.xml 2009-11-04 17:24:20 UTC (rev 2731)
@@ -1,6 +1,5 @@
<?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">
+<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>
<!-- ************************************************************* -->
@@ -10,7 +9,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service/pom.xml
===================================================================
--- trunk/lima-service/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
+++ trunk/lima-service/pom.xml 2009-11-04 17:24:20 UTC (rev 2731)
@@ -1,6 +1,5 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -9,7 +8,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-callao/pom.xml
===================================================================
--- trunk/lima-service-callao/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
+++ trunk/lima-service-callao/pom.xml 2009-11-04 17:24:20 UTC (rev 2731)
@@ -1,5 +1,4 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -8,7 +7,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-mock/pom.xml
===================================================================
--- trunk/lima-service-mock/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
+++ trunk/lima-service-mock/pom.xml 2009-11-04 17:24:20 UTC (rev 2731)
@@ -1,5 +1,4 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -8,7 +7,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-neogia/pom.xml
===================================================================
--- trunk/lima-service-neogia/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
+++ trunk/lima-service-neogia/pom.xml 2009-11-04 17:24:20 UTC (rev 2731)
@@ -1,5 +1,4 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -8,7 +7,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
@@ -278,7 +277,7 @@
<configuration>
<tasks>
<copy todir="${basedir}/target/classes" verbose="${maven.verbose}" overwrite="true">
- <fileset dir="${maven.gen.dir}/resources"/>
+ <fileset dir="${maven.gen.dir}/resources" />
</copy>
</tasks>
</configuration>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
+++ trunk/pom.xml 2009-11-04 17:24:20 UTC (rev 2731)
@@ -1,339 +1,338 @@
-<?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.nuiton</groupId>
- <artifactId>mavenpom</artifactId>
- <version>1.1.0</version>
- </parent>
-
- <groupId>org.chorem</groupId>
- <artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
-
- <modules>
- <module>lima-dto</module>
- <module>lima-service</module>
- <module>lima-service-mock</module>
- <module>lima-service-neogia</module>
- <module>lima-service-callao</module>
- <module>lima-main</module>
- </modules>
-
- <dependencyManagement>
- <dependencies>
-
- <dependency>
- <groupId>org.chorem.callao</groupId>
- <artifactId>callao-service</artifactId>
- <version>0.1.1</version>
- </dependency>
-
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.3</version>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.1.1</version>
- <scope>compile</scope>
- </dependency>
-
-
- <dependency>
- <groupId>org.nuiton</groupId>
- <artifactId>nuiton-utils</artifactId>
- <version>${nuiton-utils.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.nuiton.eugene</groupId>
- <artifactId>eugene</artifactId>
- <version>${eugene.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- librairie des widgets lutin -->
- <dependency>
- <groupId>org.nuiton</groupId>
- <artifactId>nuiton-widgets</artifactId>
- <version>1.0.0-rc-2</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- librairie Jaxx -->
- <dependency>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>jaxx-runtime-swing</artifactId>
- <version>${jaxx.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>jaxx-swing-action</artifactId>
- <version>${jaxx.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>jaxx-runtime-swing-widget</artifactId>
- <version>${jaxx.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- librairie topia -->
- <dependency>
- <groupId>org.nuiton.topia</groupId>
- <artifactId>topia-persistence</artifactId>
- <version>${topia.version}</version>
- </dependency>
-
-
- <!-- librairie axis 2 -->
- <dependency>
- <groupId>org.apache.axis2</groupId>
- <artifactId>axis2</artifactId>
- <version>${axis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.axis2</groupId>
- <artifactId>axis2-xmlbeans</artifactId>
- <version>${axis.version}</version>
- </dependency>
-
- <!-- autres libraires -->
- <dependency>
- <groupId>org.swinglabs</groupId>
- <artifactId>swingx</artifactId>
- <version>${swing.version}</version>
- </dependency>
-
- <dependency>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- <version>1.6.1</version>
- </dependency>
- <!--dependency>
- <groupId>com.sun</groupId>
- <artifactId>jlfgr</artifactId>
- <version>1.0</version>
- </dependency-->
-
- <dependency>
- <groupId>net.sf.opencsv</groupId>
- <artifactId>opencsv</artifactId>
- <version>1.8</version>
- </dependency>
-
- </dependencies>
- </dependencyManagement>
-
- <!-- ************************************************************* -->
- <!-- *** Project Information ************************************* -->
- <!-- ************************************************************* -->
-
- <name>Lima</name>
- <description>Lima project super pom</description>
- <inceptionYear>2008</inceptionYear>
- <url>http://maven-site.chorem.org/lima</url>
-
-
- <licenses>
- <license>
- <name>General Public License (GPL)</name>
- <url>${maven.license.file}</url>
- <distribution>local</distribution>
- </license>
- </licenses>
-
- <!-- Developpers, contributors... -->
- <developers>
- <developer>
- <id>remi</id>
- <name>Rémi Chapelet</name>
- <email>chapelet(a)codelutin.com</email>
- <organization>Code Lutin</organization>
- <organizationUrl>http://www.codelutin.com</organizationUrl>
- <timezone>+2</timezone>
- <roles>
- <role>Développeur</role>
- </roles>
- </developer>
- <developer>
- <id>eduardo</id>
- <name>eduardo</name>
- <email>ore(a)codelutin.com</email>
- <organization>Code Lutin</organization>
- <organizationUrl>http://www.codelutin.com</organizationUrl>
- <timezone>+2</timezone>
- <roles>
- <role>Développeur</role>
- </roles>
- </developer>
- </developers>
-
- <!-- ************************************************************* -->
- <!-- *** Build Settings ****************************************** -->
- <!-- ************************************************************* -->
- <packaging>pom</packaging>
-
- <properties>
- <platform>chorem.org</platform>
- <projectId>lima</projectId>
-
- <!-- customized libs version -->
-
- <eugene.version>1.0.0</eugene.version>
- <nuiton-utils.version>1.1.1</nuiton-utils.version>
- <topia.version>2.2.0</topia.version>
- <jaxx.version>1.7.1</jaxx.version>
- <i18n.version>1.0.1</i18n.version>
-
- <!--commandline.version>1.0-SNAPSHOT</commandline.version-->
-
- <!--axis.version>1.4.1</axis.version-->
- <!-- 1.4 and 1.4.1 breaks jnlp with corrupt jar -->
- <axis.version>1.3</axis.version>
- <swing.version>1.0</swing.version>
-
- <!-- license to use -->
- <license.licenseName>gpl_v3</license.licenseName>
- <!-- do not deploy build artifacts -->
- <helper.includeAttached>false</helper.includeAttached>
- </properties>
-
-
- <build>
- <defaultGoal>install</defaultGoal>
-
- <pluginManagement>
- <plugins>
-
- <plugin>
- <groupId>org.nuiton.eugene</groupId>
- <artifactId>maven-eugene-plugin</artifactId>
- <version>${eugene.version}</version>
- </plugin>
-
- <!-- plugin i18n -->
- <plugin>
- <groupId>org.nuiton.i18n</groupId>
- <artifactId>maven-i18n-plugin</artifactId>
- <version>${i18n.version}</version>
- </plugin>
-
- <plugin>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>maven-jaxx-plugin</artifactId>
- <version>${jaxx.version}</version>
- </plugin>
-
- <plugin>
- <artifactId>maven-site-plugin</artifactId>
- <dependencies>
- <dependency>
- <groupId>org.nuiton.jrst</groupId>
- <artifactId>doxia-module-jrst</artifactId>
- <version>${jrst.version}</version>
- </dependency>
- </dependencies>
- </plugin>
-
- </plugins>
- </pluginManagement>
-
- </build>
-
- <!-- ************************************************************* -->
- <!-- *** Build Environment ************************************** -->
- <!-- ************************************************************* -->
-
- <scm>
- <connection>scm:svn:http://svn.chorem.org/svn/lima/trunk</connection>
- <developerConnection>scm:svn:svn+ssh://publish@svn.chorem.org/var/lib/svn/svn-chorem/lima/trunk
- </developerConnection>
- <url>http://www.chorem.org/repositories/browse/lima/trunk</url>
- </scm>
-
- <repositories>
-
- <!-- depot des releases nuiton -->
-
- <repository>
- <id>nuiton.release</id>
- <name>NuitonReleaseRepository</name>
- <url>http://maven.nuiton.org/release</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- <checksumPolicy>warn</checksumPolicy>
- </releases>
- </repository>
-
-
- <!-- depot des snapshots nuiton -->
-
- <repository>
- <id>nuiton.snapshot</id>
- <name>NuitonSnapshotRepository</name>
- <url>http://maven.nuiton.org/snapshot</url>
- <snapshots>
- <enabled>true</enabled>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
-
- </repositories>
-
- <pluginRepositories>
-
- <!-- depot des releases nuiton -->
-
- <pluginRepository>
-
- <id>nuiton.release</id>
- <name>NuitonReleaseRepository</name>
- <url>http://maven.nuiton.org/release</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- <checksumPolicy>warn</checksumPolicy>
- </releases>
- </pluginRepository>
-
- <!-- depot des snapshots nuiton -->
-
- <pluginRepository>
- <id>nuiton.snapshot</id>
- <name>NuitonSnapshotRepository</name>
- <url>http://maven.nuiton.org/snapshot</url>
- <snapshots>
- <enabled>true</enabled>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </pluginRepository>
-
- </pluginRepositories>
-
-</project>
+<?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.nuiton</groupId>
+ <artifactId>mavenpom</artifactId>
+ <version>1.1.0</version>
+ </parent>
+
+ <groupId>org.chorem</groupId>
+ <artifactId>lima</artifactId>
+ <version>0.3.0</version>
+
+ <modules>
+ <module>lima-dto</module>
+ <module>lima-service</module>
+ <module>lima-service-mock</module>
+ <module>lima-service-neogia</module>
+ <module>lima-service-callao</module>
+ <module>lima-main</module>
+ </modules>
+
+ <dependencyManagement>
+ <dependencies>
+
+ <dependency>
+ <groupId>org.chorem.callao</groupId>
+ <artifactId>callao-service</artifactId>
+ <version>0.1.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.3</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ <scope>compile</scope>
+ </dependency>
+
+
+ <dependency>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-utils</artifactId>
+ <version>${nuiton-utils.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.eugene</groupId>
+ <artifactId>eugene</artifactId>
+ <version>${eugene.version}</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- librairie des widgets lutin -->
+ <dependency>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-widgets</artifactId>
+ <version>1.0.0-rc-2</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- librairie Jaxx -->
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-runtime-swing</artifactId>
+ <version>${jaxx.version}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-swing-action</artifactId>
+ <version>${jaxx.version}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-runtime-swing-widget</artifactId>
+ <version>${jaxx.version}</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- librairie topia -->
+ <dependency>
+ <groupId>org.nuiton.topia</groupId>
+ <artifactId>topia-persistence</artifactId>
+ <version>${topia.version}</version>
+ </dependency>
+
+
+ <!-- librairie axis 2 -->
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2</artifactId>
+ <version>${axis.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-xmlbeans</artifactId>
+ <version>${axis.version}</version>
+ </dependency>
+
+ <!-- autres libraires -->
+ <dependency>
+ <groupId>org.swinglabs</groupId>
+ <artifactId>swingx</artifactId>
+ <version>${swing.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ </dependency>
+ <!--dependency>
+ <groupId>com.sun</groupId>
+ <artifactId>jlfgr</artifactId>
+ <version>1.0</version>
+ </dependency-->
+
+ <dependency>
+ <groupId>net.sf.opencsv</groupId>
+ <artifactId>opencsv</artifactId>
+ <version>1.8</version>
+ </dependency>
+
+ </dependencies>
+ </dependencyManagement>
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>Lima</name>
+ <description>Lima project super pom</description>
+ <inceptionYear>2008</inceptionYear>
+ <url>http://maven-site.chorem.org/lima</url>
+
+
+ <licenses>
+ <license>
+ <name>General Public License (GPL)</name>
+ <url>${maven.license.file}</url>
+ <distribution>local</distribution>
+ </license>
+ </licenses>
+
+ <!-- Developpers, contributors... -->
+ <developers>
+ <developer>
+ <id>remi</id>
+ <name>Rémi Chapelet</name>
+ <email>chapelet(a)codelutin.com</email>
+ <organization>Code Lutin</organization>
+ <organizationUrl>http://www.codelutin.com</organizationUrl>
+ <timezone>+2</timezone>
+ <roles>
+ <role>Développeur</role>
+ </roles>
+ </developer>
+ <developer>
+ <id>eduardo</id>
+ <name>eduardo</name>
+ <email>ore(a)codelutin.com</email>
+ <organization>Code Lutin</organization>
+ <organizationUrl>http://www.codelutin.com</organizationUrl>
+ <timezone>+2</timezone>
+ <roles>
+ <role>Développeur</role>
+ </roles>
+ </developer>
+ </developers>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+ <packaging>pom</packaging>
+
+ <properties>
+ <platform>chorem.org</platform>
+ <projectId>lima</projectId>
+
+ <!-- customized libs version -->
+
+ <eugene.version>1.0.0</eugene.version>
+ <nuiton-utils.version>1.1.1</nuiton-utils.version>
+ <topia.version>2.2.0</topia.version>
+ <jaxx.version>1.7.1</jaxx.version>
+ <i18n.version>1.0.1</i18n.version>
+
+ <!--commandline.version>1.0-SNAPSHOT</commandline.version-->
+
+ <!--axis.version>1.4.1</axis.version-->
+ <!-- 1.4 and 1.4.1 breaks jnlp with corrupt jar -->
+ <axis.version>1.3</axis.version>
+ <swing.version>1.0</swing.version>
+
+ <!-- license to use -->
+ <license.licenseName>gpl_v3</license.licenseName>
+ <!-- do not deploy build artifacts -->
+ <helper.includeAttached>false</helper.includeAttached>
+ </properties>
+
+
+ <build>
+ <defaultGoal>install</defaultGoal>
+
+ <pluginManagement>
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton.eugene</groupId>
+ <artifactId>maven-eugene-plugin</artifactId>
+ <version>${eugene.version}</version>
+ </plugin>
+
+ <!-- plugin i18n -->
+ <plugin>
+ <groupId>org.nuiton.i18n</groupId>
+ <artifactId>maven-i18n-plugin</artifactId>
+ <version>${i18n.version}</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <version>${jaxx.version}</version>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.nuiton.jrst</groupId>
+ <artifactId>doxia-module-jrst</artifactId>
+ <version>${jrst.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
+ </plugins>
+ </pluginManagement>
+
+ </build>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Environment ************************************** -->
+ <!-- ************************************************************* -->
+
+ <scm>
+ <connection>scm:svn:http://svn.chorem.org/svn/lima/tags/lima-0.3.0</connection>
+ <developerConnection>scm:svn:svn+ssh://publish@svn.chorem.org/var/lib/svn/svn-chorem/lima/tags/lima-0.3.0
+ </developerConnection>
+ <url>http://www.chorem.org/repositories/browse/lima/tags/lima-0.3.0</url>
+ </scm>
+
+ <repositories>
+
+ <!-- depot des releases nuiton -->
+
+ <repository>
+ <id>nuiton.release</id>
+ <name>NuitonReleaseRepository</name>
+ <url>http://maven.nuiton.org/release</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ </repository>
+
+
+ <!-- depot des snapshots nuiton -->
+
+ <repository>
+ <id>nuiton.snapshot</id>
+ <name>NuitonSnapshotRepository</name>
+ <url>http://maven.nuiton.org/snapshot</url>
+ <snapshots>
+ <enabled>true</enabled>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+
+ </repositories>
+
+ <pluginRepositories>
+
+ <!-- depot des releases nuiton -->
+
+ <pluginRepository>
+
+ <id>nuiton.release</id>
+ <name>NuitonReleaseRepository</name>
+ <url>http://maven.nuiton.org/release</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ </pluginRepository>
+
+ <!-- depot des snapshots nuiton -->
+
+ <pluginRepository>
+ <id>nuiton.snapshot</id>
+ <name>NuitonSnapshotRepository</name>
+ <url>http://maven.nuiton.org/snapshot</url>
+ <snapshots>
+ <enabled>true</enabled>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </pluginRepository>
+
+ </pluginRepositories>
+
+</project>
1
0
r2730 - in trunk: . lima-dto lima-main lima-service lima-service-callao lima-service-mock lima-service-neogia
by fdesbois@users.chorem.org 04 Nov '09
by fdesbois@users.chorem.org 04 Nov '09
04 Nov '09
Author: fdesbois
Date: 2009-11-04 18:21:54 +0100 (Wed, 04 Nov 2009)
New Revision: 2730
Modified:
trunk/lima-dto/pom.xml
trunk/lima-main/pom.xml
trunk/lima-service-callao/pom.xml
trunk/lima-service-mock/pom.xml
trunk/lima-service-neogia/pom.xml
trunk/lima-service/pom.xml
trunk/pom.xml
Log:
[maven-release-plugin] rollback the release of lima-0.3.0
Modified: trunk/lima-dto/pom.xml
===================================================================
--- trunk/lima-dto/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
+++ trunk/lima-dto/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
@@ -1,5 +1,6 @@
-<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">
+<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>
@@ -10,7 +11,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.0-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-main/pom.xml
===================================================================
--- trunk/lima-main/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
+++ trunk/lima-main/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
@@ -1,5 +1,6 @@
<?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">
+<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>
<!-- ************************************************************* -->
@@ -9,7 +10,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.0-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service/pom.xml
===================================================================
--- trunk/lima-service/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
+++ trunk/lima-service/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
@@ -1,5 +1,6 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -8,7 +9,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.0-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-callao/pom.xml
===================================================================
--- trunk/lima-service-callao/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
+++ trunk/lima-service-callao/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
@@ -1,4 +1,5 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -7,7 +8,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.0-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-mock/pom.xml
===================================================================
--- trunk/lima-service-mock/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
+++ trunk/lima-service-mock/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
@@ -1,4 +1,5 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -7,7 +8,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.0-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-neogia/pom.xml
===================================================================
--- trunk/lima-service-neogia/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
+++ trunk/lima-service-neogia/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
@@ -1,4 +1,5 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -7,7 +8,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0</version>
+ <version>0.3.0-SNAPSHOT</version>
</parent>
<groupId>org.chorem.lima</groupId>
@@ -277,7 +278,7 @@
<configuration>
<tasks>
<copy todir="${basedir}/target/classes" verbose="${maven.verbose}" overwrite="true">
- <fileset dir="${maven.gen.dir}/resources" />
+ <fileset dir="${maven.gen.dir}/resources"/>
</copy>
</tasks>
</configuration>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
+++ trunk/pom.xml 2009-11-04 17:21:54 UTC (rev 2730)
@@ -1,338 +1,339 @@
-<?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.nuiton</groupId>
- <artifactId>mavenpom</artifactId>
- <version>1.1.0</version>
- </parent>
-
- <groupId>org.chorem</groupId>
- <artifactId>lima</artifactId>
- <version>0.3.0</version>
-
- <modules>
- <module>lima-dto</module>
- <module>lima-service</module>
- <module>lima-service-mock</module>
- <module>lima-service-neogia</module>
- <module>lima-service-callao</module>
- <module>lima-main</module>
- </modules>
-
- <dependencyManagement>
- <dependencies>
-
- <dependency>
- <groupId>org.chorem.callao</groupId>
- <artifactId>callao-service</artifactId>
- <version>0.1.1</version>
- </dependency>
-
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.3</version>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.1.1</version>
- <scope>compile</scope>
- </dependency>
-
-
- <dependency>
- <groupId>org.nuiton</groupId>
- <artifactId>nuiton-utils</artifactId>
- <version>${nuiton-utils.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.nuiton.eugene</groupId>
- <artifactId>eugene</artifactId>
- <version>${eugene.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- librairie des widgets lutin -->
- <dependency>
- <groupId>org.nuiton</groupId>
- <artifactId>nuiton-widgets</artifactId>
- <version>1.0.0-rc-2</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- librairie Jaxx -->
- <dependency>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>jaxx-runtime-swing</artifactId>
- <version>${jaxx.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>jaxx-swing-action</artifactId>
- <version>${jaxx.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>jaxx-runtime-swing-widget</artifactId>
- <version>${jaxx.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- librairie topia -->
- <dependency>
- <groupId>org.nuiton.topia</groupId>
- <artifactId>topia-persistence</artifactId>
- <version>${topia.version}</version>
- </dependency>
-
-
- <!-- librairie axis 2 -->
- <dependency>
- <groupId>org.apache.axis2</groupId>
- <artifactId>axis2</artifactId>
- <version>${axis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.axis2</groupId>
- <artifactId>axis2-xmlbeans</artifactId>
- <version>${axis.version}</version>
- </dependency>
-
- <!-- autres libraires -->
- <dependency>
- <groupId>org.swinglabs</groupId>
- <artifactId>swingx</artifactId>
- <version>${swing.version}</version>
- </dependency>
-
- <dependency>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- <version>1.6.1</version>
- </dependency>
- <!--dependency>
- <groupId>com.sun</groupId>
- <artifactId>jlfgr</artifactId>
- <version>1.0</version>
- </dependency-->
-
- <dependency>
- <groupId>net.sf.opencsv</groupId>
- <artifactId>opencsv</artifactId>
- <version>1.8</version>
- </dependency>
-
- </dependencies>
- </dependencyManagement>
-
- <!-- ************************************************************* -->
- <!-- *** Project Information ************************************* -->
- <!-- ************************************************************* -->
-
- <name>Lima</name>
- <description>Lima project super pom</description>
- <inceptionYear>2008</inceptionYear>
- <url>http://maven-site.chorem.org/lima</url>
-
-
- <licenses>
- <license>
- <name>General Public License (GPL)</name>
- <url>${maven.license.file}</url>
- <distribution>local</distribution>
- </license>
- </licenses>
-
- <!-- Developpers, contributors... -->
- <developers>
- <developer>
- <id>remi</id>
- <name>Rémi Chapelet</name>
- <email>chapelet(a)codelutin.com</email>
- <organization>Code Lutin</organization>
- <organizationUrl>http://www.codelutin.com</organizationUrl>
- <timezone>+2</timezone>
- <roles>
- <role>Développeur</role>
- </roles>
- </developer>
- <developer>
- <id>eduardo</id>
- <name>eduardo</name>
- <email>ore(a)codelutin.com</email>
- <organization>Code Lutin</organization>
- <organizationUrl>http://www.codelutin.com</organizationUrl>
- <timezone>+2</timezone>
- <roles>
- <role>Développeur</role>
- </roles>
- </developer>
- </developers>
-
- <!-- ************************************************************* -->
- <!-- *** Build Settings ****************************************** -->
- <!-- ************************************************************* -->
- <packaging>pom</packaging>
-
- <properties>
- <platform>chorem.org</platform>
- <projectId>lima</projectId>
-
- <!-- customized libs version -->
-
- <eugene.version>1.0.0</eugene.version>
- <nuiton-utils.version>1.1.1</nuiton-utils.version>
- <topia.version>2.2.0</topia.version>
- <jaxx.version>1.7.1</jaxx.version>
- <i18n.version>1.0.1</i18n.version>
-
- <!--commandline.version>1.0-SNAPSHOT</commandline.version-->
-
- <!--axis.version>1.4.1</axis.version-->
- <!-- 1.4 and 1.4.1 breaks jnlp with corrupt jar -->
- <axis.version>1.3</axis.version>
- <swing.version>1.0</swing.version>
-
- <!-- license to use -->
- <license.licenseName>gpl_v3</license.licenseName>
- <!-- do not deploy build artifacts -->
- <helper.includeAttached>false</helper.includeAttached>
- </properties>
-
-
- <build>
- <defaultGoal>install</defaultGoal>
-
- <pluginManagement>
- <plugins>
-
- <plugin>
- <groupId>org.nuiton.eugene</groupId>
- <artifactId>maven-eugene-plugin</artifactId>
- <version>${eugene.version}</version>
- </plugin>
-
- <!-- plugin i18n -->
- <plugin>
- <groupId>org.nuiton.i18n</groupId>
- <artifactId>maven-i18n-plugin</artifactId>
- <version>${i18n.version}</version>
- </plugin>
-
- <plugin>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>maven-jaxx-plugin</artifactId>
- <version>${jaxx.version}</version>
- </plugin>
-
- <plugin>
- <artifactId>maven-site-plugin</artifactId>
- <dependencies>
- <dependency>
- <groupId>org.nuiton.jrst</groupId>
- <artifactId>doxia-module-jrst</artifactId>
- <version>${jrst.version}</version>
- </dependency>
- </dependencies>
- </plugin>
-
- </plugins>
- </pluginManagement>
-
- </build>
-
- <!-- ************************************************************* -->
- <!-- *** Build Environment ************************************** -->
- <!-- ************************************************************* -->
-
- <scm>
- <connection>scm:svn:http://svn.chorem.org/svn/lima/tags/lima-0.3.0</connection>
- <developerConnection>scm:svn:svn+ssh://publish@svn.chorem.org/var/lib/svn/svn-chorem/lima/tags/lima-0.3.0
- </developerConnection>
- <url>http://www.chorem.org/repositories/browse/lima/tags/lima-0.3.0</url>
- </scm>
-
- <repositories>
-
- <!-- depot des releases nuiton -->
-
- <repository>
- <id>nuiton.release</id>
- <name>NuitonReleaseRepository</name>
- <url>http://maven.nuiton.org/release</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- <checksumPolicy>warn</checksumPolicy>
- </releases>
- </repository>
-
-
- <!-- depot des snapshots nuiton -->
-
- <repository>
- <id>nuiton.snapshot</id>
- <name>NuitonSnapshotRepository</name>
- <url>http://maven.nuiton.org/snapshot</url>
- <snapshots>
- <enabled>true</enabled>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
-
- </repositories>
-
- <pluginRepositories>
-
- <!-- depot des releases nuiton -->
-
- <pluginRepository>
-
- <id>nuiton.release</id>
- <name>NuitonReleaseRepository</name>
- <url>http://maven.nuiton.org/release</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- <checksumPolicy>warn</checksumPolicy>
- </releases>
- </pluginRepository>
-
- <!-- depot des snapshots nuiton -->
-
- <pluginRepository>
- <id>nuiton.snapshot</id>
- <name>NuitonSnapshotRepository</name>
- <url>http://maven.nuiton.org/snapshot</url>
- <snapshots>
- <enabled>true</enabled>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </pluginRepository>
-
- </pluginRepositories>
-
-</project>
+<?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.nuiton</groupId>
+ <artifactId>mavenpom</artifactId>
+ <version>1.1.0</version>
+ </parent>
+
+ <groupId>org.chorem</groupId>
+ <artifactId>lima</artifactId>
+ <version>0.3.0-SNAPSHOT</version>
+
+ <modules>
+ <module>lima-dto</module>
+ <module>lima-service</module>
+ <module>lima-service-mock</module>
+ <module>lima-service-neogia</module>
+ <module>lima-service-callao</module>
+ <module>lima-main</module>
+ </modules>
+
+ <dependencyManagement>
+ <dependencies>
+
+ <dependency>
+ <groupId>org.chorem.callao</groupId>
+ <artifactId>callao-service</artifactId>
+ <version>0.1.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.3</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ <scope>compile</scope>
+ </dependency>
+
+
+ <dependency>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-utils</artifactId>
+ <version>${nuiton-utils.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.eugene</groupId>
+ <artifactId>eugene</artifactId>
+ <version>${eugene.version}</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- librairie des widgets lutin -->
+ <dependency>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-widgets</artifactId>
+ <version>1.0.0-rc-2</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- librairie Jaxx -->
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-runtime-swing</artifactId>
+ <version>${jaxx.version}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-swing-action</artifactId>
+ <version>${jaxx.version}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-runtime-swing-widget</artifactId>
+ <version>${jaxx.version}</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- librairie topia -->
+ <dependency>
+ <groupId>org.nuiton.topia</groupId>
+ <artifactId>topia-persistence</artifactId>
+ <version>${topia.version}</version>
+ </dependency>
+
+
+ <!-- librairie axis 2 -->
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2</artifactId>
+ <version>${axis.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-xmlbeans</artifactId>
+ <version>${axis.version}</version>
+ </dependency>
+
+ <!-- autres libraires -->
+ <dependency>
+ <groupId>org.swinglabs</groupId>
+ <artifactId>swingx</artifactId>
+ <version>${swing.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ </dependency>
+ <!--dependency>
+ <groupId>com.sun</groupId>
+ <artifactId>jlfgr</artifactId>
+ <version>1.0</version>
+ </dependency-->
+
+ <dependency>
+ <groupId>net.sf.opencsv</groupId>
+ <artifactId>opencsv</artifactId>
+ <version>1.8</version>
+ </dependency>
+
+ </dependencies>
+ </dependencyManagement>
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>Lima</name>
+ <description>Lima project super pom</description>
+ <inceptionYear>2008</inceptionYear>
+ <url>http://maven-site.chorem.org/lima</url>
+
+
+ <licenses>
+ <license>
+ <name>General Public License (GPL)</name>
+ <url>${maven.license.file}</url>
+ <distribution>local</distribution>
+ </license>
+ </licenses>
+
+ <!-- Developpers, contributors... -->
+ <developers>
+ <developer>
+ <id>remi</id>
+ <name>Rémi Chapelet</name>
+ <email>chapelet(a)codelutin.com</email>
+ <organization>Code Lutin</organization>
+ <organizationUrl>http://www.codelutin.com</organizationUrl>
+ <timezone>+2</timezone>
+ <roles>
+ <role>Développeur</role>
+ </roles>
+ </developer>
+ <developer>
+ <id>eduardo</id>
+ <name>eduardo</name>
+ <email>ore(a)codelutin.com</email>
+ <organization>Code Lutin</organization>
+ <organizationUrl>http://www.codelutin.com</organizationUrl>
+ <timezone>+2</timezone>
+ <roles>
+ <role>Développeur</role>
+ </roles>
+ </developer>
+ </developers>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+ <packaging>pom</packaging>
+
+ <properties>
+ <platform>chorem.org</platform>
+ <projectId>lima</projectId>
+
+ <!-- customized libs version -->
+
+ <eugene.version>1.0.0</eugene.version>
+ <nuiton-utils.version>1.1.1</nuiton-utils.version>
+ <topia.version>2.2.0</topia.version>
+ <jaxx.version>1.7.1</jaxx.version>
+ <i18n.version>1.0.1</i18n.version>
+
+ <!--commandline.version>1.0-SNAPSHOT</commandline.version-->
+
+ <!--axis.version>1.4.1</axis.version-->
+ <!-- 1.4 and 1.4.1 breaks jnlp with corrupt jar -->
+ <axis.version>1.3</axis.version>
+ <swing.version>1.0</swing.version>
+
+ <!-- license to use -->
+ <license.licenseName>gpl_v3</license.licenseName>
+ <!-- do not deploy build artifacts -->
+ <helper.includeAttached>false</helper.includeAttached>
+ </properties>
+
+
+ <build>
+ <defaultGoal>install</defaultGoal>
+
+ <pluginManagement>
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton.eugene</groupId>
+ <artifactId>maven-eugene-plugin</artifactId>
+ <version>${eugene.version}</version>
+ </plugin>
+
+ <!-- plugin i18n -->
+ <plugin>
+ <groupId>org.nuiton.i18n</groupId>
+ <artifactId>maven-i18n-plugin</artifactId>
+ <version>${i18n.version}</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <version>${jaxx.version}</version>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.nuiton.jrst</groupId>
+ <artifactId>doxia-module-jrst</artifactId>
+ <version>${jrst.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
+ </plugins>
+ </pluginManagement>
+
+ </build>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Environment ************************************** -->
+ <!-- ************************************************************* -->
+
+ <scm>
+ <connection>scm:svn:http://svn.chorem.org/svn/lima/trunk</connection>
+ <developerConnection>scm:svn:svn+ssh://publish@svn.chorem.org/var/lib/svn/svn-chorem/lima/trunk
+ </developerConnection>
+ <url>http://www.chorem.org/repositories/browse/lima/trunk</url>
+ </scm>
+
+ <repositories>
+
+ <!-- depot des releases nuiton -->
+
+ <repository>
+ <id>nuiton.release</id>
+ <name>NuitonReleaseRepository</name>
+ <url>http://maven.nuiton.org/release</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ </repository>
+
+
+ <!-- depot des snapshots nuiton -->
+
+ <repository>
+ <id>nuiton.snapshot</id>
+ <name>NuitonSnapshotRepository</name>
+ <url>http://maven.nuiton.org/snapshot</url>
+ <snapshots>
+ <enabled>true</enabled>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+
+ </repositories>
+
+ <pluginRepositories>
+
+ <!-- depot des releases nuiton -->
+
+ <pluginRepository>
+
+ <id>nuiton.release</id>
+ <name>NuitonReleaseRepository</name>
+ <url>http://maven.nuiton.org/release</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ </pluginRepository>
+
+ <!-- depot des snapshots nuiton -->
+
+ <pluginRepository>
+ <id>nuiton.snapshot</id>
+ <name>NuitonSnapshotRepository</name>
+ <url>http://maven.nuiton.org/snapshot</url>
+ <snapshots>
+ <enabled>true</enabled>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </pluginRepository>
+
+ </pluginRepositories>
+
+</project>
1
0
r2729 - in trunk: . lima-dto lima-main lima-service lima-service-callao lima-service-mock lima-service-neogia
by fdesbois@users.chorem.org 04 Nov '09
by fdesbois@users.chorem.org 04 Nov '09
04 Nov '09
Author: fdesbois
Date: 2009-11-04 18:21:07 +0100 (Wed, 04 Nov 2009)
New Revision: 2729
Modified:
trunk/lima-dto/pom.xml
trunk/lima-main/pom.xml
trunk/lima-service-callao/pom.xml
trunk/lima-service-mock/pom.xml
trunk/lima-service-neogia/pom.xml
trunk/lima-service/pom.xml
trunk/pom.xml
Log:
[maven-release-plugin] prepare release lima-0.3.0
Modified: trunk/lima-dto/pom.xml
===================================================================
--- trunk/lima-dto/pom.xml 2009-11-04 17:20:10 UTC (rev 2728)
+++ trunk/lima-dto/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
@@ -1,6 +1,5 @@
-<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">
+<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>
@@ -11,7 +10,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-main/pom.xml
===================================================================
--- trunk/lima-main/pom.xml 2009-11-04 17:20:10 UTC (rev 2728)
+++ trunk/lima-main/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
@@ -1,6 +1,5 @@
<?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">
+<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>
<!-- ************************************************************* -->
@@ -10,7 +9,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service/pom.xml
===================================================================
--- trunk/lima-service/pom.xml 2009-11-04 17:20:10 UTC (rev 2728)
+++ trunk/lima-service/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
@@ -1,6 +1,5 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -9,7 +8,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-callao/pom.xml
===================================================================
--- trunk/lima-service-callao/pom.xml 2009-11-04 17:20:10 UTC (rev 2728)
+++ trunk/lima-service-callao/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
@@ -1,5 +1,4 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -8,7 +7,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-mock/pom.xml
===================================================================
--- trunk/lima-service-mock/pom.xml 2009-11-04 17:20:10 UTC (rev 2728)
+++ trunk/lima-service-mock/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
@@ -1,5 +1,4 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -8,7 +7,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
Modified: trunk/lima-service-neogia/pom.xml
===================================================================
--- trunk/lima-service-neogia/pom.xml 2009-11-04 17:20:10 UTC (rev 2728)
+++ trunk/lima-service-neogia/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
@@ -1,5 +1,4 @@
-<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">
+<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>
<!-- ************************************************************* -->
@@ -8,7 +7,7 @@
<parent>
<groupId>org.chorem</groupId>
<artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
+ <version>0.3.0</version>
</parent>
<groupId>org.chorem.lima</groupId>
@@ -278,7 +277,7 @@
<configuration>
<tasks>
<copy todir="${basedir}/target/classes" verbose="${maven.verbose}" overwrite="true">
- <fileset dir="${maven.gen.dir}/resources"/>
+ <fileset dir="${maven.gen.dir}/resources" />
</copy>
</tasks>
</configuration>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-11-04 17:20:10 UTC (rev 2728)
+++ trunk/pom.xml 2009-11-04 17:21:07 UTC (rev 2729)
@@ -1,339 +1,338 @@
-<?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.nuiton</groupId>
- <artifactId>mavenpom</artifactId>
- <version>1.1.0</version>
- </parent>
-
- <groupId>org.chorem</groupId>
- <artifactId>lima</artifactId>
- <version>0.3.0-SNAPSHOT</version>
-
- <modules>
- <module>lima-dto</module>
- <module>lima-service</module>
- <module>lima-service-mock</module>
- <module>lima-service-neogia</module>
- <module>lima-service-callao</module>
- <module>lima-main</module>
- </modules>
-
- <dependencyManagement>
- <dependencies>
-
- <dependency>
- <groupId>org.chorem.callao</groupId>
- <artifactId>callao-service</artifactId>
- <version>0.1.1</version>
- </dependency>
-
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.3</version>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.1.1</version>
- <scope>compile</scope>
- </dependency>
-
-
- <dependency>
- <groupId>org.nuiton</groupId>
- <artifactId>nuiton-utils</artifactId>
- <version>${nuiton-utils.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.nuiton.eugene</groupId>
- <artifactId>eugene</artifactId>
- <version>${eugene.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- librairie des widgets lutin -->
- <dependency>
- <groupId>org.nuiton</groupId>
- <artifactId>nuiton-widgets</artifactId>
- <version>1.0.0-rc-2</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- librairie Jaxx -->
- <dependency>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>jaxx-runtime-swing</artifactId>
- <version>${jaxx.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>jaxx-swing-action</artifactId>
- <version>${jaxx.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>jaxx-runtime-swing-widget</artifactId>
- <version>${jaxx.version}</version>
- <scope>compile</scope>
- </dependency>
-
- <!-- librairie topia -->
- <dependency>
- <groupId>org.nuiton.topia</groupId>
- <artifactId>topia-persistence</artifactId>
- <version>${topia.version}</version>
- </dependency>
-
-
- <!-- librairie axis 2 -->
- <dependency>
- <groupId>org.apache.axis2</groupId>
- <artifactId>axis2</artifactId>
- <version>${axis.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.axis2</groupId>
- <artifactId>axis2-xmlbeans</artifactId>
- <version>${axis.version}</version>
- </dependency>
-
- <!-- autres libraires -->
- <dependency>
- <groupId>org.swinglabs</groupId>
- <artifactId>swingx</artifactId>
- <version>${swing.version}</version>
- </dependency>
-
- <dependency>
- <groupId>dom4j</groupId>
- <artifactId>dom4j</artifactId>
- <version>1.6.1</version>
- </dependency>
- <!--dependency>
- <groupId>com.sun</groupId>
- <artifactId>jlfgr</artifactId>
- <version>1.0</version>
- </dependency-->
-
- <dependency>
- <groupId>net.sf.opencsv</groupId>
- <artifactId>opencsv</artifactId>
- <version>1.8</version>
- </dependency>
-
- </dependencies>
- </dependencyManagement>
-
- <!-- ************************************************************* -->
- <!-- *** Project Information ************************************* -->
- <!-- ************************************************************* -->
-
- <name>Lima</name>
- <description>Lima project super pom</description>
- <inceptionYear>2008</inceptionYear>
- <url>http://maven-site.chorem.org/lima</url>
-
-
- <licenses>
- <license>
- <name>General Public License (GPL)</name>
- <url>${maven.license.file}</url>
- <distribution>local</distribution>
- </license>
- </licenses>
-
- <!-- Developpers, contributors... -->
- <developers>
- <developer>
- <id>remi</id>
- <name>Rémi Chapelet</name>
- <email>chapelet(a)codelutin.com</email>
- <organization>Code Lutin</organization>
- <organizationUrl>http://www.codelutin.com</organizationUrl>
- <timezone>+2</timezone>
- <roles>
- <role>Développeur</role>
- </roles>
- </developer>
- <developer>
- <id>eduardo</id>
- <name>eduardo</name>
- <email>ore(a)codelutin.com</email>
- <organization>Code Lutin</organization>
- <organizationUrl>http://www.codelutin.com</organizationUrl>
- <timezone>+2</timezone>
- <roles>
- <role>Développeur</role>
- </roles>
- </developer>
- </developers>
-
- <!-- ************************************************************* -->
- <!-- *** Build Settings ****************************************** -->
- <!-- ************************************************************* -->
- <packaging>pom</packaging>
-
- <properties>
- <platform>chorem.org</platform>
- <projectId>lima</projectId>
-
- <!-- customized libs version -->
-
- <eugene.version>1.0.0</eugene.version>
- <nuiton-utils.version>1.1.1</nuiton-utils.version>
- <topia.version>2.2.0</topia.version>
- <jaxx.version>1.7.1</jaxx.version>
- <i18n.version>1.0.1</i18n.version>
-
- <!--commandline.version>1.0-SNAPSHOT</commandline.version-->
-
- <!--axis.version>1.4.1</axis.version-->
- <!-- 1.4 and 1.4.1 breaks jnlp with corrupt jar -->
- <axis.version>1.3</axis.version>
- <swing.version>1.0</swing.version>
-
- <!-- license to use -->
- <license.licenseName>gpl_v3</license.licenseName>
- <!-- do not deploy build artifacts -->
- <helper.includeAttached>false</helper.includeAttached>
- </properties>
-
-
- <build>
- <defaultGoal>install</defaultGoal>
-
- <pluginManagement>
- <plugins>
-
- <plugin>
- <groupId>org.nuiton.eugene</groupId>
- <artifactId>maven-eugene-plugin</artifactId>
- <version>${eugene.version}</version>
- </plugin>
-
- <!-- plugin i18n -->
- <plugin>
- <groupId>org.nuiton.i18n</groupId>
- <artifactId>maven-i18n-plugin</artifactId>
- <version>${i18n.version}</version>
- </plugin>
-
- <plugin>
- <groupId>org.nuiton.jaxx</groupId>
- <artifactId>maven-jaxx-plugin</artifactId>
- <version>${jaxx.version}</version>
- </plugin>
-
- <plugin>
- <artifactId>maven-site-plugin</artifactId>
- <dependencies>
- <dependency>
- <groupId>org.nuiton.jrst</groupId>
- <artifactId>doxia-module-jrst</artifactId>
- <version>${jrst.version}</version>
- </dependency>
- </dependencies>
- </plugin>
-
- </plugins>
- </pluginManagement>
-
- </build>
-
- <!-- ************************************************************* -->
- <!-- *** Build Environment ************************************** -->
- <!-- ************************************************************* -->
-
- <scm>
- <connection>scm:svn:http://svn.chorem.org/svn/lima/trunk</connection>
- <developerConnection>scm:svn:svn+ssh://publish@svn.chorem.org/var/lib/svn/svn-chorem/lima/trunk
- </developerConnection>
- <url>http://www.chorem.org/repositories/browse/lima/trunk</url>
- </scm>
-
- <repositories>
-
- <!-- depot des releases nuiton -->
-
- <repository>
- <id>nuiton.release</id>
- <name>NuitonReleaseRepository</name>
- <url>http://maven.nuiton.org/release</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- <checksumPolicy>warn</checksumPolicy>
- </releases>
- </repository>
-
-
- <!-- depot des snapshots nuiton -->
-
- <repository>
- <id>nuiton.snapshot</id>
- <name>NuitonSnapshotRepository</name>
- <url>http://maven.nuiton.org/snapshot</url>
- <snapshots>
- <enabled>true</enabled>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
-
- </repositories>
-
- <pluginRepositories>
-
- <!-- depot des releases nuiton -->
-
- <pluginRepository>
-
- <id>nuiton.release</id>
- <name>NuitonReleaseRepository</name>
- <url>http://maven.nuiton.org/release</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- <checksumPolicy>warn</checksumPolicy>
- </releases>
- </pluginRepository>
-
- <!-- depot des snapshots nuiton -->
-
- <pluginRepository>
- <id>nuiton.snapshot</id>
- <name>NuitonSnapshotRepository</name>
- <url>http://maven.nuiton.org/snapshot</url>
- <snapshots>
- <enabled>true</enabled>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </pluginRepository>
-
- </pluginRepositories>
-
-</project>
+<?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.nuiton</groupId>
+ <artifactId>mavenpom</artifactId>
+ <version>1.1.0</version>
+ </parent>
+
+ <groupId>org.chorem</groupId>
+ <artifactId>lima</artifactId>
+ <version>0.3.0</version>
+
+ <modules>
+ <module>lima-dto</module>
+ <module>lima-service</module>
+ <module>lima-service-mock</module>
+ <module>lima-service-neogia</module>
+ <module>lima-service-callao</module>
+ <module>lima-main</module>
+ </modules>
+
+ <dependencyManagement>
+ <dependencies>
+
+ <dependency>
+ <groupId>org.chorem.callao</groupId>
+ <artifactId>callao-service</artifactId>
+ <version>0.1.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.3</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ <scope>compile</scope>
+ </dependency>
+
+
+ <dependency>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-utils</artifactId>
+ <version>${nuiton-utils.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.nuiton.eugene</groupId>
+ <artifactId>eugene</artifactId>
+ <version>${eugene.version}</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- librairie des widgets lutin -->
+ <dependency>
+ <groupId>org.nuiton</groupId>
+ <artifactId>nuiton-widgets</artifactId>
+ <version>1.0.0-rc-2</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- librairie Jaxx -->
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-runtime-swing</artifactId>
+ <version>${jaxx.version}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-swing-action</artifactId>
+ <version>${jaxx.version}</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-runtime-swing-widget</artifactId>
+ <version>${jaxx.version}</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- librairie topia -->
+ <dependency>
+ <groupId>org.nuiton.topia</groupId>
+ <artifactId>topia-persistence</artifactId>
+ <version>${topia.version}</version>
+ </dependency>
+
+
+ <!-- librairie axis 2 -->
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2</artifactId>
+ <version>${axis.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-xmlbeans</artifactId>
+ <version>${axis.version}</version>
+ </dependency>
+
+ <!-- autres libraires -->
+ <dependency>
+ <groupId>org.swinglabs</groupId>
+ <artifactId>swingx</artifactId>
+ <version>${swing.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ <version>1.6.1</version>
+ </dependency>
+ <!--dependency>
+ <groupId>com.sun</groupId>
+ <artifactId>jlfgr</artifactId>
+ <version>1.0</version>
+ </dependency-->
+
+ <dependency>
+ <groupId>net.sf.opencsv</groupId>
+ <artifactId>opencsv</artifactId>
+ <version>1.8</version>
+ </dependency>
+
+ </dependencies>
+ </dependencyManagement>
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>Lima</name>
+ <description>Lima project super pom</description>
+ <inceptionYear>2008</inceptionYear>
+ <url>http://maven-site.chorem.org/lima</url>
+
+
+ <licenses>
+ <license>
+ <name>General Public License (GPL)</name>
+ <url>${maven.license.file}</url>
+ <distribution>local</distribution>
+ </license>
+ </licenses>
+
+ <!-- Developpers, contributors... -->
+ <developers>
+ <developer>
+ <id>remi</id>
+ <name>Rémi Chapelet</name>
+ <email>chapelet(a)codelutin.com</email>
+ <organization>Code Lutin</organization>
+ <organizationUrl>http://www.codelutin.com</organizationUrl>
+ <timezone>+2</timezone>
+ <roles>
+ <role>Développeur</role>
+ </roles>
+ </developer>
+ <developer>
+ <id>eduardo</id>
+ <name>eduardo</name>
+ <email>ore(a)codelutin.com</email>
+ <organization>Code Lutin</organization>
+ <organizationUrl>http://www.codelutin.com</organizationUrl>
+ <timezone>+2</timezone>
+ <roles>
+ <role>Développeur</role>
+ </roles>
+ </developer>
+ </developers>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+ <packaging>pom</packaging>
+
+ <properties>
+ <platform>chorem.org</platform>
+ <projectId>lima</projectId>
+
+ <!-- customized libs version -->
+
+ <eugene.version>1.0.0</eugene.version>
+ <nuiton-utils.version>1.1.1</nuiton-utils.version>
+ <topia.version>2.2.0</topia.version>
+ <jaxx.version>1.7.1</jaxx.version>
+ <i18n.version>1.0.1</i18n.version>
+
+ <!--commandline.version>1.0-SNAPSHOT</commandline.version-->
+
+ <!--axis.version>1.4.1</axis.version-->
+ <!-- 1.4 and 1.4.1 breaks jnlp with corrupt jar -->
+ <axis.version>1.3</axis.version>
+ <swing.version>1.0</swing.version>
+
+ <!-- license to use -->
+ <license.licenseName>gpl_v3</license.licenseName>
+ <!-- do not deploy build artifacts -->
+ <helper.includeAttached>false</helper.includeAttached>
+ </properties>
+
+
+ <build>
+ <defaultGoal>install</defaultGoal>
+
+ <pluginManagement>
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton.eugene</groupId>
+ <artifactId>maven-eugene-plugin</artifactId>
+ <version>${eugene.version}</version>
+ </plugin>
+
+ <!-- plugin i18n -->
+ <plugin>
+ <groupId>org.nuiton.i18n</groupId>
+ <artifactId>maven-i18n-plugin</artifactId>
+ <version>${i18n.version}</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <version>${jaxx.version}</version>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.nuiton.jrst</groupId>
+ <artifactId>doxia-module-jrst</artifactId>
+ <version>${jrst.version}</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+
+ </plugins>
+ </pluginManagement>
+
+ </build>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Environment ************************************** -->
+ <!-- ************************************************************* -->
+
+ <scm>
+ <connection>scm:svn:http://svn.chorem.org/svn/lima/tags/lima-0.3.0</connection>
+ <developerConnection>scm:svn:svn+ssh://publish@svn.chorem.org/var/lib/svn/svn-chorem/lima/tags/lima-0.3.0
+ </developerConnection>
+ <url>http://www.chorem.org/repositories/browse/lima/tags/lima-0.3.0</url>
+ </scm>
+
+ <repositories>
+
+ <!-- depot des releases nuiton -->
+
+ <repository>
+ <id>nuiton.release</id>
+ <name>NuitonReleaseRepository</name>
+ <url>http://maven.nuiton.org/release</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ </repository>
+
+
+ <!-- depot des snapshots nuiton -->
+
+ <repository>
+ <id>nuiton.snapshot</id>
+ <name>NuitonSnapshotRepository</name>
+ <url>http://maven.nuiton.org/snapshot</url>
+ <snapshots>
+ <enabled>true</enabled>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+
+ </repositories>
+
+ <pluginRepositories>
+
+ <!-- depot des releases nuiton -->
+
+ <pluginRepository>
+
+ <id>nuiton.release</id>
+ <name>NuitonReleaseRepository</name>
+ <url>http://maven.nuiton.org/release</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ </pluginRepository>
+
+ <!-- depot des snapshots nuiton -->
+
+ <pluginRepository>
+ <id>nuiton.snapshot</id>
+ <name>NuitonSnapshotRepository</name>
+ <url>http://maven.nuiton.org/snapshot</url>
+ <snapshots>
+ <enabled>true</enabled>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </pluginRepository>
+
+ </pluginRepositories>
+
+</project>
1
0
Author: fdesbois
Date: 2009-11-04 18:20:10 +0100 (Wed, 04 Nov 2009)
New Revision: 2728
Added:
branches/temp-0.3.0/
Log:
temp to prepare release
Property changes on: branches/temp-0.3.0
___________________________________________________________________
Added: svn:ignore
+ *.log
target
bin
.classpath
.project
*.ipr
*.iws
*.iml
Added: svn:mergeinfo
+
1
0
Author: fdesbois
Date: 2009-11-04 18:06:14 +0100 (Wed, 04 Nov 2009)
New Revision: 2727
Modified:
trunk/lima-service-callao/LICENSE.txt
trunk/pom.xml
Log:
Change Callao version to 0.1.1
Modified: trunk/lima-service-callao/LICENSE.txt
===================================================================
--- trunk/lima-service-callao/LICENSE.txt 2009-11-04 16:12:33 UTC (rev 2726)
+++ trunk/lima-service-callao/LICENSE.txt 2009-11-04 17:06:14 UTC (rev 2727)
@@ -1,166 +1,674 @@
- GNU LESSER GENERAL PUBLIC LICENSE
+ GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
+ Preamble
- This version of the GNU Lesser General Public License incorporates
-the terms and conditions of version 3 of the GNU General Public
-License, supplemented by the additional permissions listed below.
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
- 0. Additional Definitions.
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
- As used herein, "this License" refers to version 3 of the GNU Lesser
-General Public License, and the "GNU GPL" refers to version 3 of the GNU
-General Public License.
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
- "The Library" refers to a covered work governed by this License,
-other than an Application or a Combined Work as defined below.
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
- An "Application" is any work that makes use of an interface provided
-by the Library, but which is not otherwise based on the Library.
-Defining a subclass of a class defined by the Library is deemed a mode
-of using an interface provided by the Library.
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
- A "Combined Work" is a work produced by combining or linking an
-Application with the Library. The particular version of the Library
-with which the Combined Work was made is also called the "Linked
-Version".
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
- The "Minimal Corresponding Source" for a Combined Work means the
-Corresponding Source for the Combined Work, excluding any source code
-for portions of the Combined Work that, considered in isolation, are
-based on the Application, and not on the Linked Version.
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
- The "Corresponding Application Code" for a Combined Work means the
-object code and/or source code for the Application, including any data
-and utility programs needed for reproducing the Combined Work from the
-Application, but excluding the System Libraries of the Combined Work.
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
- 1. Exception to Section 3 of the GNU GPL.
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
- You may convey a covered work under sections 3 and 4 of this License
-without being bound by section 3 of the GNU GPL.
+ The precise terms and conditions for copying, distribution and
+modification follow.
- 2. Conveying Modified Versions.
+ TERMS AND CONDITIONS
- If you modify a copy of the Library, and, in your modifications, a
-facility refers to a function or data to be supplied by an Application
-that uses the facility (other than as an argument passed when the
-facility is invoked), then you may convey a copy of the modified
-version:
+ 0. Definitions.
- a) under this License, provided that you make a good faith effort to
- ensure that, in the event an Application does not supply the
- function or data, the facility still operates, and performs
- whatever part of its purpose remains meaningful, or
+ "This License" refers to version 3 of the GNU General Public License.
- b) under the GNU GPL, with none of the additional permissions of
- this License applicable to that copy.
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
- 3. Object Code Incorporating Material from Library Header Files.
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
- The object code form of an Application may incorporate material from
-a header file that is part of the Library. You may convey such object
-code under terms of your choice, provided that, if the incorporated
-material is not limited to numerical parameters, data structure
-layouts and accessors, or small macros, inline functions and templates
-(ten or fewer lines in length), you do both of the following:
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
- a) Give prominent notice with each copy of the object code that the
- Library is used in it and that the Library and its use are
- covered by this License.
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
- b) Accompany the object code with a copy of the GNU GPL and this license
- document.
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
- 4. Combined Works.
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
- You may convey a Combined Work under terms of your choice that,
-taken together, effectively do not restrict modification of the
-portions of the Library contained in the Combined Work and reverse
-engineering for debugging such modifications, if you also do each of
-the following:
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
- a) Give prominent notice with each copy of the Combined Work that
- the Library is used in it and that the Library and its use are
- covered by this License.
+ 1. Source Code.
- b) Accompany the Combined Work with a copy of the GNU GPL and this license
- document.
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
- c) For a Combined Work that displays copyright notices during
- execution, include the copyright notice for the Library among
- these notices, as well as a reference directing the user to the
- copies of the GNU GPL and this license document.
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
- d) Do one of the following:
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
- 0) Convey the Minimal Corresponding Source under the terms of this
- License, and the Corresponding Application Code in a form
- suitable for, and under terms that permit, the user to
- recombine or relink the Application with a modified version of
- the Linked Version to produce a modified Combined Work, in the
- manner specified by section 6 of the GNU GPL for conveying
- Corresponding Source.
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
- 1) Use a suitable shared library mechanism for linking with the
- Library. A suitable mechanism is one that (a) uses at run time
- a copy of the Library already present on the user's computer
- system, and (b) will operate properly with a modified version
- of the Library that is interface-compatible with the Linked
- Version.
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
- e) Provide Installation Information, but only if you would otherwise
- be required to provide such information under section 6 of the
- GNU GPL, and only to the extent that such information is
- necessary to install and execute a modified version of the
- Combined Work produced by recombining or relinking the
- Application with a modified version of the Linked Version. (If
- you use option 4d0, the Installation Information must accompany
- the Minimal Corresponding Source and Corresponding Application
- Code. If you use option 4d1, you must provide the Installation
- Information in the manner specified by section 6 of the GNU GPL
- for conveying Corresponding Source.)
+ The Corresponding Source for a work in source code form is that
+same work.
- 5. Combined Libraries.
+ 2. Basic Permissions.
- You may place library facilities that are a work based on the
-Library side by side in a single library together with other library
-facilities that are not Applications and are not covered by this
-License, and convey such a combined library under terms of your
-choice, if you do both of the following:
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
- a) Accompany the combined library with a copy of the same work based
- on the Library, uncombined with any other library facilities,
- conveyed under the terms of this License.
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
- b) Give prominent notice with the combined library that part of it
- is a work based on the Library, and explaining where to find the
- accompanying uncombined form of the same work.
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
- 6. Revised Versions of the GNU Lesser General Public License.
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
- The Free Software Foundation may publish revised and/or new versions
-of the GNU Lesser General Public License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns.
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
- Each version is given a distinguishing version number. If the
-Library as you received it specifies that a certain numbered version
-of the GNU Lesser General Public License "or any later version"
-applies to it, you have the option of following the terms and
-conditions either of that published version or of any later version
-published by the Free Software Foundation. If the Library as you
-received it does not specify a version number of the GNU Lesser
-General Public License, you may choose any version of the GNU Lesser
-General Public License ever published by the Free Software Foundation.
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
- If the Library as you received it specifies that a proxy can decide
-whether future versions of the GNU Lesser General Public License shall
-apply, that proxy's public statement of acceptance of any version is
-permanent authorization for you to choose that version for the
-Library.
+ 4. Conveying Verbatim Copies.
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ 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 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/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-11-04 16:12:33 UTC (rev 2726)
+++ trunk/pom.xml 2009-11-04 17:06:14 UTC (rev 2727)
@@ -33,7 +33,7 @@
<dependency>
<groupId>org.chorem.callao</groupId>
<artifactId>callao-service</artifactId>
- <version>0.1.0</version>
+ <version>0.1.1</version>
</dependency>
<dependency>
1
0
Author: fdesbois
Date: 2009-11-04 17:12:33 +0100 (Wed, 04 Nov 2009)
New Revision: 2726
Modified:
trunk/lima-main/src/main/resources/i18n/lima-main-fr_FR.properties
Log:
Add missing key
Modified: trunk/lima-main/src/main/resources/i18n/lima-main-fr_FR.properties
===================================================================
--- trunk/lima-main/src/main/resources/i18n/lima-main-fr_FR.properties 2009-11-04 16:07:12 UTC (rev 2725)
+++ trunk/lima-main/src/main/resources/i18n/lima-main-fr_FR.properties 2009-11-04 16:12:33 UTC (rev 2726)
@@ -12,7 +12,7 @@
lima.action.unconnect=D\u00E9connecter
lima.action.unconnect.help=Aide
lima.action.unconnect.tooltip=tooltip
-lima.add=
+lima.add=Ajout
lima.add.account=Ajouter un compte
lima.add.entry=Ajouter une entr\u00E9e
lima.add.lettering=Ajouter une lettre
1
0
04 Nov '09
Author: fdesbois
Date: 2009-11-04 17:07:12 +0100 (Wed, 04 Nov 2009)
New Revision: 2725
Modified:
trunk/lima-main/src/main/java/org/chorem/lima/ui/MainView.jaxx
Log:
Add default size 800x600
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/MainView.jaxx
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/MainView.jaxx 2009-11-04 14:36:03 UTC (rev 2724)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/MainView.jaxx 2009-11-04 16:07:12 UTC (rev 2725)
@@ -1,5 +1,5 @@
<Application title="lima.title" onWindowClosing="windowClosing()"
- defaultCloseOperation="do_nothing_on_close" resizable="true"
+ defaultCloseOperation="do_nothing_on_close" resizable="true" width="800" height="600"
extendedState='{this.MAXIMIZED_BOTH}' >
<style source="css/lima.css" />
<script>
1
0