ItEr57S15RecalculosConexionEscenarios: Move to top level IAction interface.
It's being used in more places than just PreAndPostNotReentrantActionsWrapper, so it's better to move it to its own file.
This commit is contained in:
parent
9591152be9
commit
a21e6e1bfd
4 changed files with 35 additions and 6 deletions
|
|
@ -44,8 +44,8 @@ import org.jgrapht.DirectedGraph;
|
|||
import org.jgrapht.graph.SimpleDirectedGraph;
|
||||
import org.zkoss.ganttz.data.constraint.Constraint;
|
||||
import org.zkoss.ganttz.data.criticalpath.ICriticalPathCalculable;
|
||||
import org.zkoss.ganttz.util.IAction;
|
||||
import org.zkoss.ganttz.util.PreAndPostNotReentrantActionsWrapper;
|
||||
import org.zkoss.ganttz.util.PreAndPostNotReentrantActionsWrapper.IAction;
|
||||
|
||||
/**
|
||||
* This class contains a graph with the {@link Task tasks} as vertexes and the
|
||||
|
|
|
|||
33
ganttzk/src/main/java/org/zkoss/ganttz/util/IAction.java
Normal file
33
ganttzk/src/main/java/org/zkoss/ganttz/util/IAction.java
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* This file is part of NavalPlan
|
||||
*
|
||||
* Copyright (C) 2009 Fundación para o Fomento da Calidade Industrial e
|
||||
* Desenvolvemento Tecnolóxico de Galicia
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.zkoss.ganttz.util;
|
||||
|
||||
import org.zkoss.ganttz.data.GanttDiagramGraph;
|
||||
|
||||
/**
|
||||
* Represents some computation to execute. It's usually used to execute some
|
||||
* computation in a context.
|
||||
* @see PreAndPostNotReentrantActionsWrapper
|
||||
* {@link GanttDiagramGraph#manualNotificationOn(IAction)}
|
||||
* @author Óscar González Fernández <ogonzalez@igalia.com>
|
||||
*/
|
||||
public interface IAction {
|
||||
public void doAction();
|
||||
}
|
||||
|
|
@ -26,10 +26,6 @@ import org.apache.commons.lang.Validate;
|
|||
*/
|
||||
public abstract class PreAndPostNotReentrantActionsWrapper {
|
||||
|
||||
public interface IAction {
|
||||
public void doAction();
|
||||
}
|
||||
|
||||
private final ThreadLocal<Boolean> inside = new ThreadLocal<Boolean>() {
|
||||
@Override
|
||||
protected Boolean initialValue() {
|
||||
|
|
|
|||
|
|
@ -54,11 +54,11 @@ import org.zkoss.ganttz.data.GanttDiagramGraph;
|
|||
import org.zkoss.ganttz.data.Task;
|
||||
import org.zkoss.ganttz.data.GanttDiagramGraph.DeferedNotifier;
|
||||
import org.zkoss.ganttz.extensions.IContext;
|
||||
import org.zkoss.ganttz.util.IAction;
|
||||
import org.zkoss.ganttz.util.LongOperationFeedback;
|
||||
import org.zkoss.ganttz.util.LongOperationFeedback.IBackGroundOperation;
|
||||
import org.zkoss.ganttz.util.LongOperationFeedback.IDesktopUpdate;
|
||||
import org.zkoss.ganttz.util.LongOperationFeedback.IDesktopUpdatesEmitter;
|
||||
import org.zkoss.ganttz.util.PreAndPostNotReentrantActionsWrapper.IAction;
|
||||
import org.zkoss.zk.ui.Desktop;
|
||||
import org.zkoss.zk.ui.util.Clients;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue