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 | a9380a46db39464134dd97fa4c2a890a221bbc71 (patch) | |
| tree | 16b057e277cba664f4fcd12ffe1d9b9ac67515fd /qpid/java/management | |
| parent | 2245b51ef87f73e38536c0a09309fcb6ae9ea6f2 (diff) | |
| download | qpid-python-a9380a46db39464134dd97fa4c2a890a221bbc71.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@762365 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/management')
| -rw-r--r-- | qpid/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/qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/AttributesTabControl.java b/qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/AttributesTabControl.java index 3234503fb5..48efee44d6 100644 --- a/qpid/java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/AttributesTabControl.java +++ b/qpid/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 +} |
