r2850 - trunk/src/main/java/org/chorem/jtimer/data
Author: echatellier Date: 2012-03-28 22:19:38 +0200 (Wed, 28 Mar 2012) New Revision: 2850 Url: http://chorem.org/repositories/revision/jtimer/2850 Log: Remove synchronized (seams to cause application freeze) Modified: trunk/src/main/java/org/chorem/jtimer/data/TimerDataManager.java Modified: trunk/src/main/java/org/chorem/jtimer/data/TimerDataManager.java =================================================================== --- trunk/src/main/java/org/chorem/jtimer/data/TimerDataManager.java 2012-03-28 20:14:41 UTC (rev 2849) +++ trunk/src/main/java/org/chorem/jtimer/data/TimerDataManager.java 2012-03-28 20:19:38 UTC (rev 2850) @@ -82,7 +82,7 @@ * * @param listener listener */ - public synchronized void addDataEventListener(DataEventListener listener) { + public void addDataEventListener(DataEventListener listener) { dataEventListeners.add(listener); } @@ -91,7 +91,7 @@ * * @param listener listener */ - public synchronized void removeDataEventListener(DataEventListener listener) { + public void removeDataEventListener(DataEventListener listener) { dataEventListeners.remove(listener); } @@ -100,7 +100,7 @@ * * @param listener listener */ - public synchronized void addVetoableDataEventListener( + public void addVetoableDataEventListener( VetoableDataEventListener listener) { vetoableDataEventListeners.add(listener); } @@ -110,7 +110,7 @@ * * @param listener listener */ - public synchronized void removeVetoableDataEventListener( + public void removeVetoableDataEventListener( VetoableDataEventListener listener) { vetoableDataEventListeners.remove(listener); } @@ -120,7 +120,7 @@ * * @param project a project */ - public synchronized void addProject(TimerProject project) { + public void addProject(TimerProject project) { // fire vetoable event for (VetoableDataEventListener vetoableDataEventListener : vetoableDataEventListeners) { @@ -141,7 +141,7 @@ * @param parent parent task * @param task task to add */ - public synchronized void addTask(TimerTask parent, TimerTask task) { + public void addTask(TimerTask parent, TimerTask task) { // fire vetoable event for (VetoableDataEventListener vetoableDataEventListener : vetoableDataEventListeners) { @@ -161,7 +161,7 @@ * * @param projects project collection */ - public synchronized void addAllProjects(Collection<TimerProject> projects) { + public void addAllProjects(Collection<TimerProject> projects) { if (projects != null) { projectList.clear(); projectList.addAll(projects); @@ -180,7 +180,7 @@ * * @return list of projects */ - public synchronized List<TimerProject> getProjectsList() { + public List<TimerProject> getProjectsList() { return projectList; } @@ -191,7 +191,7 @@ * @param date date to change time * @param value new time in ms */ - public synchronized void changeTaskTime(TimerTask task, Date date, + public void changeTaskTime(TimerTask task, Date date, long value) { // fire vetoable event @@ -212,7 +212,7 @@ * * @param task task to start */ - public synchronized void startTask(TimerTask task) { + public void startTask(TimerTask task) { // send notification for (DataEventListener dataEventListener : dataEventListeners) { dataEventListener.startTask(task); @@ -224,7 +224,7 @@ * * @param task task to stop */ - public synchronized void stopTask(TimerTask task) { + public void stopTask(TimerTask task) { // send notification for (DataEventListener dataEventListener : dataEventListeners) { dataEventListener.stopTask(task); @@ -236,7 +236,7 @@ * * @param task task to delete */ - public synchronized void deleteTask(TimerTask task) { + public void deleteTask(TimerTask task) { // fire vetoable event for (VetoableDataEventListener vetoableDataEventListener : vetoableDataEventListeners) { @@ -258,7 +258,7 @@ * * @param project project to delete */ - public synchronized void deleteProject(TimerProject project) { + public void deleteProject(TimerProject project) { // fire vetoable event for (VetoableDataEventListener vetoableDataEventListener : vetoableDataEventListeners) { @@ -279,7 +279,7 @@ * * @param project project to close */ - public synchronized void changeProjectCloseState(TimerProject project) { + public void changeProjectCloseState(TimerProject project) { // fire vetoable event //Iterator<VetoableDataEventListener> itVetoableDataEventListener = vetoableDataEventListeners @@ -312,7 +312,7 @@ * * @param task task to close */ - public synchronized void changeTaskCloseState(TimerTask task) { + public void changeTaskCloseState(TimerTask task) { // fire vetoable event for (VetoableDataEventListener vetoableDataEventListener : vetoableDataEventListeners) { @@ -334,7 +334,7 @@ * @param project project to edit * @param newProjectName new project name */ - public synchronized void editProject(TimerProject project, + public void editProject(TimerProject project, String newProjectName) { // fire vetoable event @@ -358,7 +358,7 @@ * @param task task to edit * @param newTaskName new task name */ - public synchronized void editTask(TimerTask task, String newTaskName) { + public void editTask(TimerTask task, String newTaskName) { // fire vetoable event TimerTask newTask = task.clone(); @@ -381,7 +381,7 @@ * @param destination task to move to * @param tasksToMove tasks to move */ - public synchronized void moveTask(TimerTask destination, Collection<TimerTask> tasksToMove) { + public void moveTask(TimerTask destination, Collection<TimerTask> tasksToMove) { // fire vetoable event for (VetoableDataEventListener vetoableDataEventListener : vetoableDataEventListeners) { @@ -416,7 +416,7 @@ * @param destinationTask task where task will be merged * @param otherTasks task to merge in first task */ - public synchronized void mergeTasks(TimerTask destinationTask, List<TimerTask> otherTasks) { + public void mergeTasks(TimerTask destinationTask, List<TimerTask> otherTasks) { // fire vetoable event for (VetoableDataEventListener vetoableDataEventListener : vetoableDataEventListeners) { @@ -531,7 +531,7 @@ * @param date day of annotation * @param annotation annotation */ - public synchronized void addAnnotation(TimerTask task, Date date, + public void addAnnotation(TimerTask task, Date date, String annotation) { // fire vetoable event @@ -553,7 +553,7 @@ * * @param task task where alert has been modified */ - public synchronized void modifyAlert(TimerTask task) { + public void modifyAlert(TimerTask task) { // send event for (DataEventListener dataEventListener : dataEventListeners) {
participants (1)
-
echatellier@users.chorem.org