Package org.fusesource.ide.commons.util

Examples of org.fusesource.ide.commons.util.Function1WithReturnType


      IPropertyDescriptor[] descriptors = propertySource.getPropertyDescriptors();
      if (descriptors != null) {
        for (final IPropertyDescriptor descriptor : descriptors) {
          final Object id = descriptor.getId();
          String name = PropertyDescriptors.getReadablePropertyName(descriptor);
          Function1 function = new Function1WithReturnType() {
            @Override
            public Object apply(Object object) {
              if (object instanceof IPropertySource) {
                IPropertySource property = (IPropertySource) object;
                return property.getPropertyValue(id);
View Full Code Here


        IPropertyDescriptor[] descriptors = propertySource.getPropertyDescriptors();
        if (descriptors != null) {
          for (final IPropertyDescriptor descriptor : descriptors) {
            final Object id = descriptor.getId();
            String name = PropertyDescriptors.getReadablePropertyName(descriptor);
            Function1 function = new Function1WithReturnType() {
              @Override
              public Object apply(Object object) {
                IPropertySource property = PropertySources.asPropertySource(object);
                if (property != null) {
                  return property.getPropertyValue(id);
View Full Code Here

TOP

Related Classes of org.fusesource.ide.commons.util.Function1WithReturnType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.