009598b1681073ef70d7b210b6d9135127037298
[public/netxms.git] / webui / webapp / SNMP / src / org / netxms / ui / eclipse / snmp / Messages.java
1 package org.netxms.ui.eclipse.snmp;
2
3 import org.eclipse.osgi.util.NLS;
4 import org.eclipse.rap.rwt.RWT;
5 import org.eclipse.swt.widgets.Display;
6
7
8 public class Messages extends NLS
9 {
10 private static final String BUNDLE_NAME = "org.netxms.ui.eclipse.snmp.messages"; //$NON-NLS-1$
11 public String AddUsmCredDialog_Auth;
12 public String AddUsmCredDialog_AuthPasswd;
13 public String AddUsmCredDialog_AuthTypeMD5;
14 public String AddUsmCredDialog_AuthTypeNone;
15 public String AddUsmCredDialog_AuthTypeSHA1;
16 public String AddUsmCredDialog_EncPasswd;
17 public String AddUsmCredDialog_Encryption;
18 public String AddUsmCredDialog_EncTypeAES;
19 public String AddUsmCredDialog_EncTypeDES;
20 public String AddUsmCredDialog_EncTypeNone;
21 public String AddUsmCredDialog_Title;
22 public String AddUsmCredDialog_UserName;
23 public String LoginListener_JobError;
24 public String LoginListener_JobTitle;
25 public String MibExplorer_CopyName;
26 public String MibExplorer_CopyToClipboard;
27 public String MibExplorer_CopyType;
28 public String MibExplorer_CopyValue;
29 public String MibExplorer_OID;
30 public String MibExplorer_SelectInTree;
31 public String MibExplorer_SetNodeObject;
32 public String MibExplorer_Type;
33 public String MibExplorer_Value;
34 public String MibExplorer_Walk;
35 public String MibExplorer_WalkJob_Error;
36 public String MibExplorer_WalkJob_Title;
37 public String MibObjectDetails_8;
38 public String MibObjectDetails_Access;
39 public String MibObjectDetails_OID;
40 public String MibObjectDetails_OIDAsText;
41 public String MibObjectDetails_Status;
42 public String MibObjectDetails_TextualConv;
43 public String MibObjectDetails_Type;
44 public String MibSelectionDialog_EnterValidOID;
45 public String MibSelectionDialog_Error;
46 public String MibSelectionDialog_MIBTree;
47 public String MibSelectionDialog_OID;
48 public String MibSelectionDialog_OIDParseError;
49 public String MibSelectionDialog_Title;
50 public String MibSelectionDialog_Walk;
51 public String MibSelectionDialog_Warning;
52 public String MibSelectionDialog_WarningText;
53 public String MibWalkDialog_Title;
54 public String OpenMibExplorer_Error;
55 public String OpenMibExplorer_ErrorText;
56 public String OpenMibExplorerForNode_Error;
57 public String OpenMibExplorerForNode_ErrorText;
58 public String OpenSnmpTrapMonitor_Error;
59 public String OpenSnmpTrapMonitor_ErrorText;
60 public String OpenSnmpTrapMonitor_JobError;
61 public String OpenSnmpTrapMonitor_JobTitle;
62 public String OpenTrapEditor_Error;
63 public String OpenTrapEditor_ErrorText;
64 public String ParamMappingEditDialog_ByOID;
65 public String ParamMappingEditDialog_ByPos;
66 public String ParamMappingEditDialog_Description;
67 public String ParamMappingEditDialog_EnterVarbindPos;
68 public String ParamMappingEditDialog_NeverConvertToHex;
69 public String ParamMappingEditDialog_Options;
70 public String ParamMappingEditDialog_Select;
71 public String ParamMappingEditDialog_Title;
72 public String ParamMappingEditDialog_Varbind;
73 public String ParamMappingEditDialog_Warning;
74 public String ParamMappingEditDialog_WarningInvalidOID;
75 public String ParamMappingLabelProvider_PositionPrefix;
76 public String SnmpConfigurator_Add;
77 public String SnmpConfigurator_AddCommunity;
78 public String SnmpConfigurator_AddCommunityDescr;
79 public String SnmpConfigurator_Error;
80 public String SnmpConfigurator_Remove;
81 public String SnmpConfigurator_Save;
82 public String SnmpConfigurator_SectionCommunities;
83 public String SnmpConfigurator_SectionCommunitiesDescr;
84 public String SnmpConfigurator_SectionUSM;
85 public String SnmpConfigurator_SectionUSMDescr;
86 public String SnmpTrapComparator_Unknown;
87 public String SnmpTrapEditor_ColDescription;
88 public String SnmpTrapEditor_ColEvent;
89 public String SnmpTrapEditor_ColID;
90 public String SnmpTrapEditor_ColOID;
91 public String SnmpTrapEditor_CreateJob_Error;
92 public String SnmpTrapEditor_CreateJob_Title;
93 public String SnmpTrapEditor_Delete;
94 public String SnmpTrapEditor_DeleteJob_Error;
95 public String SnmpTrapEditor_DeleteJob_Title;
96 public String SnmpTrapEditor_LoadJob_Error;
97 public String SnmpTrapEditor_LoadJob_Title;
98 public String SnmpTrapEditor_ModifyJob_Error;
99 public String SnmpTrapEditor_ModifyJob_Title;
100 public String SnmpTrapEditor_NewMapping;
101 public String SnmpTrapEditor_Properties;
102 public String SnmpTrapLabelProvider_Unknown;
103 public String SnmpTrapMonitor_ColOID;
104 public String SnmpTrapMonitor_ColSourceIP;
105 public String SnmpTrapMonitor_ColSourceNode;
106 public String SnmpTrapMonitor_ColTime;
107 public String SnmpTrapMonitor_ColVarbinds;
108 public String SnmpTrapMonitor_SubscribeJob_Error;
109 public String SnmpTrapMonitor_SubscribeJob_Title;
110 public String SnmpTrapMonitor_UnsubscribeJob_Error;
111 public String SnmpTrapMonitor_UnsubscribeJob_Title;
112 public String SnmpTrapMonitorLabelProvider_Unknown;
113 public String SnmpUsmLabelProvider_AuthMD5;
114 public String SnmpUsmLabelProvider_AuthNone;
115 public String SnmpUsmLabelProvider_AuthSHA1;
116 public String SnmpUsmLabelProvider_EncAES;
117 public String SnmpUsmLabelProvider_EncDES;
118 public String SnmpUsmLabelProvider_EncNone;
119 public String TrapConfigurationDialog_Add;
120 public String TrapConfigurationDialog_Delete;
121 public String TrapConfigurationDialog_Description;
122 public String TrapConfigurationDialog_Edit;
123 public String TrapConfigurationDialog_Event;
124 public String TrapConfigurationDialog_MoveDown;
125 public String TrapConfigurationDialog_MoveUp;
126 public String TrapConfigurationDialog_Number;
127 public String TrapConfigurationDialog_Parameter;
128 public String TrapConfigurationDialog_Parameters;
129 public String TrapConfigurationDialog_Select;
130 public String TrapConfigurationDialog_Title;
131 public String TrapConfigurationDialog_TrapOID;
132 public String TrapConfigurationDialog_UserTag;
133 public String TrapConfigurationDialog_Warning;
134 public String TrapConfigurationDialog_WarningInvalidOID;
135 static
136 {
137 // initialize resource bundle
138 NLS.initializeMessages(BUNDLE_NAME, Messages.class);
139 }
140
141
142
143 private Messages()
144 {
145 }
146
147
148 /**
149 * Get message class for current locale
150 *
151 * @return
152 */
153 public static Messages get()
154 {
155 return RWT.NLS.getISO8859_1Encoded(BUNDLE_NAME, Messages.class);
156 }
157
158 /**
159 * Get message class for current locale
160 *
161 * @return
162 */
163 public static Messages get(Display display)
164 {
165 CallHelper r = new CallHelper();
166 display.syncExec(r);
167 return r.messages;
168 }
169
170 /**
171 * Helper class to call RWT.NLS.getISO8859_1Encoded from non-UI thread
172 */
173 private static class CallHelper implements Runnable
174 {
175 Messages messages;
176
177 @Override
178 public void run()
179 {
180 messages = RWT.NLS.getISO8859_1Encoded(BUNDLE_NAME, Messages.class);
181 }
182 }
183
184 }