comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Display.d @ 86:12b890a6392a

Work on databinding
author Frank Benoit <benoit@tionex.de>
date Sat, 18 Apr 2009 13:58:35 +0200
parents 0ecb2b338560
children 9f4c18c268b2
comparison
equal deleted inserted replaced
85:6be48cf9f95c 86:12b890a6392a
1652 public Object getData (String key) { 1652 public Object getData (String key) {
1653 checkDevice (); 1653 checkDevice ();
1654 // SWT extension: allow null string 1654 // SWT extension: allow null string
1655 //if (key is null) error (SWT.ERROR_NULL_ARGUMENT); 1655 //if (key is null) error (SWT.ERROR_NULL_ARGUMENT);
1656 if (key ==/*eq*/RUN_MESSAGES_IN_IDLE_KEY) { 1656 if (key ==/*eq*/RUN_MESSAGES_IN_IDLE_KEY) {
1657 return new ValueWrapperBool(runMessagesInIdle); 1657 return new Boolean(runMessagesInIdle);
1658 } 1658 }
1659 if (key.equals (RUN_MESSAGES_IN_MESSAGE_PROC_KEY)) { 1659 if (key.equals (RUN_MESSAGES_IN_MESSAGE_PROC_KEY)) {
1660 return new Boolean (runMessagesInMessageProc); 1660 return new Boolean (runMessagesInMessageProc);
1661 } 1661 }
1662 if (keys.length is 0) return null; 1662 if (keys.length is 0) return null;
4128 checkDevice (); 4128 checkDevice ();
4129 // SWT extension: allow null string 4129 // SWT extension: allow null string
4130 //if (key is null) error (SWT.ERROR_NULL_ARGUMENT); 4130 //if (key is null) error (SWT.ERROR_NULL_ARGUMENT);
4131 4131
4132 if (key ==/*eq*/RUN_MESSAGES_IN_IDLE_KEY) { 4132 if (key ==/*eq*/RUN_MESSAGES_IN_IDLE_KEY) {
4133 auto data = cast(ValueWrapperBool) value; 4133 auto data = cast(Boolean) value;
4134 runMessagesInIdle = data !is null && data.value; 4134 runMessagesInIdle = data !is null && data.value;
4135 return; 4135 return;
4136 } 4136 }
4137 if (key.equals (RUN_MESSAGES_IN_MESSAGE_PROC_KEY)) { 4137 if (key.equals (RUN_MESSAGES_IN_MESSAGE_PROC_KEY)) {
4138 Boolean data = cast(Boolean) value; 4138 Boolean data = cast(Boolean) value;