diff options
author | spingel | 2008-04-13 02:53:50 +0000 |
---|---|---|
committer | spingel | 2008-04-13 02:53:50 +0000 |
commit | fada1ad00c03d71b7a462e5b3ed9c60d96299baa (patch) | |
tree | 52d8cd109fe04fe6da999f4708408db028b714a9 /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync | |
parent | e3d765dc84c8c902d80c9e679fa36ca0c291cdb0 (diff) | |
download | org.eclipse.mylyn.tasks-fada1ad00c03d71b7a462e5b3ed9c60d96299baa.tar.gz org.eclipse.mylyn.tasks-fada1ad00c03d71b7a462e5b3ed9c60d96299baa.tar.xz org.eclipse.mylyn.tasks-fada1ad00c03d71b7a462e5b3ed9c60d96299baa.zip |
NEW - bug 225485: [api] move TasksUiPlugin to internal package
https://bugs.eclipse.org/bugs/show_bug.cgi?id=225485
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync')
2 files changed, 76 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationEvent.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationEvent.java new file mode 100644 index 000000000..31b19f40c --- /dev/null +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationEvent.java @@ -0,0 +1,33 @@ +/******************************************************************************* + * Copyright (c) 2004, 2007 Mylyn project committers and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + *******************************************************************************/ + +package org.eclipse.mylyn.tasks.core.sync; + +import java.util.Set; + +import org.eclipse.mylyn.tasks.core.AbstractTask; +import org.eclipse.mylyn.tasks.core.TaskRepository; + +/** + * @author Steffen Pingel + */ +public class SynchronizationEvent { + + public boolean fullSynchronization; + + public boolean performQueries; + + public Set<AbstractTask> tasks; + + public Set<AbstractTask> changedTasks; + + public TaskRepository taskRepository; + + public Object data; + +} diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationJob.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationJob.java new file mode 100644 index 000000000..6b19c6ddf --- /dev/null +++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/sync/SynchronizationJob.java @@ -0,0 +1,43 @@ +/******************************************************************************* + * Copyright (c) 2004, 2007 Mylyn project committers and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + *******************************************************************************/ + +package org.eclipse.mylyn.tasks.core.sync; + +import org.eclipse.core.runtime.jobs.Job; + +/** + * @author Steffen Pingel + * @since 3.0 + */ +public abstract class SynchronizationJob extends Job { + + private boolean changedTasksSynchronization = true; + + private boolean fullSynchronization = false; + + public SynchronizationJob(String name) { + super(name); + } + + public boolean isChangedTasksSynchronization() { + return changedTasksSynchronization; + } + + public boolean isFullSynchronization() { + return fullSynchronization; + } + + public void setChangedTasksSynchronization(boolean synchronizeChangedTasks) { + this.changedTasksSynchronization = synchronizeChangedTasks; + } + + public void setFullSynchronization(boolean fullSynchronization) { + this.fullSynchronization = fullSynchronization; + } + +} |