本文整理汇总了Java中com.intellij.openapi.vcs.FilePath.isNonLocal方法的典型用法代码示例。如果您正苦于以下问题:Java FilePath.isNonLocal方法的具体用法?Java FilePath.isNonLocal怎么用?Java FilePath.isNonLocal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.vcs.FilePath
的用法示例。
在下文中一共展示了FilePath.isNonLocal方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createRevision
import com.intellij.openapi.vcs.FilePath; //导入方法依赖的package包/类
@NotNull
private ContentRevision createRevision(@NotNull FilePath path,
@NotNull FilePath localPath,
@NotNull SVNRevision revision,
@NotNull FileStatus status) {
ContentRevision result;
if (path.isNonLocal()) {
// explicitly use local path for deleted items - so these items will be correctly displayed as deleted under local working copy node
// and not as deleted under remote branch node (in ChangesBrowser)
// NOTE, that content is still retrieved using remotePath.
result = SvnRepositoryContentRevision.create(myVcs, path, status == FileStatus.DELETED ? localPath : null, revision.getNumber());
}
else {
result = CurrentContentRevision.create(path);
}
return result;
}
示例2: getVcsForDirty
import com.intellij.openapi.vcs.FilePath; //导入方法依赖的package包/类
@Nullable
public AbstractVcs getVcsForDirty(@NotNull FilePath filePath) {
if (filePath.isNonLocal()) {
return null;
}
VirtualFile validParent = ChangesUtil.findValidParentAccurately(filePath);
if (validParent != null && isFileInIndex(filePath, validParent)) {
return myVcsManager.getVcsFor(validParent);
}
return null;
}
示例3: staticFrom
import com.intellij.openapi.vcs.FilePath; //导入方法依赖的package包/类
private static StaticFilePath staticFrom(final FilePath fp) {
final String path = fp.getPath();
if (fp.isNonLocal() && (! FileUtil.isAbsolute(path) || VcsUtil.isPathRemote(path))) {
return new StaticFilePath(fp.isDirectory(), fp.getIOFile().getPath().replace('\\', '/'), fp.getVirtualFile());
}
return new StaticFilePath(fp.isDirectory(), new File(fp.getIOFile().getPath().replace('\\', '/')).getAbsolutePath(), fp.getVirtualFile());
}
示例4: createFromCachedData
import com.intellij.openapi.vcs.FilePath; //导入方法依赖的package包/类
@Override
public SvnHistorySession createFromCachedData(Boolean aBoolean,
@NotNull List<VcsFileRevision> revisions,
@NotNull FilePath filePath,
VcsRevisionNumber currentRevision) {
return new SvnHistorySession(myVcs, revisions, filePath, aBoolean, currentRevision, false, ! filePath.isNonLocal());
}