diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2007-05-07 09:40:58 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2007-05-07 09:40:58 +0000 |
| commit | 582a91714ddfb865614b6a335a3da2841299e07e (patch) | |
| tree | 95c161afd1106bda92065c2286a961eb2cd77d6c /java/management/eclipse-plugin/src | |
| parent | fab9010708e162ad54a42eb0fbd2829f06c94481 (diff) | |
| download | qpid-python-582a91714ddfb865614b6a335a3da2841299e07e.tar.gz | |
Merged revisions 534897-534902,534904-535253,535255-535809 via svnmerge from
https://svn.apache.org/repos/asf/incubator/qpid/branches/M2
........
r534897 | bhupendrab | 2007-05-03 15:53:20 +0100 (Thu, 03 May 2007) | 1 line
Attribute details background made same as other displays.
........
r535309 | ritchiem | 2007-05-04 17:12:59 +0100 (Fri, 04 May 2007) | 2 lines
QPID-466 Changes to FieldTable along with corresponding PropertyValueTest to limit the Java client to only AMQP 0-8 compliant values.
........
r535809 | ritchiem | 2007-05-07 10:28:15 +0100 (Mon, 07 May 2007) | 5 lines
QPID-466 Updated FieldTable to ensure no Decimal value is set that is larger than can be transmitted over AMQP.
That is a max scale value of Byte.MAX_VALUE and value of up to Integer.MAX_VALUE.
Additional tests to ensure this is the case.
........
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@535819 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/management/eclipse-plugin/src')
| -rw-r--r-- | java/management/eclipse-plugin/src/main/java/org/apache/qpid/management/ui/views/AttributesTabControl.java | 28 |
1 files changed, 10 insertions, 18 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 1ffe34d9c5..3234503fb5 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 @@ -477,37 +477,32 @@ public class AttributesTabControl extends TabControl layout.marginHeight = 20; layout.marginWidth = 20; - Composite parent = new Composite(shell, SWT.NONE); + Composite parent = _toolkit.createComposite(shell, SWT.NONE); parent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); parent.setLayout(layout); // Name - Label label = new Label(parent, SWT.NONE); - label.setText(ATTRIBUTE_TABLE_TITLES[0]); + Label label = _toolkit.createLabel(parent, ATTRIBUTE_TABLE_TITLES[0], SWT.NONE); GridData layoutData = new GridData(SWT.TRAIL, SWT.TOP, false, false); label.setLayoutData(layoutData); - Text value = new Text(parent, SWT.BEGINNING | SWT.BORDER |SWT.READ_ONLY); - value.setText(ViewUtility.getDisplayText(attribute.getName())); + int textStyle = SWT.BEGINNING | SWT.BORDER |SWT.READ_ONLY; + Text value = _toolkit.createText(parent, ViewUtility.getDisplayText(attribute.getName()), textStyle); value.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); // Description - label = new Label(parent, SWT.NONE); - label.setText(DESCRIPTION); + label = _toolkit.createLabel(parent, DESCRIPTION, SWT.NONE); label.setLayoutData(new GridData(SWT.TRAIL, SWT.TOP, false, false)); - value = new Text(parent, SWT.BEGINNING | SWT.BORDER | SWT.READ_ONLY); - value.setText(attribute.getDescription()); + value = _toolkit.createText(parent, attribute.getDescription(), textStyle); value.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); // value - label = new Label(parent, SWT.NONE); - label.setText(ATTRIBUTE_TABLE_TITLES[1]); + label = _toolkit.createLabel(parent, ATTRIBUTE_TABLE_TITLES[1], SWT.NONE); label.setLayoutData(new GridData(SWT.TRAIL, SWT.TOP, false, false)); if (!attribute.isReadable()) { - value = new Text(parent, SWT.BEGINNING | SWT.BORDER | SWT.READ_ONLY); - value.setText(""); + value = _toolkit.createText(parent, "", textStyle); value.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); } else @@ -521,11 +516,9 @@ public class AttributesTabControl extends TabControl } else { - int style = 0; if (attribute.isWritable()) { - style = SWT.BEGINNING | SWT.BORDER; - value = new Text(parent, style); + value = _toolkit.createText(parent, "", SWT.BEGINNING | SWT.BORDER); value.addVerifyListener(new NumberVerifyListener()); // set data to access in the listener @@ -533,8 +526,7 @@ public class AttributesTabControl extends TabControl } else { - style = SWT.BEGINNING | SWT.BORDER | SWT.READ_ONLY; - value = new Text(parent, style); + value = _toolkit.createText(parent, "", textStyle); } value.setText(attribute.getValue().toString()); |
