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


Java SVNStatusType.STATUS_MODIFIED属性代码示例

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


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

示例1: convertSingleStatus

private static FileStatus convertSingleStatus(final SVNStatusType status, final FileStatus defaultConflictStatus) throws SVNException {
  if (status == null) {
    return FileStatus.UNKNOWN;
  }
  if (SVNStatusType.STATUS_UNVERSIONED.equals(status)) {
    return FileStatus.UNKNOWN;
  }
  else if (SVNStatusType.STATUS_MISSING.equals(status)) {
    return FileStatus.DELETED_FROM_FS;
  }
  else if (SVNStatusType.STATUS_EXTERNAL.equals(status)) {
    return SvnFileStatus.EXTERNAL;
  }
  else if (SVNStatusType.STATUS_OBSTRUCTED.equals(status)) {
    return SvnFileStatus.OBSTRUCTED;
  }
  else if (SVNStatusType.STATUS_IGNORED.equals(status)) {
    return FileStatus.IGNORED;
  }
  else if (SVNStatusType.STATUS_ADDED.equals(status)) {
    return FileStatus.ADDED;
  }
  else if (SVNStatusType.STATUS_DELETED.equals(status)) {
    return FileStatus.DELETED;
  }
  else if (SVNStatusType.STATUS_REPLACED.equals(status)) {
    return SvnFileStatus.REPLACED;
  }
  else if (status == SVNStatusType.STATUS_CONFLICTED) {
    return defaultConflictStatus;
  }
  else if (status == SVNStatusType.STATUS_MODIFIED) {
    return FileStatus.MODIFIED;
  }
  return FileStatus.NOT_CHANGED;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:36,代码来源:SvnStatusConvertor.java

示例2: convert

public static SVNStatusType convert(Status.Kind kind) {
  if (kind == null) return null;
  if (Status.Kind.added.equals(kind)) {
    return SVNStatusType.STATUS_ADDED;
  } else if (Status.Kind.conflicted.equals(kind)) {
    return SVNStatusType.STATUS_CONFLICTED;
  } else if (Status.Kind.deleted.equals(kind)) {
    return SVNStatusType.STATUS_DELETED;
  } else if (Status.Kind.external.equals(kind)) {
    return SVNStatusType.STATUS_EXTERNAL;
  } else if (Status.Kind.ignored.equals(kind)) {
    // 5
    return SVNStatusType.STATUS_IGNORED;
  } else if (Status.Kind.incomplete.equals(kind)) {
    return SVNStatusType.STATUS_INCOMPLETE;
  } else if (Status.Kind.merged.equals(kind)) {
    return SVNStatusType.STATUS_MERGED;
  } else if (Status.Kind.missing.equals(kind)) {
    return SVNStatusType.STATUS_MISSING;
  } else if (Status.Kind.modified.equals(kind)) {
    return SVNStatusType.STATUS_MODIFIED;
  } else if (Status.Kind.none.equals(kind)) {
    //10
    return SVNStatusType.STATUS_NONE;
  } else if (Status.Kind.normal.equals(kind)) {
    return SVNStatusType.STATUS_NORMAL;
  } else if (Status.Kind.obstructed.equals(kind)) {
    return SVNStatusType.STATUS_OBSTRUCTED;
  } else if (Status.Kind.replaced.equals(kind)) {
    return SVNStatusType.STATUS_REPLACED;
  } else if (Status.Kind.unversioned.equals(kind)) {
    return SVNStatusType.STATUS_UNVERSIONED;
  }
  return SVNStatusType.STATUS_NONE;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:35,代码来源:StatusCallbackConvertor.java

示例3: convertStatus

public static FileStatus convertStatus(final SVNStatus status, final boolean noticeProperties) throws SVNException {
  if (status == null) {
    return FileStatus.UNKNOWN;
  }
  if (SvnVcs.svnStatusIsUnversioned(status)) {
    return FileStatus.UNKNOWN;
  }
  else if (SvnVcs.svnStatusIs(status, SVNStatusType.STATUS_MISSING)) {
    return FileStatus.DELETED_FROM_FS;
  }
  else if (SvnVcs.svnStatusIs(status, SVNStatusType.STATUS_EXTERNAL)) {
    return SvnFileStatus.EXTERNAL;
  }
  else if (SvnVcs.svnStatusIs(status, SVNStatusType.STATUS_OBSTRUCTED)) {
    return SvnFileStatus.OBSTRUCTED;
  }
  else if (SvnVcs.svnStatusIs(status, SVNStatusType.STATUS_IGNORED)) {
    return FileStatus.IGNORED;
  }
  else if (SvnVcs.svnStatusIs(status, SVNStatusType.STATUS_ADDED)) {
    return FileStatus.ADDED;
  }
  else if (SvnVcs.svnStatusIs(status, SVNStatusType.STATUS_DELETED)) {
    return FileStatus.DELETED;
  }
  else if (SvnVcs.svnStatusIs(status, SVNStatusType.STATUS_REPLACED)) {
    return SvnFileStatus.REPLACED;
  }
  else if (status.getContentsStatus() == SVNStatusType.STATUS_CONFLICTED ||
           noticeProperties && status.getPropertiesStatus() == SVNStatusType.STATUS_CONFLICTED) {
    if (status.getContentsStatus() == SVNStatusType.STATUS_CONFLICTED &&
        noticeProperties && status.getPropertiesStatus() == SVNStatusType.STATUS_CONFLICTED) {
      return FileStatus.MERGED_WITH_BOTH_CONFLICTS;
    } else if (status.getContentsStatus() == SVNStatusType.STATUS_CONFLICTED) {
      return FileStatus.MERGED_WITH_CONFLICTS;
    }
    return FileStatus.MERGED_WITH_PROPERTY_CONFLICTS;
  }
  else if (status.getContentsStatus() == SVNStatusType.STATUS_MODIFIED ||
           noticeProperties && status.getPropertiesStatus() == SVNStatusType.STATUS_MODIFIED) {
    return FileStatus.MODIFIED;
  }
  else if (status.isSwitched()) {
    return FileStatus.SWITCHED;
  }
  else if (status.isCopied()) {
    return FileStatus.ADDED;
  }
  return FileStatus.NOT_CHANGED;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:50,代码来源:SvnStatusConvertor.java


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