Mercurial > projects > dwt-addons
comparison dwtx/jface/text/hyperlink/HyperlinkMessages.d @ 174:c6d7b1ea700b
First sample running
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 11 Sep 2008 00:32:24 +0200 |
parents | 1a5b8f8129df |
children |
comparison
equal
deleted
inserted
replaced
173:8995e830f75e | 174:c6d7b1ea700b |
---|---|
10 * Port to the D programming language: | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | 11 * Frank Benoit <benoit@tionex.de> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwtx.jface.text.hyperlink.HyperlinkMessages; | 13 module dwtx.jface.text.hyperlink.HyperlinkMessages; |
14 | 14 |
15 import dwtx.jface.text.hyperlink.IHyperlinkPresenterExtension; // packageimport | |
16 import dwtx.jface.text.hyperlink.MultipleHyperlinkPresenter; // packageimport | |
17 import dwtx.jface.text.hyperlink.HyperlinkManager; // packageimport | |
18 import dwtx.jface.text.hyperlink.URLHyperlink; // packageimport | |
19 import dwtx.jface.text.hyperlink.IHyperlinkDetectorExtension2; // packageimport | |
20 import dwtx.jface.text.hyperlink.IHyperlinkDetector; // packageimport | |
21 import dwtx.jface.text.hyperlink.IHyperlinkPresenter; // packageimport | |
22 import dwtx.jface.text.hyperlink.URLHyperlinkDetector; // packageimport | |
23 import dwtx.jface.text.hyperlink.DefaultHyperlinkPresenter; // packageimport | |
24 import dwtx.jface.text.hyperlink.AbstractHyperlinkDetector; // packageimport | |
25 import dwtx.jface.text.hyperlink.IHyperlinkDetectorExtension; // packageimport | |
26 import dwtx.jface.text.hyperlink.IHyperlink; // packageimport | |
27 | |
28 | |
29 import dwt.dwthelper.utils; | 15 import dwt.dwthelper.utils; |
30 | 16 |
31 import dwt.dwthelper.ResourceBundle; | 17 import dwt.dwthelper.ResourceBundle; |
32 | 18 |
33 | 19 |
35 * Helper class to get NLSed messages. | 21 * Helper class to get NLSed messages. |
36 * | 22 * |
37 * @since 3.4 | 23 * @since 3.4 |
38 */ | 24 */ |
39 class HyperlinkMessages { | 25 class HyperlinkMessages { |
40 // private static const String BUNDLE_NAME= HyperlinkMessages.classinfo.getName(); | 26 private static ResourceBundle RESOURCE_BUNDLE_;//= ResourceBundle.getBundle(BUNDLE_NAME); |
41 | 27 private static ResourceBundle RESOURCE_BUNDLE(){ |
42 private static const ResourceBundle RESOURCE_BUNDLE;//= ResourceBundle.getBundle(BUNDLE_NAME); | 28 if( RESOURCE_BUNDLE_ is null ){ |
43 | 29 synchronized(HyperlinkMessages.classinfo ){ |
44 static this() { | 30 if( RESOURCE_BUNDLE_ is null ){ |
45 RESOURCE_BUNDLE = ResourceBundle.getBundle( | 31 RESOURCE_BUNDLE_ = ResourceBundle.getBundle( |
46 getImportData!("dwtx.jface.text.hyperlink.HyperlinkMessages.properties")); | 32 getImportData!("dwtx.jface.text.hyperlink.HyperlinkMessages.properties")); |
33 } | |
34 } | |
35 } | |
36 return RESOURCE_BUNDLE_; | |
47 } | 37 } |
48 | 38 |
49 private this() { | 39 private this() { |
50 } | 40 } |
51 | 41 |