use of org.eclipse.emf.common.util.URI.createPlatformResourceURI in project n4js by eclipse.
the class ExternalLibraryBuilder method hasWorkspaceCounterpart.
/**
* Returns with {@code true} if the external project is accessible in the workspace as well.
*/
private boolean hasWorkspaceCounterpart(IN4JSProject project) {
URI uri = URI.createPlatformResourceURI(project.getProjectId(), true);
IN4JSProject n4Project = core.findProject(uri).orNull();
return null != n4Project && n4Project.exists() && !n4Project.isExternal();
}
Aggregations