Example usage for org.springframework.ide.eclipse.boot.dash.model RunTarget getId

List of usage examples for org.springframework.ide.eclipse.boot.dash.model RunTarget getId

Introduction

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

Prototype

String getId();

Source Link

Usage

From source file:org.springframework.ide.eclipse.boot.dash.cloudfoundry.CloudFoundryTargetWizardModel.java

protected RunTarget getExistingRunTarget(CFSpace space) {
    if (space != null) {
        String targetId = CloudFoundryTargetProperties.getId(getUsername(), getUrl(),
                space.getOrganization().getName(), space.getName());
        for (RunTarget target : existingTargets) {
            if (targetId.equals(target.getId())) {
                return target;
            }/*from w w  w.  ja v a 2s  .  com*/
        }
    }
    return null;
}