Search in sources :

Example 1 with URI.createPlatformResourceURI

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();
}
Also used : IN4JSProject(org.eclipse.n4js.projectModel.IN4JSProject) URI.createPlatformResourceURI(org.eclipse.emf.common.util.URI.createPlatformResourceURI) URI(org.eclipse.emf.common.util.URI)

Aggregations

URI (org.eclipse.emf.common.util.URI)1 URI.createPlatformResourceURI (org.eclipse.emf.common.util.URI.createPlatformResourceURI)1 IN4JSProject (org.eclipse.n4js.projectModel.IN4JSProject)1