站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

VcsCollocationQueryImpl (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore
Class VcsCollocationQueryImpl

java.lang.Object
  extended byorg.netbeans.modules.vcscore.VcsCollocationQueryImpl
All Implemented Interfaces:
CollocationQueryImplementation

public class VcsCollocationQueryImpl
extends Object
implements CollocationQueryImplementation

VCS collocation query implementation based on VCS filesystems. Files are collocated if they reside on the same VCS filesystem. The root of a file is defined as the root of the appropriate VCS filesystem.

XXX Working directory for test under XTest is /test/work/user/ and that means all test files will be collocated because of this impl. Document this somewhere so that test authors requiring control over file collocations are aware of that, e.g. ant/project tests hide this impl.


Constructor Summary
VcsCollocationQueryImpl()
          Do nothing
 
Method Summary
 boolean areCollocated(File file1, File file2)
           
 File findRoot(File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcsCollocationQueryImpl

public VcsCollocationQueryImpl()
Do nothing

Method Detail

areCollocated

public boolean areCollocated(File file1,
                             File file2)
Specified by:
areCollocated in interface CollocationQueryImplementation

findRoot

public File findRoot(File f)
Specified by:
findRoot in interface CollocationQueryImplementation

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.