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

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

Introduction

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

Prototype

String getName();

Source Link

Usage

From source file:org.springframework.ide.eclipse.boot.dash.test.CloudFoundryBootDashModelMockingTest.java

private <T extends BootDashElement> void debugListener(final String name, ObservableSet<T> set) {
    set.addListener(new ValueListener<ImmutableSet<T>>() {

        @Override/*from  www  . ja  va 2  s  .co m*/
        public void gotValue(LiveExpression<ImmutableSet<T>> exp, ImmutableSet<T> value) {
            StringBuilder elements = new StringBuilder();
            for (BootDashElement e : exp.getValue()) {
                elements.append(e.getName());
                elements.append(" ");
            }
            System.out.println(name + " -> " + elements);
        }
    });
}

From source file:org.springframework.ide.eclipse.boot.dash.test.CloudFoundryBootDashModelMockingTest.java

private ImmutableSet<String> getNames(ImmutableSet<? extends BootDashElement> values) {
    Builder<String> builder = ImmutableSet.builder();
    for (BootDashElement e : values) {
        builder.add(e.getName());
    }//from ww  w  .  j av a  2  s .  co m
    return builder.build();
}