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

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

Introduction

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

Prototype

public String getBootVersion();

Source Link

Document

Version of spring boot on this project's classpath.

Usage

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

private SpringBootStarter getAvaibleDevtools(ISpringBootProject project) {
    try {//from   w  ww . j  av  a2  s.  c  om
        String versionString = project.getBootVersion();
        if (StringUtils.isNotBlank(versionString) && DEVTOOLS_SUPPORTED.includes(new Version(versionString))) {
            return DEVTOOLS_STARTER;
        }
    } catch (Exception e) {
        BootActivator.log(e);
    }
    return null;
}