KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > core > util > Messages


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.core.util;
12
13 import java.text.MessageFormat JavaDoc;
14
15 import org.eclipse.osgi.util.NLS;
16
17 public final class Messages extends NLS {
18
19     private static final String JavaDoc BUNDLE_NAME = "org.eclipse.jdt.internal.core.util.messages";//$NON-NLS-1$
20

21     private Messages() {
22         // Do not instantiate
23
}
24
25     public static String JavaDoc hierarchy_nullProject;
26     public static String JavaDoc hierarchy_nullRegion;
27     public static String JavaDoc hierarchy_nullFocusType;
28     public static String JavaDoc hierarchy_creating;
29     public static String JavaDoc hierarchy_creatingOnType;
30     public static String JavaDoc element_doesNotExist;
31     public static String JavaDoc element_notOnClasspath;
32     public static String JavaDoc element_invalidClassFileName;
33     public static String JavaDoc element_reconciling;
34     public static String JavaDoc element_attachingSource;
35     public static String JavaDoc element_invalidResourceForProject;
36     public static String JavaDoc element_nullName;
37     public static String JavaDoc element_nullType;
38     public static String JavaDoc element_illegalParent;
39     public static String JavaDoc javamodel_initialization;
40     public static String JavaDoc javamodel_building_after_upgrade;
41     public static String JavaDoc javamodel_configuring;
42     public static String JavaDoc javamodel_configuring_classpath_containers;
43     public static String JavaDoc javamodel_configuring_searchengine;
44     public static String JavaDoc javamodel_getting_build_state_number;
45     public static String JavaDoc javamodel_refreshing_external_jars;
46     public static String JavaDoc operation_needElements;
47     public static String JavaDoc operation_needName;
48     public static String JavaDoc operation_needPath;
49     public static String JavaDoc operation_needAbsolutePath;
50     public static String JavaDoc operation_needString;
51     public static String JavaDoc operation_notSupported;
52     public static String JavaDoc operation_cancelled;
53     public static String JavaDoc operation_nullContainer;
54     public static String JavaDoc operation_nullName;
55     public static String JavaDoc operation_copyElementProgress;
56     public static String JavaDoc operation_moveElementProgress;
57     public static String JavaDoc operation_renameElementProgress;
58     public static String JavaDoc operation_copyResourceProgress;
59     public static String JavaDoc operation_moveResourceProgress;
60     public static String JavaDoc operation_renameResourceProgress;
61     public static String JavaDoc operation_createUnitProgress;
62     public static String JavaDoc operation_createFieldProgress;
63     public static String JavaDoc operation_createImportsProgress;
64     public static String JavaDoc operation_createInitializerProgress;
65     public static String JavaDoc operation_createMethodProgress;
66     public static String JavaDoc operation_createPackageProgress;
67     public static String JavaDoc operation_createPackageFragmentProgress;
68     public static String JavaDoc operation_createTypeProgress;
69     public static String JavaDoc operation_deleteElementProgress;
70     public static String JavaDoc operation_deleteResourceProgress;
71     public static String JavaDoc operation_cannotRenameDefaultPackage;
72     public static String JavaDoc operation_pathOutsideProject;
73     public static String JavaDoc operation_sortelements;
74     public static String JavaDoc workingCopy_commit;
75     public static String JavaDoc build_preparingBuild;
76     public static String JavaDoc build_readStateProgress;
77     public static String JavaDoc build_saveStateProgress;
78     public static String JavaDoc build_saveStateComplete;
79     public static String JavaDoc build_readingDelta;
80     public static String JavaDoc build_analyzingDeltas;
81     public static String JavaDoc build_analyzingSources;
82     public static String JavaDoc build_cleaningOutput;
83     public static String JavaDoc build_copyingResources;
84     public static String JavaDoc build_compiling;
85     public static String JavaDoc build_foundHeader;
86     public static String JavaDoc build_fixedHeader;
87     public static String JavaDoc build_oneError;
88     public static String JavaDoc build_oneWarning;
89     public static String JavaDoc build_multipleErrors;
90     public static String JavaDoc build_multipleWarnings;
91     public static String JavaDoc build_done;
92     public static String JavaDoc build_wrongFileFormat;
93     public static String JavaDoc build_cannotSaveState;
94     public static String JavaDoc build_cannotSaveStates;
95     public static String JavaDoc build_initializationError;
96     public static String JavaDoc build_serializationError;
97     public static String JavaDoc build_classFileCollision;
98     public static String JavaDoc build_duplicateClassFile;
99     public static String JavaDoc build_duplicateResource;
100     public static String JavaDoc build_inconsistentClassFile;
101     public static String JavaDoc build_inconsistentProject;
102     public static String JavaDoc build_incompleteClassPath;
103     public static String JavaDoc build_missingSourceFile;
104     public static String JavaDoc build_prereqProjectHasClasspathProblems;
105     public static String JavaDoc build_prereqProjectMustBeRebuilt;
106     public static String JavaDoc build_abortDueToClasspathProblems;
107     public static String JavaDoc status_cannot_retrieve_attached_javadoc;
108     public static String JavaDoc status_cannotUseDeviceOnPath;
109     public static String JavaDoc status_coreException;
110     public static String JavaDoc status_defaultPackageReadOnly;
111     public static String JavaDoc status_evaluationError;
112     public static String JavaDoc status_JDOMError;
113     public static String JavaDoc status_IOException;
114     public static String JavaDoc status_indexOutOfBounds;
115     public static String JavaDoc status_invalidContents;
116     public static String JavaDoc status_invalidDestination;
117     public static String JavaDoc status_invalidName;
118     public static String JavaDoc status_invalidPackage;
119     public static String JavaDoc status_invalidPath;
120     public static String JavaDoc status_invalidProject;
121     public static String JavaDoc status_invalidResource;
122     public static String JavaDoc status_invalidResourceType;
123     public static String JavaDoc status_invalidSibling;
124     public static String JavaDoc status_nameCollision;
125     public static String JavaDoc status_noLocalContents;
126     public static String JavaDoc status_OK;
127     public static String JavaDoc status_readOnly;
128     public static String JavaDoc status_targetException;
129     public static String JavaDoc status_unknown_javadoc_format;
130     public static String JavaDoc status_updateConflict;
131     public static String JavaDoc classpath_buildPath;
132     public static String JavaDoc classpath_cannotNestEntryInEntry;
133     public static String JavaDoc classpath_cannotNestEntryInEntryNoExclusion;
134     public static String JavaDoc classpath_cannotNestEntryInLibrary;
135     public static String JavaDoc classpath_cannotNestEntryInOutput;
136     public static String JavaDoc classpath_cannotNestOutputInEntry;
137     public static String JavaDoc classpath_cannotNestOutputInOutput;
138     public static String JavaDoc classpath_cannotReadClasspathFile;
139     public static String JavaDoc classpath_cannotReferToItself;
140     public static String JavaDoc classpath_cannotUseDistinctSourceFolderAsOutput;
141     public static String JavaDoc classpath_cannotUseLibraryAsOutput;
142     public static String JavaDoc classpath_closedProject;
143     public static String JavaDoc classpath_couldNotWriteClasspathFile;
144     public static String JavaDoc classpath_cycle;
145     public static String JavaDoc classpath_duplicateEntryPath;
146     public static String JavaDoc classpath_illegalContainerPath;
147     public static String JavaDoc classpath_illegalEntryInClasspathFile;
148     public static String JavaDoc classpath_illegalLibraryPath;
149     public static String JavaDoc classpath_illegalLibraryArchive;
150     public static String JavaDoc classpath_illegalExternalFolder;
151     public static String JavaDoc classpath_illegalProjectPath;
152     public static String JavaDoc classpath_illegalSourceFolderPath;
153     public static String JavaDoc classpath_illegalVariablePath;
154     public static String JavaDoc classpath_invalidClasspathInClasspathFile;
155     public static String JavaDoc classpath_invalidContainer;
156     public static String JavaDoc classpath_mustEndWithSlash;
157     public static String JavaDoc classpath_unboundContainerPath;
158     public static String JavaDoc classpath_unboundLibrary;
159     public static String JavaDoc classpath_unboundProject;
160     public static String JavaDoc classpath_settingOutputLocationProgress;
161     public static String JavaDoc classpath_settingProgress;
162     public static String JavaDoc classpath_unboundSourceAttachment;
163     public static String JavaDoc classpath_unboundSourceFolder;
164     public static String JavaDoc classpath_unboundVariablePath;
165     public static String JavaDoc classpath_unknownKind;
166     public static String JavaDoc classpath_xmlFormatError;
167     public static String JavaDoc classpath_disabledInclusionExclusionPatterns;
168     public static String JavaDoc classpath_disabledMultipleOutputLocations;
169     public static String JavaDoc classpath_incompatibleLibraryJDKLevel;
170     public static String JavaDoc classpath_duplicateEntryExtraAttribute;
171     public static String JavaDoc classpath_deprecated_variable;
172     public static String JavaDoc file_notFound;
173     public static String JavaDoc file_badFormat;
174     public static String JavaDoc path_nullPath;
175     public static String JavaDoc path_mustBeAbsolute;
176     public static String JavaDoc cache_invalidLoadFactor;
177     public static String JavaDoc savedState_jobName;
178     public static String JavaDoc restrictedAccess_project;
179     public static String JavaDoc restrictedAccess_library;
180     public static String JavaDoc restrictedAccess_constructor_project;
181     public static String JavaDoc restrictedAccess_constructor_library;
182     public static String JavaDoc restrictedAccess_field_project;
183     public static String JavaDoc restrictedAccess_field_library;
184     public static String JavaDoc restrictedAccess_method_project;
185     public static String JavaDoc restrictedAccess_method_library;
186     public static String JavaDoc convention_unit_nullName;
187     public static String JavaDoc convention_unit_notJavaName;
188     public static String JavaDoc convention_classFile_nullName;
189     public static String JavaDoc convention_classFile_notClassFileName;
190     public static String JavaDoc convention_illegalIdentifier;
191     public static String JavaDoc convention_import_nullImport;
192     public static String JavaDoc convention_import_unqualifiedImport;
193     public static String JavaDoc convention_type_nullName;
194     public static String JavaDoc convention_type_nameWithBlanks;
195     public static String JavaDoc convention_type_dollarName;
196     public static String JavaDoc convention_type_lowercaseName;
197     public static String JavaDoc convention_type_invalidName;
198     public static String JavaDoc convention_package_nullName;
199     public static String JavaDoc convention_package_emptyName;
200     public static String JavaDoc convention_package_dotName;
201     public static String JavaDoc convention_package_nameWithBlanks;
202     public static String JavaDoc convention_package_consecutiveDotsName;
203     public static String JavaDoc convention_package_uppercaseName;
204     public static String JavaDoc dom_cannotDetail;
205     public static String JavaDoc dom_nullTypeParameter;
206     public static String JavaDoc dom_nullNameParameter;
207     public static String JavaDoc dom_nullReturnType;
208     public static String JavaDoc dom_nullExceptionType;
209     public static String JavaDoc dom_mismatchArgNamesAndTypes;
210     public static String JavaDoc dom_addNullChild;
211     public static String JavaDoc dom_addIncompatibleChild;
212     public static String JavaDoc dom_addChildWithParent;
213     public static String JavaDoc dom_unableAddChild;
214     public static String JavaDoc dom_addAncestorAsChild;
215     public static String JavaDoc dom_addNullSibling;
216     public static String JavaDoc dom_addSiblingBeforeRoot;
217     public static String JavaDoc dom_addIncompatibleSibling;
218     public static String JavaDoc dom_addSiblingWithParent;
219     public static String JavaDoc dom_addAncestorAsSibling;
220     public static String JavaDoc dom_addNullInterface;
221     public static String JavaDoc dom_nullInterfaces;
222     public static String JavaDoc importRewrite_processDescription;
223     public static String JavaDoc correction_nullRequestor;
224     public static String JavaDoc correction_nullUnit;
225     public static String JavaDoc engine_searching;
226     public static String JavaDoc engine_searching_indexing;
227     public static String JavaDoc engine_searching_matching;
228     public static String JavaDoc exception_wrongFormat;
229     public static String JavaDoc process_name;
230     public static String JavaDoc manager_filesToIndex;
231     public static String JavaDoc manager_indexingInProgress;
232     public static String JavaDoc disassembler_description;
233     public static String JavaDoc disassembler_opentypedeclaration;
234     public static String JavaDoc disassembler_closetypedeclaration;
235     public static String JavaDoc disassembler_parametername;
236     public static String JavaDoc disassembler_localvariablename;
237     public static String JavaDoc disassembler_endofmethodheader;
238     public static String JavaDoc disassembler_begincommentline;
239     public static String JavaDoc disassembler_fieldhasconstant;
240     public static String JavaDoc disassembler_endoffieldheader;
241     public static String JavaDoc disassembler_sourceattributeheader;
242     public static String JavaDoc disassembler_enclosingmethodheader;
243     public static String JavaDoc disassembler_exceptiontableheader;
244     public static String JavaDoc disassembler_linenumberattributeheader;
245     public static String JavaDoc disassembler_localvariabletableattributeheader;
246     public static String JavaDoc disassembler_localvariabletypetableattributeheader;
247     public static String JavaDoc disassembler_arraydimensions;
248     public static String JavaDoc disassembler_innerattributesheader;
249     public static String JavaDoc disassembler_inner_class_info_name;
250     public static String JavaDoc disassembler_outer_class_info_name;
251     public static String JavaDoc disassembler_inner_name;
252     public static String JavaDoc disassembler_inner_accessflags;
253     public static String JavaDoc disassembler_genericattributeheader;
254     public static String JavaDoc disassembler_signatureattributeheader;
255     public static String JavaDoc disassembler_indentation;
256     public static String JavaDoc disassembler_constantpoolindex;
257     public static String JavaDoc disassembler_space;
258     public static String JavaDoc disassembler_comma;
259     public static String JavaDoc disassembler_openinnerclassentry;
260     public static String JavaDoc disassembler_closeinnerclassentry;
261     public static String JavaDoc disassembler_deprecated;
262     public static String JavaDoc disassembler_constantpoolheader;
263     public static String JavaDoc disassembler_constantpool_class;
264     public static String JavaDoc disassembler_constantpool_double;
265     public static String JavaDoc disassembler_constantpool_float;
266     public static String JavaDoc disassembler_constantpool_integer;
267     public static String JavaDoc disassembler_constantpool_long;
268     public static String JavaDoc disassembler_constantpool_string;
269     public static String JavaDoc disassembler_constantpool_fieldref;
270     public static String JavaDoc disassembler_constantpool_interfacemethodref;
271     public static String JavaDoc disassembler_constantpool_methodref;
272     public static String JavaDoc disassembler_constantpool_name_and_type;
273     public static String JavaDoc disassembler_constantpool_utf8;
274     public static String JavaDoc disassembler_annotationdefaultheader;
275     public static String JavaDoc disassembler_annotationdefaultvalue;
276     public static String JavaDoc disassembler_annotationenumvalue;
277     public static String JavaDoc disassembler_annotationclassvalue;
278     public static String JavaDoc disassembler_annotationannotationvalue;
279     public static String JavaDoc disassembler_annotationarrayvaluestart;
280     public static String JavaDoc disassembler_annotationarrayvalueend;
281     public static String JavaDoc disassembler_annotationentrystart;
282     public static String JavaDoc disassembler_annotationentryend;
283     public static String JavaDoc disassembler_annotationcomponent;
284     public static String JavaDoc disassembler_runtimevisibleannotationsattributeheader;
285     public static String JavaDoc disassembler_runtimeinvisibleannotationsattributeheader;
286     public static String JavaDoc disassembler_runtimevisibleparameterannotationsattributeheader;
287     public static String JavaDoc disassembler_runtimeinvisibleparameterannotationsattributeheader;
288     public static String JavaDoc disassembler_parameterannotationentrystart;
289     public static String JavaDoc disassembler_stackmaptableattributeheader;
290     public static String JavaDoc disassembler_stackmapattributeheader;
291     public static String JavaDoc classfileformat_versiondetails;
292     public static String JavaDoc classfileformat_methoddescriptor;
293     public static String JavaDoc classfileformat_fieldddescriptor;
294     public static String JavaDoc classfileformat_stacksAndLocals;
295     public static String JavaDoc classfileformat_superflagisnotset;
296     public static String JavaDoc classfileformat_superflagisset;
297     public static String JavaDoc classfileformat_clinitname;
298     public static String JavaDoc classformat_classformatexception;
299     public static String JavaDoc classformat_anewarray;
300     public static String JavaDoc classformat_checkcast;
301     public static String JavaDoc classformat_instanceof;
302     public static String JavaDoc classformat_ldc_w_class;
303     public static String JavaDoc classformat_ldc_w_float;
304     public static String JavaDoc classformat_ldc_w_integer;
305     public static String JavaDoc classformat_ldc_w_string;
306     public static String JavaDoc classformat_ldc2_w_long;
307     public static String JavaDoc classformat_ldc2_w_double;
308     public static String JavaDoc classformat_multianewarray;
309     public static String JavaDoc classformat_new;
310     public static String JavaDoc classformat_iinc;
311     public static String JavaDoc classformat_invokespecial;
312     public static String JavaDoc classformat_invokeinterface;
313     public static String JavaDoc classformat_invokestatic;
314     public static String JavaDoc classformat_invokevirtual;
315     public static String JavaDoc classformat_getfield;
316     public static String JavaDoc classformat_getstatic;
317     public static String JavaDoc classformat_putstatic;
318     public static String JavaDoc classformat_putfield;
319     public static String JavaDoc classformat_newarray_boolean;
320     public static String JavaDoc classformat_newarray_char;
321     public static String JavaDoc classformat_newarray_float;
322     public static String JavaDoc classformat_newarray_double;
323     public static String JavaDoc classformat_newarray_byte;
324     public static String JavaDoc classformat_newarray_short;
325     public static String JavaDoc classformat_newarray_int;
326     public static String JavaDoc classformat_newarray_long;
327     public static String JavaDoc classformat_store;
328     public static String JavaDoc classformat_load;
329     public static String JavaDoc classfileformat_anyexceptionhandler;
330     public static String JavaDoc classfileformat_exceptiontableentry;
331     public static String JavaDoc classfileformat_linenumbertableentry;
332     public static String JavaDoc classfileformat_localvariabletableentry;
333     public static String JavaDoc classfileformat_versionUnknown;
334     
335     public static String JavaDoc disassembler_frame_same_locals_1_stack_item_extended;
336     public static String JavaDoc disassembler_frame_chop;
337     public static String JavaDoc disassembler_frame_same_frame_extended;
338     public static String JavaDoc disassembler_frame_append;
339     public static String JavaDoc disassembler_frame_full_frame;
340     public static String JavaDoc disassembler_frame_same_frame;
341     public static String JavaDoc disassembler_frame_same_locals_1_stack_item;
342
343     static {
344         NLS.initializeMessages(BUNDLE_NAME, Messages.class);
345     }
346     
347     /**
348      * Bind the given message's substitution locations with the given string values.
349      *
350      * @param message the message to be manipulated
351      * @return the manipulated String
352      */

353     public static String JavaDoc bind(String JavaDoc message) {
354         return bind(message, null);
355     }
356     
357     /**
358      * Bind the given message's substitution locations with the given string values.
359      *
360      * @param message the message to be manipulated
361      * @param binding the object to be inserted into the message
362      * @return the manipulated String
363      */

364     public static String JavaDoc bind(String JavaDoc message, Object JavaDoc binding) {
365         return bind(message, new Object JavaDoc[] {binding});
366     }
367
368     /**
369      * Bind the given message's substitution locations with the given string values.
370      *
371      * @param message the message to be manipulated
372      * @param binding1 An object to be inserted into the message
373      * @param binding2 A second object to be inserted into the message
374      * @return the manipulated String
375      */

376     public static String JavaDoc bind(String JavaDoc message, Object JavaDoc binding1, Object JavaDoc binding2) {
377         return bind(message, new Object JavaDoc[] {binding1, binding2});
378     }
379
380     /**
381      * Bind the given message's substitution locations with the given string values.
382      *
383      * @param message the message to be manipulated
384      * @param bindings An array of objects to be inserted into the message
385      * @return the manipulated String
386      */

387     public static String JavaDoc bind(String JavaDoc message, Object JavaDoc[] bindings) {
388         return MessageFormat.format(message, bindings);
389     }
390 }
391
Popular Tags