Example usage for org.springframework.ide.eclipse.boot.core ISpringBootProject getDependencies

List of usage examples for org.springframework.ide.eclipse.boot.core ISpringBootProject getDependencies

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.core ISpringBootProject getDependencies.

Prototype

public List<IMavenCoordinates> getDependencies() throws Exception;

Source Link

Document

Fetches list of dependencies from the project.

Usage

From source file:org.springframework.ide.eclipse.boot.ui.EnableDisableBootDevtools.java

private boolean hasDevTools(ISpringBootProject bootProject) {
    try {/*from   w w w. j ava2 s .  c  o m*/
        List<IMavenCoordinates> deps = bootProject.getDependencies();
        if (deps != null) {
            for (IMavenCoordinates d : deps) {
                if (SPRING_BOOT_DEVTOOLS_AID.equals(d.getArtifactId())) {
                    return true;
                }
            }
        }
    } catch (Exception e) {
        BootActivator.log(e);
    }
    return false;
}