Loading plugins/org.etsi.mts.tdl.common/src/org/etsi/mts/tdl/resources/FileFinder.java 0 → 100644 +25 −0 Original line number Diff line number Diff line package org.etsi.mts.tdl.resources; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IResourceVisitor; import org.eclipse.core.runtime.CoreException; public abstract class FileFinder implements IResourceVisitor { public IFile file; @Override public boolean visit(IResource resource) throws CoreException { if (file != null) return false; if (resource.getType() != IResource.FILE) return true; if (mathces((IFile) resource)) { this.file = (IFile) resource; } return file == null; } abstract protected boolean mathces(IFile file); } plugins/org.etsi.mts.tdl.common/src/org/etsi/mts/tdl/resources/ResourceHandler.java +0 −18 Original line number Diff line number Diff line Loading @@ -349,24 +349,6 @@ public class ResourceHandler { return null; } abstract static class FileFinder implements IResourceVisitor { public IFile file; @Override public boolean visit(IResource resource) throws CoreException { if (file != null) return false; if (resource.getType() != IResource.FILE) return true; if (mathces((IFile) resource)) { this.file = (IFile) resource; } return file == null; } abstract protected boolean mathces(IFile file); } } Loading
plugins/org.etsi.mts.tdl.common/src/org/etsi/mts/tdl/resources/FileFinder.java 0 → 100644 +25 −0 Original line number Diff line number Diff line package org.etsi.mts.tdl.resources; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IResourceVisitor; import org.eclipse.core.runtime.CoreException; public abstract class FileFinder implements IResourceVisitor { public IFile file; @Override public boolean visit(IResource resource) throws CoreException { if (file != null) return false; if (resource.getType() != IResource.FILE) return true; if (mathces((IFile) resource)) { this.file = (IFile) resource; } return file == null; } abstract protected boolean mathces(IFile file); }
plugins/org.etsi.mts.tdl.common/src/org/etsi/mts/tdl/resources/ResourceHandler.java +0 −18 Original line number Diff line number Diff line Loading @@ -349,24 +349,6 @@ public class ResourceHandler { return null; } abstract static class FileFinder implements IResourceVisitor { public IFile file; @Override public boolean visit(IResource resource) throws CoreException { if (file != null) return false; if (resource.getType() != IResource.FILE) return true; if (mathces((IFile) resource)) { this.file = (IFile) resource; } return file == null; } abstract protected boolean mathces(IFile file); } }