Skip to content

Commit

Permalink
A few improvements in the internal stubs.
Browse files Browse the repository at this point in the history
fabioz committed May 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3aa0977 commit e9b7762
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -48,6 +48,11 @@ public URI getLocationURI() {
return file.toURI();
}

@Override
public boolean isAccessible() {
return file.exists();
}

@Override
public IPath getLocation() {
return Path.fromOSString(file.toString());
Original file line number Diff line number Diff line change
@@ -40,6 +40,11 @@ public FolderStub(IProjectStub stub, IContainer parent, File parentFile, boolean
this.parent = parent;
}

@Override
public boolean isAccessible() {
return this.folder.exists();
}

@Override
public IContainer getParent() {
if (parent != null) {
Original file line number Diff line number Diff line change
@@ -108,6 +108,11 @@ public boolean isOpen() {

}

@Override
public boolean isAccessible() {
return this.projectRoot.exists();
}

@Override
public void deleteMarkers(String type, boolean includeSubtypes, int depth) throws CoreException {

0 comments on commit e9b7762

Please sign in to comment.