Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-02-27 12:17:00 -0500
committerMichael Valenta2004-02-27 12:17:00 -0500
commitd9db8520e97aa2e5dc294ac1dec7fe335fe58111 (patch)
tree14b50568d5e06ea58f2efa875a9b416a0c05391a /examples
parenta7bea38f1d1dce3c13a00276ffa4db9e8d868d19 (diff)
downloadeclipse.platform.team-d9db8520e97aa2e5dc294ac1dec7fe335fe58111.tar.gz
eclipse.platform.team-d9db8520e97aa2e5dc294ac1dec7fe335fe58111.tar.xz
eclipse.platform.team-d9db8520e97aa2e5dc294ac1dec7fe335fe58111.zip
More refactoring of ResourceVariantTree
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemSubscriber.java42
1 files changed, 13 insertions, 29 deletions
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemSubscriber.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemSubscriber.java
index 50ab30efb..81de667bb 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemSubscriber.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/filesystem/FileSystemSubscriber.java
@@ -11,43 +11,25 @@
package org.eclipse.team.examples.filesystem;
import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.team.core.TeamException;
-import org.eclipse.team.core.synchronize.IResourceVariant;
import org.eclipse.team.core.synchronize.IResourceVariantComparator;
-import org.eclipse.team.internal.core.subscribers.caches.SyncTreeSubscriber;
+import org.eclipse.team.internal.core.subscribers.caches.IResourceVariantTree;
+import org.eclipse.team.internal.core.subscribers.caches.ResourceVariantTreeSubscriber;
-
-public class FileSystemSubscriber extends SyncTreeSubscriber {
+public class FileSystemSubscriber extends ResourceVariantTreeSubscriber {
/* (non-Javadoc)
- * @see org.eclipse.team.internal.core.subscribers.caches.SyncTreeSubscriber#getRemoteResource(org.eclipse.core.resources.IResource)
+ * @see org.eclipse.team.internal.core.subscribers.caches.ResourceVariantTreeSubscriber#getBaseTree()
*/
- public IResourceVariant getRemoteResource(IResource resource) throws TeamException {
+ protected IResourceVariantTree getBaseTree() {
// TODO Auto-generated method stub
return null;
}
/* (non-Javadoc)
- * @see org.eclipse.team.internal.core.subscribers.caches.SyncTreeSubscriber#getBaseResource(org.eclipse.core.resources.IResource)
+ * @see org.eclipse.team.internal.core.subscribers.caches.ResourceVariantTreeSubscriber#getRemoteTree()
*/
- public IResourceVariant getBaseResource(IResource resource) throws TeamException {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.team.internal.core.subscribers.caches.SyncTreeSubscriber#hasRemote(org.eclipse.core.resources.IResource)
- */
- protected boolean hasRemote(IResource resource) throws TeamException {
- // TODO Auto-generated method stub
- return false;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.team.internal.core.subscribers.caches.SyncTreeSubscriber#getResourceComparator()
- */
- public IResourceVariantComparator getResourceComparator() {
+ protected IResourceVariantTree getRemoteTree() {
// TODO Auto-generated method stub
return null;
}
@@ -77,10 +59,12 @@ public class FileSystemSubscriber extends SyncTreeSubscriber {
}
/* (non-Javadoc)
- * @see org.eclipse.team.core.subscribers.Subscriber#refresh(org.eclipse.core.resources.IResource[], int, org.eclipse.core.runtime.IProgressMonitor)
+ * @see org.eclipse.team.core.subscribers.Subscriber#getResourceComparator()
*/
- public void refresh(IResource[] resources, int depth, IProgressMonitor monitor) throws TeamException {
+ public IResourceVariantComparator getResourceComparator() {
// TODO Auto-generated method stub
-
- }
+ return null;
+ }
+
+
}

Back to the top