Package org.apache.karaf.eik.workbench.ui.views

Examples of org.apache.karaf.eik.workbench.ui.views.PropertyEntry


                } else {
                    label = LABEL_ERROR;
                }
            }
        } else if (element instanceof PropertyEntry) {
            final PropertyEntry prop = (PropertyEntry) element;

            if (columnIndex == 0) {
                label = prop.getKey();
            } else if (columnIndex == 1) {
                final Object value = prop.getValue();

                if (value == null) {
                    label = LABEL_NULL;
                } else if (value instanceof Object[]) {
                    label = arrayToString((Object[]) value);
View Full Code Here


            final Properties properties = (Properties) service.getAdapter(Properties.class);

            final List<PropertyEntry> entries = new ArrayList<PropertyEntry>();

            if (properties == null) {
                final PropertyEntry pi = new PropertyEntry(service, "Properties unavailable", "");
                entries.add(pi);
            } else {

                for (final Object o: properties.keySet()) {
                    final String key = (String)o;
                    final PropertyEntry pi = new PropertyEntry(service, key, properties.get(key));
                    entries.add(pi);
                }
            }

            result = entries.toArray(new Object[0]);
View Full Code Here

TOP

Related Classes of org.apache.karaf.eik.workbench.ui.views.PropertyEntry

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.