当前位置: 首页>>代码示例>>Java>>正文


Java FileStatus.IGNORED属性代码示例

本文整理汇总了Java中com.intellij.openapi.vcs.FileStatus.IGNORED属性的典型用法代码示例。如果您正苦于以下问题:Java FileStatus.IGNORED属性的具体用法?Java FileStatus.IGNORED怎么用?Java FileStatus.IGNORED使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.intellij.openapi.vcs.FileStatus的用法示例。


在下文中一共展示了FileStatus.IGNORED属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getFileStatusForAbsentEntry

private static FileStatus getFileStatusForAbsentEntry(VirtualFile file) {
  if (file == null) {
    return FileStatus.UNKNOWN;
  }

  if (CvsEntriesManager.getInstance().fileIsIgnored(file)) {
    return FileStatus.IGNORED;
  }

  if (file.isDirectory() && CvsUtil.fileIsUnderCvs(file)) {
    return FileStatus.NOT_CHANGED;
  }

  return FileStatus.UNKNOWN;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:CvsStatusProvider.java

示例2: convertPropertyStatus

@NotNull
public static FileStatus convertPropertyStatus(final StatusType status) {
  if (status == null) {
    return FileStatus.UNKNOWN;
  }
  if (StatusType.STATUS_UNVERSIONED.equals(status)) {
    return FileStatus.UNKNOWN;
  }
  else if (StatusType.STATUS_MISSING.equals(status)) {
    return FileStatus.DELETED_FROM_FS;
  }
  else if (StatusType.STATUS_EXTERNAL.equals(status)) {
    return SvnFileStatus.EXTERNAL;
  }
  else if (StatusType.STATUS_OBSTRUCTED.equals(status)) {
    return SvnFileStatus.OBSTRUCTED;
  }
  else if (StatusType.STATUS_IGNORED.equals(status)) {
    return FileStatus.IGNORED;
  }
  else if (StatusType.STATUS_ADDED.equals(status)) {
    return FileStatus.ADDED;
  }
  else if (StatusType.STATUS_DELETED.equals(status)) {
    return FileStatus.DELETED;
  }
  else if (StatusType.STATUS_REPLACED.equals(status)) {
    return SvnFileStatus.REPLACED;
  }
  else if (status == StatusType.STATUS_CONFLICTED) {
    return FileStatus.MERGED_WITH_PROPERTY_CONFLICTS;
  }
  else if (status == StatusType.STATUS_MODIFIED) {
    return FileStatus.MODIFIED;
  }
  return FileStatus.NOT_CHANGED;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:37,代码来源:SvnStatusConvertor.java

示例3: isEnabled

private static boolean isEnabled(final Project project, final VirtualFile virtualFile) {
  if (project == null || virtualFile == null) {
    return false;
  }
  final FileStatus fileStatus = FileStatusManager.getInstance(project).getStatus(virtualFile);
  if (fileStatus == FileStatus.UNKNOWN || fileStatus == FileStatus.ADDED || fileStatus == FileStatus.IGNORED) {
    return false;
  }
  return true;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:CompareWithBranchAction.java

示例4: getDefaultStatus

@NotNull
public static FileStatus getDefaultStatus(@NotNull final VirtualFile file) {
  return file.isValid() && file.is(VFileProperty.SPECIAL) ? FileStatus.IGNORED : FileStatus.NOT_CHANGED;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:FileStatusManagerImpl.java

示例5: convertStatus

@NotNull
public static FileStatus convertStatus(@Nullable final Status status) {
  if (status == null) {
    return FileStatus.UNKNOWN;
  }
  if (status.is(StatusType.STATUS_UNVERSIONED)) {
    return FileStatus.UNKNOWN;
  }
  else if (status.is(StatusType.STATUS_MISSING)) {
    return FileStatus.DELETED_FROM_FS;
  }
  else if (status.is(StatusType.STATUS_EXTERNAL)) {
    return SvnFileStatus.EXTERNAL;
  }
  else if (status.is(StatusType.STATUS_OBSTRUCTED)) {
    return SvnFileStatus.OBSTRUCTED;
  }
  else if (status.is(StatusType.STATUS_IGNORED)) {
    return FileStatus.IGNORED;
  }
  else if (status.is(StatusType.STATUS_ADDED)) {
    return FileStatus.ADDED;
  }
  else if (status.is(StatusType.STATUS_DELETED)) {
    return FileStatus.DELETED;
  }
  else if (status.is(StatusType.STATUS_REPLACED)) {
    return SvnFileStatus.REPLACED;
  }
  else if (status.getContentsStatus() == StatusType.STATUS_CONFLICTED ||
           status.getPropertiesStatus() == StatusType.STATUS_CONFLICTED) {
    if (status.getContentsStatus() == StatusType.STATUS_CONFLICTED &&
        status.getPropertiesStatus() == StatusType.STATUS_CONFLICTED) {
      return FileStatus.MERGED_WITH_BOTH_CONFLICTS;
    }
    else if (status.getContentsStatus() == StatusType.STATUS_CONFLICTED) {
      return FileStatus.MERGED_WITH_CONFLICTS;
    }
    return FileStatus.MERGED_WITH_PROPERTY_CONFLICTS;
  }
  else if (status.getContentsStatus() == StatusType.STATUS_MODIFIED ||
           status.getPropertiesStatus() == StatusType.STATUS_MODIFIED) {
    return FileStatus.MODIFIED;
  }
  else if (status.isSwitched()) {
    return FileStatus.SWITCHED;
  }
  else if (status.isCopied()) {
    return FileStatus.ADDED;
  }
  return FileStatus.NOT_CHANGED;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:52,代码来源:SvnStatusConvertor.java


注:本文中的com.intellij.openapi.vcs.FileStatus.IGNORED属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。