diff options
| author | Robert Gemmell <robbie@apache.org> | 2009-04-06 14:45:33 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2009-04-06 14:45:33 +0000 |
| commit | 557e3ceb4cec0bbbfb62700afdf0f3c96aeb64f5 (patch) | |
| tree | 74111175e94b729d76e28fc85db95ef8c0043dde /java/management/eclipse-plugin | |
| parent | 590feae56049782150cc54b46158b77b94c53cdf (diff) | |
| download | qpid-python-557e3ceb4cec0bbbfb62700afdf0f3c96aeb64f5.tar.gz | |
QPID-1790: add new attribute to logging management mbean to indicate available output levels. Update jmx management console to understand String[] attribute value and display contents properly
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@762365 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/management/eclipse-plugin')
| -rw-r--r-- | java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/AttributesTabControl.java | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/AttributesTabControl.java b/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/AttributesTabControl.java index 3234503fb5..48efee44d6 100644 --- a/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/AttributesTabControl.java +++ b/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/AttributesTabControl.java @@ -509,10 +509,24 @@ public class AttributesTabControl extends TabControl { if (!isSimpleType(attribute.getValue())) { - Composite composite = new Composite(parent, SWT.BORDER); - composite.setLayout(new GridLayout()); - composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); - ViewUtility.populateCompositeWithData(_toolkit, composite, attribute.getValue()); + if (attribute.getValue() instanceof String[]) + { + String result = new String(""); + for(String val : (String[]) attribute.getValue()){ + result = result.concat(val+ "; "); + } + value = _toolkit.createText(parent, "", textStyle); + + value.setText(result); + value.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); + } + else + { + Composite composite = new Composite(parent, SWT.BORDER); + composite.setLayout(new GridLayout()); + composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); + ViewUtility.populateCompositeWithData(_toolkit, composite, attribute.getValue()); + } } else { @@ -877,7 +891,16 @@ public class AttributesTabControl extends TabControl break; case 1 : // attribute value column if (attribute.getValue() != null) - result = String.valueOf(attribute.getValue()); + if (attribute.getValue() instanceof String[]) + { + for(String val : (String[]) attribute.getValue()){ + result = result.concat(val+ "; "); + } + } + else + { + result = String.valueOf(attribute.getValue()); + } break; default : result = ""; @@ -933,4 +956,4 @@ public class AttributesTabControl extends TabControl return collator.compare(attribtue1.getName(), attribtue2.getName()); } } -}
\ No newline at end of file +} |
