org.eclipse.core.runtime.Path.isPrefixOf()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中org.eclipse.core.runtime.Path.isPrefixOf()方法的一些代码示例,展示了Path.isPrefixOf()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Path.isPrefixOf()方法的具体详情如下:
包路径:org.eclipse.core.runtime.Path
类名称:Path
方法名:isPrefixOf

Path.isPrefixOf介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

private static boolean isGoodFolderMatch(String value, String oldName) {
    return new Path(oldName).isPrefixOf(new Path(value));
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui

public boolean isInContainer(String containerName) {
  if (fParentContainer instanceof CPListElement) {
    CPListElement elem= (CPListElement) fParentContainer;
    return new Path(containerName).isPrefixOf(elem.getPath());
  }
  return false;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public boolean isInContainer(String containerName) {
  if (fParentContainer instanceof CPListElement) {
    CPListElement elem= (CPListElement) fParentContainer;
    return new Path(containerName).isPrefixOf(elem.getPath());
  }
  return false;
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

public boolean isInContainer(String containerName) {
  if (fParentContainer instanceof CPListElement) {
    CPListElement elem= (CPListElement) fParentContainer;
    return new Path(containerName).isPrefixOf(elem.getPath());
  }
  return false;
}

代码示例来源:origin: org.eclipse.egit/ui

if (selectedPath.isPrefixOf(new Path(conflictingFile)))
  return true;

代码示例来源:origin: org.testeditor/org.testeditor.dsl.common

final Path gradleJavaStandardPath = new Path("src/main/java");
final Path gradleTestStandardPath = new Path("src/test/java");
while (((relativePath.segmentCount() > 2) && (!(gradleJavaStandardPath.isPrefixOf(relativePath) || gradleTestStandardPath.isPrefixOf(relativePath))))) {
 relativePath = relativePath.removeFirstSegments(1);
if ((gradleJavaStandardPath.isPrefixOf(relativePath) || gradleTestStandardPath.isPrefixOf(relativePath))) {
 String _string = originPath.toString();
 String _plus = ("found standard path for " + _string);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

if (new Path(sourceLocation.toString()).isPrefixOf(new Path(
    destinationLocation.toString()))) {
  return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_destinationDescendentError;

相关文章