Author: echatellier Date: 2012-04-12 16:23:46 +0200 (Thu, 12 Apr 2012) New Revision: 3363 Url: http://chorem.org/repositories/revision/lima/3363 Log: Misc code style update Removed: trunk/lima-swing/src/main/java/org/chorem/lima/ui/LimaModelUtil.java Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.jaxx trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java =================================================================== --- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java 2012-04-12 14:23:28 UTC (rev 3362) +++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java 2012-04-12 14:23:46 UTC (rev 3363) @@ -86,7 +86,6 @@ @Override public void start() { if (server == null) { - try { FileUtil.createDirectoryIfNecessary(new File(path)); @@ -98,7 +97,9 @@ server.setHandler(context); server.start(); - log.info("Web server are running on port: " + port); + if (log.isInfoEnabled()) { + log.info("Web server are running on port: " + port); + } } catch (Exception eee) { log.error("error while booting http server", eee); Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.jaxx =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.jaxx 2012-04-12 14:23:28 UTC (rev 3362) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.jaxx 2012-04-12 14:23:46 UTC (rev 3363) @@ -5,7 +5,7 @@ $Id$ $HeadURL$ %% - Copyright (C) 2008 - 2010 CodeLutin + Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as Deleted: trunk/lima-swing/src/main/java/org/chorem/lima/ui/LimaModelUtil.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/LimaModelUtil.java 2012-04-12 14:23:28 UTC (rev 3362) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/LimaModelUtil.java 2012-04-12 14:23:46 UTC (rev 3363) @@ -1,36 +0,0 @@ -/* - * #%L - * Lima :: Swing - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2008 - 2011 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program. If not, see - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ -package org.chorem.lima.ui; - -/** - * Util to create ui models. - * - * @author tchemit <chemit@codelutin.com> - * @since 0.5.2 - */ -public class LimaModelUtil { - - -} Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java 2012-04-12 14:23:28 UTC (rev 3362) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java 2012-04-12 14:23:46 UTC (rev 3363) @@ -56,7 +56,6 @@ import org.chorem.lima.ui.vatchart.VatChartView; import org.chorem.lima.ui.vatreports.VatReportView; import org.chorem.lima.util.ErrorHelper; -import org.nuiton.profiling.NuitonTrace; import org.nuiton.util.DesktopUtil; import javax.swing.JButton; Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java 2012-04-12 14:23:28 UTC (rev 3362) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/FiscalPeriodViewHandler.java 2012-04-12 14:23:46 UTC (rev 3363) @@ -122,15 +122,14 @@ //check if fiscalperiod have 12 months, ask a confirmation int nbMonth = DateUtil.getDifferenceInMonths(fiscalPeriod.getBeginDate(), fiscalPeriod.getEndDate()); - int response = JOptionPane.NO_OPTION; + int response = JOptionPane.YES_OPTION; if (nbMonth != 12) { response = JOptionPane.showConfirmDialog(view, _("lima.ui.fiscalperiod.addfiscalperiod.morethan12"), _("lima.ui.fiscalperiod.addfiscalperiodtitle"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); } - // FIXME echatellier 20120405 je ne comprend pas le "|| nbMonth == 11" - if (response == JOptionPane.YES_OPTION || nbMonth == 11) { + if (response == JOptionPane.YES_OPTION) { try { fiscalPeriod = fiscalPeriodService.createFiscalPeriod(fiscalPeriod); model.addFiscalPeriod(fiscalPeriod);