Search in sources :

Example 1 with NpmBinary

use of org.eclipse.n4js.binaries.nodejs.NpmBinary in project n4js by eclipse.

the class NpmManager method checkNPM.

/**
 * Checks the npm binary.
 */
private IStatus checkNPM() {
    final NpmBinary npmBinary = npmBinaryProvider.get();
    final IStatus npmBinaryStatus = npmBinary.validate();
    if (!npmBinaryStatus.isOK()) {
        return statusHelper.createError("npm binary invalid", new IllegalBinaryStateException(npmBinary, npmBinaryStatus));
    }
    return statusHelper.OK();
}
Also used : IStatus(org.eclipse.core.runtime.IStatus) IllegalBinaryStateException(org.eclipse.n4js.binaries.IllegalBinaryStateException) NpmBinary(org.eclipse.n4js.binaries.nodejs.NpmBinary)

Aggregations

IStatus (org.eclipse.core.runtime.IStatus)1 IllegalBinaryStateException (org.eclipse.n4js.binaries.IllegalBinaryStateException)1 NpmBinary (org.eclipse.n4js.binaries.nodejs.NpmBinary)1