Skip to content

Commit

Permalink
A few improvements in the internal stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed May 1, 2024
1 parent 3aa0977 commit e9b7762
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit e9b7762

Please sign in to comment.