Example usage for org.springframework.ide.eclipse.boot.dash.cloudfoundry.client CFSpace getName

List of usage examples for org.springframework.ide.eclipse.boot.dash.cloudfoundry.client CFSpace getName

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.dash.cloudfoundry.client CFSpace getName.

Prototype

String getName();

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;
            }/* w  w  w  .  j  a v a  2 s  .com*/
        }
    }
    return null;
}

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

public String getSpaceName() {
    CFSpace space = this.space.getValue();
    if (space != null) {
        return space.getName();
    }/*from w w  w. j a v a  2  s.  c  o  m*/
    return null;
}