Mercurial > projects > dwt-addons
comparison dwtx/ui/internal/forms/MessageManager.d @ 78:4ac9946b9fb5
Forms work with first test
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 24 May 2008 08:33:56 +0200 |
parents | e193036d82c9 |
children | 7ffeace6c47f |
comparison
equal
deleted
inserted
replaced
77:26c6c9dfd13c | 78:4ac9946b9fb5 |
---|---|
98 } | 98 } |
99 } | 99 } |
100 return standardInformation_; | 100 return standardInformation_; |
101 } | 101 } |
102 | 102 |
103 private static String[] SINGLE_MESSAGE_SUMMARY_KEYS; | 103 private static String[] SINGLE_MESSAGE_SUMMARY_KEYS_; |
104 private static String[] MULTIPLE_MESSAGE_SUMMARY_KEYS; | 104 private static String[] SINGLE_MESSAGE_SUMMARY_KEYS(){ |
105 | 105 if( SINGLE_MESSAGE_SUMMARY_KEYS_ is null ){ |
106 static this(){ | 106 synchronized(MessageManager.classinfo){ |
107 SINGLE_MESSAGE_SUMMARY_KEYS = [ | 107 if( SINGLE_MESSAGE_SUMMARY_KEYS_ is null ){ |
108 Messages.MessageManager_sMessageSummary, | 108 SINGLE_MESSAGE_SUMMARY_KEYS_ = [ |
109 Messages.MessageManager_sMessageSummary, | 109 Messages.MessageManager_sMessageSummary, |
110 Messages.MessageManager_sWarningSummary, | 110 Messages.MessageManager_sMessageSummary, |
111 Messages.MessageManager_sErrorSummary ]; | 111 Messages.MessageManager_sWarningSummary, |
112 | 112 Messages.MessageManager_sErrorSummary ]; |
113 MULTIPLE_MESSAGE_SUMMARY_KEYS = [ | 113 } |
114 Messages.MessageManager_pMessageSummary, | 114 } |
115 Messages.MessageManager_pMessageSummary, | 115 } |
116 Messages.MessageManager_pWarningSummary, | 116 return SINGLE_MESSAGE_SUMMARY_KEYS_; |
117 Messages.MessageManager_pErrorSummary ]; | 117 } |
118 | |
119 private static String[] MULTIPLE_MESSAGE_SUMMARY_KEYS_; | |
120 private static String[] MULTIPLE_MESSAGE_SUMMARY_KEYS(){ | |
121 if( MULTIPLE_MESSAGE_SUMMARY_KEYS_ is null ){ | |
122 synchronized(MessageManager.classinfo){ | |
123 if( MULTIPLE_MESSAGE_SUMMARY_KEYS_ is null ){ | |
124 MULTIPLE_MESSAGE_SUMMARY_KEYS_ = [ | |
125 Messages.MessageManager_pMessageSummary, | |
126 Messages.MessageManager_pMessageSummary, | |
127 Messages.MessageManager_pWarningSummary, | |
128 Messages.MessageManager_pErrorSummary ]; | |
129 } | |
130 } | |
131 } | |
132 return MULTIPLE_MESSAGE_SUMMARY_KEYS_; | |
118 } | 133 } |
119 | 134 |
120 static class Message : IMessage { | 135 static class Message : IMessage { |
121 Control control; | 136 Control control; |
122 Object data; | 137 Object data; |