Example usage for org.springframework.ide.eclipse.boot.dash.model BootDashElement getBootDashModel

List of usage examples for org.springframework.ide.eclipse.boot.dash.model BootDashElement getBootDashModel

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.dash.model BootDashElement getBootDashModel.

Prototype

BootDashModel getBootDashModel();

Source Link

Usage

From source file:org.springframework.ide.eclipse.boot.dash.views.sections.BootDashUnifiedTreeSection.java

private boolean canDeploySelection(Set<BootDashElement> selection) {
    if (selection.isEmpty()) {
        //Careful... don't return 'true' if nothing is selected.
        return false;
    }// w  ww. j a  va  2  s .co m
    for (BootDashElement e : selection) {
        if (!e.getBootDashModel().getRunTarget().canDeployAppsFrom()) {
            return false;
        }
    }
    return true;
}