1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Cleanup missing and unused NLS keys

This commit is contained in:
Anton Leherbauer 2008-03-13 15:13:02 +00:00
parent c6b53c99f7
commit f896a9a228
10 changed files with 35 additions and 35 deletions

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2002, 2006 IBM Corporation and others.
* Copyright (c) 2002, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -8,10 +8,12 @@
* Contributors:
* Rational Software - Initial API and implementation
* Markus Schorn (Wind River Systems)
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.IBuffer;
import org.eclipse.cdt.core.model.ICElement;
@ -75,7 +77,7 @@ public class CommitWorkingCopyOperation extends CModelOperation {
*/
protected void executeOperation() throws CModelException {
try {
beginTask("workingCopy.commit", 2); //$NON-NLS-1$
beginTask(CoreModelMessages.getString("workingCopy.commit"), 2); //$NON-NLS-1$
WorkingCopy wc = (WorkingCopy)getElementToProcess();
ITranslationUnit tu = wc.getOriginalElement();

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -80,7 +80,7 @@ public class CopyElementsOperation extends MultiOperation {
* for progress monitoring.
*/
protected String getMainTaskName() {
return "operation.copyElementProgress"; //$NON-NLS-1$
return CoreModelMessages.getString("operation.copyElementProgress"); //$NON-NLS-1$
}
/**

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
*
* Contributors:
* QNX Software Systems - Initial API and implementation
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
@ -83,7 +84,7 @@ public class CopyResourceElementsOperation extends MultiOperation {
* @see MultiOperation
*/
protected String getMainTaskName() {
return "operation.copyResourceProgress"; //$NON-NLS-1$
return CoreModelMessages.getString("operation.copyResourceProgress"); //$NON-NLS-1$
}
/**

View file

@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2000, 2007 IBM Corporation and others.
# Copyright (c) 2000, 2008 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
#
# Contributors:
# QNX Software Systems - Initial API and implementation
# Anton Leherbauer (Wind River Systems)
###############################################################################
### CoreModel messages.
@ -27,19 +28,11 @@ operation.renameElementProgress = Renaming elements...
operation.copyResourceProgress = Copying resources...
operation.moveResourceProgress = Moving resources...
operation.renameResourceProgress = Renaming resources...
operation.createUnitProgress = Creating a compilation unit...
operation.createFieldProgress = Creating a field...
operation.createImportsProgress = Creating imports...
operation.createInitializerProgress = Creating an initializer...
operation.createMethodProgress = Creating a method...
operation.createPackageProgress = Creating a package declaration...
operation.createPackageFragmentProgress = Creating package fragment(s)...
operation.createTypeProgress = Creating a type...
operation.deleteElementProgress = Deleting elements...
operation.deleteResourceProgress = Deleting resources...
operation.cannotRenameDefaultPackage = Default package cannot be renamed.
operation.pathOutsideProject = Path ''{0}'' must denote location inside project {1}
operation.sortelements = Sorting elements...
### working copy
workingCopy.commit = Committing working copy...
@ -48,15 +41,12 @@ workingCopy.commit = Committing working copy...
status.cannotUseDeviceOnPath = Operation requires a path with no device. Path specified was: {0}
status.elementDoesNotExist = Element {0} does not exist.
status.coreException = Core exception.
status.defaultPackageReadOnly = Default package is read-only.
status.evaluationError = Evaluation error: {0}.
status.JDOMError = JDOM error.
status.IOException = I/O exception.
status.indexOutOfBounds = Index out of bounds.
status.invalidContents = Invalid contents specified.
status.invalidDestination = Invalid destination: ''{0}''.
status.invalidName = Invalid name specified: {0}.
status.invalidPackage = Invalid package: {0}.
status.invalidPath = Invalid path: ''{0}''.
status.invalidProject = Invalid project: {0}.
status.invalidPathEntry = Invalid project path: {0}.
@ -66,6 +56,7 @@ status.invalidSibling = Invalid sibling: {0}.
status.nameCollision = {0} already exists in target.
status.noLocalContents = Cannot find local contents for resource: {0}
status.OK = OK
status.ParserError = Parser error.
status.readOnly = {0} is read-only.
status.targetException = Target exception.
status.updateConflict = Update conflict.

View file

@ -1,12 +1,13 @@
/*******************************************************************************
* Copyright (c) 2002, 2005 QNX Software Systems and others.
* Copyright (c) 2002, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* QNX Software Systems - Initial API and implementation
* QNX Software Systems - Initial API and implementation
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
@ -50,7 +51,7 @@ public class DeleteElementsOperation extends MultiOperation {
* @see MultiOperation
*/
protected String getMainTaskName() {
return "operation.deleteElementProgress"; //$NON-NLS-1$
return CoreModelMessages.getString("operation.deleteElementProgress"); //$NON-NLS-1$
}
/**

View file

@ -1,12 +1,13 @@
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
* IBM - Initial API and implementation
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
@ -33,7 +34,7 @@ public class DeleteResourceElementsOperation extends MultiOperation {
* @see MultiOperation
*/
protected String getMainTaskName() {
return "operation.deleteResourceProgress"; //$NON-NLS-1$
return CoreModelMessages.getString("operation.deleteResourceProgress"); //$NON-NLS-1$
}
/**

View file

@ -1,12 +1,13 @@
/*******************************************************************************
* Copyright (c) 2002, 2005 QNX Software Systems and others.
* Copyright (c) 2002, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* QNX Software Systems - Initial API and implementation
* QNX Software Systems - Initial API and implementation
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
@ -28,7 +29,7 @@ public class MoveElementsOperation extends CopyElementsOperation {
* for progress monitoring.
*/
protected String getMainTaskName() {
return "operation.moveElementProgress"; //$NON-NLS-1$
return CoreModelMessages.getString("operation.moveElementProgress"); //$NON-NLS-1$
}
/**
* @see CopyElementsOperation#isMove()

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2005 QNX Software Systems and others.
* Copyright (c) 2000, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
*
* Contributors:
* QNX Software Systems - Initial API and implementation
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
@ -35,7 +36,7 @@ public class MoveResourceElementsOperation extends CopyResourceElementsOperation
* @see MultiOperation
*/
protected String getMainTaskName() {
return "operation.moveResourceProgress"; //$NON-NLS-1$
return CoreModelMessages.getString("operation.moveResourceProgress"); //$NON-NLS-1$
}
/**

View file

@ -1,12 +1,13 @@
/*******************************************************************************
* Copyright (c) 2002, 2005 QNX Software Systems and others.
* Copyright (c) 2002, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* QNX Software Systems - Initial API and implementation
* QNX Software Systems - Initial API and implementation
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
@ -35,7 +36,7 @@ public class RenameElementsOperation extends MoveElementsOperation {
* @see MultiOperation
*/
protected String getMainTaskName() {
return "operation.renameElementProgress"; //$NON-NLS-1$
return CoreModelMessages.getString("operation.renameElementProgress"); //$NON-NLS-1$
}
/**
* @see CopyElementsOperation#isRename()

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2005 QNX Software Systems and others.
* Copyright (c) 2000, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -7,12 +7,13 @@
*
* Contributors:
* QNX Software Systems - Initial API and implementation
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.core.model;
import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.ICElement;
/**
* This operation renames resources (Package fragments and compilation units).
@ -38,7 +39,7 @@ public class RenameResourceElementsOperation extends MoveResourceElementsOperati
* @see MultiOperation
*/
protected String getMainTaskName() {
return "operation.renameResourceProgress"; //$NON-NLS-1$
return CoreModelMessages.getString("operation.renameResourceProgress"); //$NON-NLS-1$
}
/**