[Buix-commits] r297 - trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui/model
Author: tchemit Date: 2008-04-02 09:15:20 +0000 (Wed, 02 Apr 2008) New Revision: 297 Removed: trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui/model/SynchUIHandler.java Log: go away :) Deleted: trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui/model/SynchUIHandler.java =================================================================== --- trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui/model/SynchUIHandler.java 2008-04-02 09:15:14 UTC (rev 296) +++ trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui/model/SynchUIHandler.java 2008-04-02 09:15:20 UTC (rev 297) @@ -1,62 +0,0 @@ -/** - * # #% Copyright (C) 2008 Code Lutin, Tony Chemit - * This program is free software; you - * can redistribute it and/or modify it under the terms of the GNU General - * Public License as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. This program is - * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; - * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A - * PARTICULAR PURPOSE. See the GNU General Public License for more details. You - * should have received a copy of the GNU General Public License along with this - * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - * - Suite 330, Boston, MA 02111-1307, USA. - * # #% - */ -package org.codelutin.vcs.ui.model; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -import java.beans.PropertyChangeEvent; -import java.beans.PropertyChangeListener; - -/** @author chemit */ -public abstract class SynchUIHandler implements PropertyChangeListener { - - protected static Log log = LogFactory.getLog(SynchUIHandler.class); - - public void propertyChange(PropertyChangeEvent evt) { - //if (log.isDebugEnabled()) { - log.info(evt.getPropertyName() + " old:" + evt.getOldValue() + ", new:" + evt.getNewValue()); - //} - - } - - protected SynchUIHandler() { - } - - public abstract SynchUIModel getModel(); - - public void init() { - if (getModel() == null) { - throw new IllegalStateException("no model was defined for " + this); - } - getModel().addPropertyChangeListener(SynchUIModel.TAB_PROPERTY_CHANGED, this); - } - - public void dispatchAction(String action) { - if (action.endsWith("All")) { - doAllAction(action.substring(0, action.length() - 3)); - } else { - doSelectAction(action); - } - } - - protected void doSelectAction(String action) { - log.info(action); - } - - protected void doAllAction(String action) { - log.info(action); - } -}
participants (1)
-
tchemit@users.labs.libre-entreprise.org