1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Renamed the Messages class.

This commit is contained in:
Sergey Prigogin 2011-12-14 12:25:37 -08:00
parent 07c8578942
commit 8001fb923b
3 changed files with 8 additions and 8 deletions

View file

@ -123,7 +123,7 @@ public class ChangeGenerator extends ASTVisitor {
public void generateChange(IASTNode rootNode, ASTVisitor pathProvider) public void generateChange(IASTNode rootNode, ASTVisitor pathProvider)
throws ProblemRuntimeException { throws ProblemRuntimeException {
change = new CompositeChange(Messages.ChangeGenerator_compositeChange); change = new CompositeChange(ChangeGeneratorMessages.ChangeGenerator_compositeChange);
classifyModifications(); classifyModifications();
rootNode.accept(pathProvider); rootNode.accept(pathProvider);
for (IFile currentFile : changes.keySet()) { for (IFile currentFile : changes.keySet()) {
@ -912,7 +912,7 @@ public class ChangeGenerator extends ASTVisitor {
edit = new MultiTextEdit(); edit = new MultiTextEdit();
changes.put(file, edit); changes.put(file, edit);
} }
TextEditGroup editGroup = new TextEditGroup(Messages.ChangeGenerator_group); TextEditGroup editGroup = new TextEditGroup(ChangeGeneratorMessages.ChangeGenerator_group);
for (List<ASTModification> modifications : getModifications(modifiedNode).values()) { for (List<ASTModification> modifications : getModifications(modifiedNode).values()) {
for (ASTModification modification : modifications) { for (ASTModification modification : modifications) {
if (modification.getAssociatedEditGroup() != null) { if (modification.getAssociatedEditGroup() != null) {

View file

@ -6,7 +6,7 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* Markus Schorn - initial API and implementation * Markus Schorn - initial API and implementation
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.core.dom.rewrite.changegenerator; package org.eclipse.cdt.internal.core.dom.rewrite.changegenerator;
@ -16,15 +16,15 @@ import org.eclipse.osgi.util.NLS;
* External strings for the change generator. * External strings for the change generator.
* @since 5.0 * @since 5.0
*/ */
public class Messages extends NLS { public class ChangeGeneratorMessages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.cdt.internal.core.dom.rewrite.changegenerator.messages"; //$NON-NLS-1$
public static String ChangeGenerator_compositeChange; public static String ChangeGenerator_compositeChange;
public static String ChangeGenerator_group; public static String ChangeGenerator_group;
static { static {
// initialize resource bundle // Initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class); NLS.initializeMessages(ChangeGeneratorMessages.class.getName(), ChangeGeneratorMessages.class);
} }
private Messages() { private ChangeGeneratorMessages() {
} }
} }