~piastucki/bzr-eclipse/history-view-enhancements

« back to all changes in this revision

Viewing changes to org.vcs.bazaar.eclipse.core/src/org/vcs/bazaar/eclipse/core/subscriber/LocalRepoSyncInfo.java

  • Committer: Guillermo Gonzalez
  • Date: 2007-03-14 12:15:50 UTC
  • Revision ID: guillo.gonzo@gmail.com-20070314121550-tltk3b6f3zblf0dh
Initial commit with the new code layout.
Now starts the real work

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) 2004-2006 by Leif Frenzel - see http://leiffrenzel.de
 
2
package org.vcs.bazaar.eclipse.core.subscriber;
 
3
 
 
4
import org.eclipse.core.resources.IResource;
 
5
import org.eclipse.team.core.TeamException;
 
6
import org.eclipse.team.core.synchronize.SyncInfo;
 
7
import org.eclipse.team.core.variants.IResourceVariant;
 
8
import org.eclipse.team.core.variants.IResourceVariantComparator;
 
9
 
 
10
class LocalRepoSyncInfo extends SyncInfo {
 
11
 
 
12
  LocalRepoSyncInfo( final IResource local, 
 
13
                     final IResourceVariant remote,
 
14
                     final IResourceVariantComparator comparator ) {
 
15
    super( local, null, remote, comparator );
 
16
  }
 
17
 
 
18
  
 
19
  // interface methods of SyncInfo
 
20
  // //////////////////////////////
 
21
 
 
22
  @Override
 
23
  protected int calculateKind() throws TeamException {
 
24
    int result = IN_SYNC;
 
25
    if( getRemote() != null ) {
 
26
      result = super.calculateKind();
 
27
    }
 
28
    return result;
 
29
  }
 
30
}
 
 
b'\\ No newline at end of file'