Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -787,14 +787,19 @@ private String getValue(String s) {
}

}
protected boolean isExistingProject(File element) {

private IProject findExistingProject(File element) {
for (IProject project : ResourcesPlugin.getWorkspace().getRoot().getProjects()) {
IPath location = project.getLocation();
if (location != null && element.equals(location.toFile())) {
return true;
return project;
}
}
return false;
return null;
}

protected boolean isExistingProject(File element) {
return findExistingProject(element) != null;
}

protected boolean isExistingProjectName(File element) {
Expand Down
Loading