mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
Cleaned up some obvious NLS warnings. Also turned off the warnings for the tests plugins.
This commit is contained in:
parent
fb6c76a062
commit
bdecfcfc41
29 changed files with 274 additions and 86 deletions
|
@ -165,7 +165,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
|||
if (fBuildInfo.getBuildAttribute(IMakeCommonBuildInfo.BUILD_COMMAND, null) != null) {
|
||||
StringBuffer cmd = new StringBuffer(fBuildInfo.getBuildAttribute(IMakeCommonBuildInfo.BUILD_COMMAND, "")); //$NON-NLS-1$
|
||||
if (!fBuildInfo.isDefaultBuildCmd()) {
|
||||
String args = fBuildInfo.getBuildAttribute(IMakeCommonBuildInfo.BUILD_ARGUMENTS, "");
|
||||
String args = fBuildInfo.getBuildAttribute(IMakeCommonBuildInfo.BUILD_ARGUMENTS, ""); //$NON-NLS-1$
|
||||
if (args != null && !args.equals("")) { //$NON-NLS-1$
|
||||
cmd.append(" "); //$NON-NLS-1$
|
||||
cmd.append(args);
|
||||
|
@ -247,7 +247,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
|||
cleanButton.addSelectionListener(selectionAdapter);
|
||||
cleanButton.setSelection(fBuildInfo.isCleanBuildEnabled());
|
||||
targetClean = ControlFactory.createTextField(group, SWT.SINGLE | SWT.BORDER);
|
||||
targetClean.setText(fBuildInfo.getBuildAttribute(IMakeBuilderInfo.BUILD_TARGET_CLEAN, ""));
|
||||
targetClean.setText(fBuildInfo.getBuildAttribute(IMakeBuilderInfo.BUILD_TARGET_CLEAN, "")); //$NON-NLS-1$
|
||||
((GridData) (targetClean.getLayoutData())).horizontalAlignment = GridData.FILL;
|
||||
((GridData) (targetClean.getLayoutData())).grabExcessHorizontalSpace = true;
|
||||
addControlAccessibleListener(targetClean, MakeUIPlugin.getResourceString(MAKE_BUILD_CLEAN_TARGET));
|
||||
|
@ -356,7 +356,7 @@ public class SettingsBlock extends AbstractCOptionPage {
|
|||
}
|
||||
}
|
||||
});
|
||||
buildLocation.setText(fBuildInfo.getBuildAttribute(IMakeCommonBuildInfo.BUILD_LOCATION, ""));
|
||||
buildLocation.setText(fBuildInfo.getBuildAttribute(IMakeCommonBuildInfo.BUILD_LOCATION, "")); //$NON-NLS-1$
|
||||
locationVariablesButton = addVariablesButton(group, buildLocation);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
#Mon May 16 10:24:58 EDT 2005
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.deprecation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
|
||||
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
|
||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
|
||||
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
|
||||
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
|
||||
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
|
@ -1350,7 +1350,7 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
|
|||
if (buildInfo.getManagedProject() == null ||
|
||||
(!buildInfo.getManagedProject().isValid())) {
|
||||
// The load failed
|
||||
throw new Exception(ManagedMakeMessages.getFormattedString("ManagedBuildManager.error.id.nomatch", project.getName()));
|
||||
throw new Exception(ManagedMakeMessages.getFormattedString("ManagedBuildManager.error.id.nomatch", project.getName())); //$NON-NLS-1$
|
||||
}
|
||||
project.setSessionProperty(buildInfoProperty, buildInfo);
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ public class StorableEnvVar extends BuildEnvVar {
|
|||
fOperation = opStringToInt(element.getAttribute(OPERATION));
|
||||
|
||||
fDelimiter = element.getAttribute(DELIMITER);
|
||||
if("".equals(fDelimiter))
|
||||
if("".equals(fDelimiter)) //$NON-NLS-1$
|
||||
fDelimiter = null;
|
||||
}
|
||||
|
||||
|
|
|
@ -321,7 +321,7 @@ public class BuildPropertyPage extends PropertyPage implements IWorkbenchPropert
|
|||
String [] namesAndDescriptions = new String[configurations.length /*+ 1*/];
|
||||
for (int index = 0; index < configurations.length; ++index) {
|
||||
String description = configurations[index].getDescription();
|
||||
if ( (description == null) || (description.equals("")) )
|
||||
if ( (description == null) || (description.equals("")) ) //$NON-NLS-1$
|
||||
namesAndDescriptions[index] = configurations[index].getName(); //$NON-NLS-1$
|
||||
else
|
||||
namesAndDescriptions[index] = configurations[index].getName() + "( " + description + " )"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
#Mon May 16 10:23:00 EDT 2005
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.deprecation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
|
||||
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
|
||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
|
||||
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
|
||||
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
|
||||
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
|
@ -0,0 +1,3 @@
|
|||
#Mon May 16 10:22:45 EDT 2005
|
||||
eclipse.preferences.version=1
|
||||
internal.default.compliance=default
|
|
@ -68,13 +68,13 @@ public int hashCode(){
|
|||
}
|
||||
public String toString(){
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
buffer.append("EntryResult: " + getName() + "\n\tmeta="); //$NON-NLS-1$
|
||||
buffer.append("EntryResult: " + getName() + "\n\tmeta="); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
buffer.append(ICIndexStorageConstants.encodings[meta_type]);
|
||||
if(meta_type == IIndex.TYPE) {
|
||||
buffer.append(" type=");
|
||||
buffer.append(" type="); //$NON-NLS-1$
|
||||
buffer.append(ICIndexStorageConstants.typeConstantNames[kind]);
|
||||
}
|
||||
buffer.append(" Reference=");
|
||||
buffer.append(" Reference="); //$NON-NLS-1$
|
||||
buffer.append(ICIndexStorageConstants.encodingTypes[reftype]);
|
||||
|
||||
buffer.append(", refs={"); //$NON-NLS-1$
|
||||
|
|
|
@ -72,18 +72,18 @@ public interface ICIndexStorageConstants {
|
|||
'I' // FWD_UNION
|
||||
};
|
||||
|
||||
final static String[] typeConstantNames = { "", // not used
|
||||
"Class",
|
||||
"Struct",
|
||||
"Union",
|
||||
"Enum",
|
||||
"Variable",
|
||||
"Typedef",
|
||||
"Derived",
|
||||
"Friend",
|
||||
"FWD Class",
|
||||
"FWD Struct",
|
||||
"FWD Union"
|
||||
final static String[] typeConstantNames = { "", // not used //$NON-NLS-1$
|
||||
"Class", //$NON-NLS-1$
|
||||
"Struct", //$NON-NLS-1$
|
||||
"Union", //$NON-NLS-1$
|
||||
"Enum", //$NON-NLS-1$
|
||||
"Variable", //$NON-NLS-1$
|
||||
"Typedef", //$NON-NLS-1$
|
||||
"Derived", //$NON-NLS-1$
|
||||
"Friend", //$NON-NLS-1$
|
||||
"FWD Class", //$NON-NLS-1$
|
||||
"FWD Struct", //$NON-NLS-1$
|
||||
"FWD Union" //$NON-NLS-1$
|
||||
};
|
||||
final static char [][] accessSpecifiers = {
|
||||
"".toCharArray(), // not used //$NON-NLS-1$
|
||||
|
|
|
@ -293,7 +293,6 @@ public class Index implements IIndex, ICIndexStorageConstants, ICSearchConstants
|
|||
|
||||
int counter=0;
|
||||
while (!deleted && counter<5){
|
||||
System.out.println("Not deleted");
|
||||
try {
|
||||
Thread.sleep(50);
|
||||
} catch (InterruptedException e) {}
|
||||
|
|
|
@ -26,7 +26,6 @@ import org.eclipse.cdt.internal.core.index.sourceindexer.IndexRequest;
|
|||
import org.eclipse.cdt.internal.core.index.sourceindexer.SourceIndexer;
|
||||
import org.eclipse.cdt.internal.core.search.processing.IIndexJob;
|
||||
import org.eclipse.cdt.internal.core.search.processing.JobManager;
|
||||
import org.eclipse.core.resources.IMarker;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.resources.IResourceDelta;
|
||||
|
|
|
@ -37,7 +37,7 @@ public class NM {
|
|||
}
|
||||
|
||||
public String toString() {
|
||||
return (name + "@" + Long.toHexString(address));
|
||||
return (name + "@" + Long.toHexString(address)); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
#Mon May 16 10:25:29 EDT 2005
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.deprecation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
|
||||
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
|
||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
|
||||
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
|
||||
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
|
||||
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
|
@ -228,7 +228,7 @@ public class Checks {
|
|||
if ((!wasEmpty) && result.isEmpty())
|
||||
status.addFatalError(RefactoringCoreMessages.getString("Checks.all_excluded")); //$NON-NLS-1$
|
||||
else if (result.isEmpty()){
|
||||
status.addFatalError(RefactoringCoreMessages.getString("Checks.no_files"));
|
||||
status.addFatalError(RefactoringCoreMessages.getString("Checks.no_files")); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
return (SearchResultGroup[])result.toArray(new SearchResultGroup[result.size()]);
|
||||
|
|
|
@ -166,7 +166,7 @@ public class RenameElementProcessor extends RenameProcessor implements IReferenc
|
|||
|
||||
private String getElementQualifiedName(ICElement element) throws CModelException{
|
||||
if(!eligibleForRefactoring(element)){
|
||||
return "";
|
||||
return ""; //$NON-NLS-1$
|
||||
} else {
|
||||
StringBuffer name = new StringBuffer();
|
||||
if(element instanceof IFunctionDeclaration){
|
||||
|
@ -182,7 +182,7 @@ public class RenameElementProcessor extends RenameProcessor implements IReferenc
|
|||
// add the whole signature
|
||||
name.append(getElementQualifiedName(element.getParent()));
|
||||
}
|
||||
name.append("::");
|
||||
name.append("::"); //$NON-NLS-1$
|
||||
name.append(function.getSignature());
|
||||
} else {
|
||||
if (element instanceof IEnumerator) {
|
||||
|
@ -191,7 +191,7 @@ public class RenameElementProcessor extends RenameProcessor implements IReferenc
|
|||
}else {
|
||||
name.append(getElementQualifiedName(element.getParent()));
|
||||
}
|
||||
name.append("::");
|
||||
name.append("::"); //$NON-NLS-1$
|
||||
name.append(element.getElementName());
|
||||
}
|
||||
return name.toString();
|
||||
|
@ -712,7 +712,7 @@ public class RenameElementProcessor extends RenameProcessor implements IReferenc
|
|||
if(( returnType == null) || (returnType.length() == 0) )
|
||||
return true;
|
||||
|
||||
if(getCurrentElementName().startsWith("~"))
|
||||
if(getCurrentElementName().startsWith("~")) //$NON-NLS-1$
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
|
@ -110,7 +110,7 @@ public abstract class TranslationUnitContextType extends TemplateContextType {
|
|||
|
||||
protected static class Project extends TemplateVariableResolver {
|
||||
public Project() {
|
||||
super("enclosing_project", TemplateMessages.getString("CContextType.variable.description.project"));
|
||||
super("enclosing_project", TemplateMessages.getString("CContextType.variable.description.project")); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
public String resolve(TemplateContext context) {
|
||||
ITranslationUnit unit= ((CContext) context).getTranslationUnit();
|
||||
|
@ -140,7 +140,7 @@ public abstract class TranslationUnitContextType extends TemplateContextType {
|
|||
|
||||
for (int i= 0; i < arguments.length; i++) {
|
||||
if (i > 0)
|
||||
buffer.append(", ");
|
||||
buffer.append(", "); //$NON-NLS-1$
|
||||
buffer.append(arguments[i]);
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ public class CContentOutlinerProvider extends BaseCElementContentProvider {
|
|||
/** Property change listener. */
|
||||
private IPropertyChangeListener fPropertyListener;
|
||||
/** Filter for files to outline. */
|
||||
private String filter = "*";
|
||||
private String filter = "*"; //$NON-NLS-1$
|
||||
|
||||
/**
|
||||
* Creates new content provider for dialog.
|
||||
|
|
|
@ -700,15 +700,15 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IS
|
|||
action.setActionDefinitionId(ICEditorActionDefinitionIds.OPEN_CVIEW);
|
||||
setAction("ShowInCView", action); //$NON-NLS-1$
|
||||
|
||||
action = new TextOperationAction(CEditorMessages.getResourceBundle(), "OpenOutline.", this, CSourceViewer.SHOW_OUTLINE);
|
||||
action = new TextOperationAction(CEditorMessages.getResourceBundle(), "OpenOutline.", this, CSourceViewer.SHOW_OUTLINE); //$NON-NLS-1$
|
||||
action.setActionDefinitionId(ICEditorActionDefinitionIds.OPEN_OUTLINE);
|
||||
setAction("OpenOutline", action); //$NON-NLS-1$*/
|
||||
|
||||
action = new GoToNextPreviousMemberAction(CEditorMessages.getResourceBundle(), "GotoNextMember.", this, true);
|
||||
action = new GoToNextPreviousMemberAction(CEditorMessages.getResourceBundle(), "GotoNextMember.", this, true); //$NON-NLS-1$
|
||||
action.setActionDefinitionId(ICEditorActionDefinitionIds.GOTO_NEXT_MEMBER);
|
||||
setAction("GotoNextMember", action); //$NON-NLS-1$*/
|
||||
|
||||
action = new GoToNextPreviousMemberAction(CEditorMessages.getResourceBundle(), "GotoPrevMember.", this, false);
|
||||
action = new GoToNextPreviousMemberAction(CEditorMessages.getResourceBundle(), "GotoPrevMember.", this, false); //$NON-NLS-1$
|
||||
action.setActionDefinitionId(ICEditorActionDefinitionIds.GOTO_PREVIOUS_MEMBER);
|
||||
setAction("GotoPrevMember", action); //$NON-NLS-1$*/
|
||||
|
||||
|
|
|
@ -328,7 +328,6 @@ public class CEditorPreferencePage extends AbstractPreferencePage implements IWo
|
|||
link.addListener (SWT.Selection, new Listener () {
|
||||
public void handleEvent(Event event) {
|
||||
String u = event.text;
|
||||
System.out.println("Selection: " + u);
|
||||
PreferencesUtil.createPreferenceDialogOn(getShell(), u, null, null);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -31,11 +31,11 @@ public interface ICColorConstants {
|
|||
/* The color key for string and character literals in C code. */
|
||||
String C_STRING= "c_string"; //$NON-NLS-1$
|
||||
/** The color key for operators. */
|
||||
String C_OPERATOR = "c_operators";
|
||||
String C_OPERATOR = "c_operators"; //$NON-NLS-1$
|
||||
/** The color key for braces. */
|
||||
String C_BRACES = "c_braces";
|
||||
String C_BRACES = "c_braces"; //$NON-NLS-1$
|
||||
/** The color key for numbers. */
|
||||
String C_NUMBER = "c_numbers";
|
||||
String C_NUMBER = "c_numbers"; //$NON-NLS-1$
|
||||
/* The color key for everthing in C code for which no other color is specified. */
|
||||
String C_DEFAULT= "c_default"; //$NON-NLS-1$
|
||||
|
||||
|
|
|
@ -43,9 +43,9 @@ public class CCompletionProcessor2 implements IContentAssistProcessor {
|
|||
private String errorMessage;
|
||||
|
||||
// Property names
|
||||
private String assistPrefix = "CEditor.contentassist";
|
||||
private String noCompletions = assistPrefix + ".noCompletions";
|
||||
private String parseError = assistPrefix + ".parseError";
|
||||
private String assistPrefix = "CEditor.contentassist"; //$NON-NLS-1$
|
||||
private String noCompletions = assistPrefix + ".noCompletions"; //$NON-NLS-1$
|
||||
private String parseError = assistPrefix + ".parseError"; //$NON-NLS-1$
|
||||
|
||||
public CCompletionProcessor2(IEditorPart editor) {
|
||||
this.editor = editor;
|
||||
|
|
|
@ -130,7 +130,7 @@ public class DOMCompletionContributor implements ICompletionContributor {
|
|||
if (function.takesVarArgs()) {
|
||||
if (args.length() > 0)
|
||||
args.append(',');
|
||||
args.append(" ...");
|
||||
args.append(" ..."); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
IType returnType = function.getType().getReturnType();
|
||||
|
@ -182,7 +182,7 @@ public class DOMCompletionContributor implements ICompletionContributor {
|
|||
if (params != null)
|
||||
for (int i = 0; i < params.length; ++i) {
|
||||
if (i > 0)
|
||||
args.append(", ");
|
||||
args.append(", "); //$NON-NLS-1$
|
||||
args.append(params[i].getParameter());
|
||||
}
|
||||
String argString = args.toString();
|
||||
|
@ -275,39 +275,39 @@ public class DOMCompletionContributor implements ICompletionContributor {
|
|||
// These are the keywords we complete
|
||||
// We only do the ones that are > 5 characters long
|
||||
private static String [] keywords = {
|
||||
"const_cast",
|
||||
"continue",
|
||||
"default",
|
||||
"delete",
|
||||
"double",
|
||||
"dynamic_cast",
|
||||
"explicit",
|
||||
"export",
|
||||
"extern",
|
||||
"friend",
|
||||
"inline",
|
||||
"mutable",
|
||||
"namespace",
|
||||
"operator",
|
||||
"private",
|
||||
"protected",
|
||||
"register",
|
||||
"reinterpret_cast",
|
||||
"return",
|
||||
"signed",
|
||||
"sizeof",
|
||||
"static",
|
||||
"static_cast",
|
||||
"struct",
|
||||
"switch",
|
||||
"template",
|
||||
"typedef",
|
||||
"typeid",
|
||||
"typename",
|
||||
"unsigned",
|
||||
"virtual",
|
||||
"volatile",
|
||||
"wchar_t"
|
||||
"const_cast", //$NON-NLS-1$
|
||||
"continue", //$NON-NLS-1$
|
||||
"default", //$NON-NLS-1$
|
||||
"delete", //$NON-NLS-1$
|
||||
"double", //$NON-NLS-1$
|
||||
"dynamic_cast", //$NON-NLS-1$
|
||||
"explicit", //$NON-NLS-1$
|
||||
"export", //$NON-NLS-1$
|
||||
"extern", //$NON-NLS-1$
|
||||
"friend", //$NON-NLS-1$
|
||||
"inline", //$NON-NLS-1$
|
||||
"mutable", //$NON-NLS-1$
|
||||
"namespace", //$NON-NLS-1$
|
||||
"operator", //$NON-NLS-1$
|
||||
"private", //$NON-NLS-1$
|
||||
"protected", //$NON-NLS-1$
|
||||
"register", //$NON-NLS-1$
|
||||
"reinterpret_cast", //$NON-NLS-1$
|
||||
"return", //$NON-NLS-1$
|
||||
"signed", //$NON-NLS-1$
|
||||
"sizeof", //$NON-NLS-1$
|
||||
"static", //$NON-NLS-1$
|
||||
"static_cast", //$NON-NLS-1$
|
||||
"struct", //$NON-NLS-1$
|
||||
"switch", //$NON-NLS-1$
|
||||
"template", //$NON-NLS-1$
|
||||
"typedef", //$NON-NLS-1$
|
||||
"typeid", //$NON-NLS-1$
|
||||
"typename", //$NON-NLS-1$
|
||||
"unsigned", //$NON-NLS-1$
|
||||
"virtual", //$NON-NLS-1$
|
||||
"volatile", //$NON-NLS-1$
|
||||
"wchar_t" //$NON-NLS-1$
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ public class SearchCompletionContributor implements ICompletionContributor {
|
|||
ICSearchScope scope = SearchEngine.createCSearchScope(projects, true);
|
||||
|
||||
// Create the pattern
|
||||
String prefix = new String(name.toCharArray()) + "*";
|
||||
String prefix = new String(name.toCharArray()) + "*"; //$NON-NLS-1$
|
||||
ICSearchPattern pattern = SearchEngine.createSearchPattern(prefix, ICSearchConstants.FUNCTION, ICSearchConstants.DEFINITIONS, false);
|
||||
|
||||
// Run the search
|
||||
|
@ -90,7 +90,7 @@ public class SearchCompletionContributor implements ICompletionContributor {
|
|||
int repLength = completionNode.getLength();
|
||||
int repOffset = offset - repLength;
|
||||
Image image = CUIPlugin.getImageDescriptorRegistry().get(CElementImageProvider.getFunctionImageDescriptor());
|
||||
String repString = name + "()";
|
||||
String repString = name + "()"; //$NON-NLS-1$
|
||||
CCompletionProposal proposal = new CCompletionProposal(repString, repOffset, repLength, image, repString, 1, viewer);
|
||||
proposal.setCursorPosition(repString.length() - 1);
|
||||
proposals.add(proposal);
|
||||
|
|
|
@ -273,7 +273,7 @@ public class LinkToFileGroup extends StringButtonDialogField {
|
|||
*/
|
||||
protected void resolveVariable() {
|
||||
if(!linkTargetField.isEnabled()) {
|
||||
resolvedPathLabelData.setText("");
|
||||
resolvedPathLabelData.setText(""); //$NON-NLS-1$
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,9 +42,9 @@ import org.eclipse.ui.PlatformUI;
|
|||
|
||||
public abstract class AbstractErrorParserBlock extends AbstractCOptionPage {
|
||||
|
||||
private static final String PREFIX = "ErrorParserBlock"; // $NON-NLS-1$
|
||||
private static final String LABEL = PREFIX + ".label"; // $NON-NLS-1$
|
||||
private static final String DESC = PREFIX + ".desc"; // $NON-NLS-1$
|
||||
private static final String PREFIX = "ErrorParserBlock"; //$NON-NLS-1$
|
||||
private static final String LABEL = PREFIX + ".label"; //$NON-NLS-1$
|
||||
private static final String DESC = PREFIX + ".desc"; //$NON-NLS-1$
|
||||
|
||||
private static String[] EMPTY = new String[0];
|
||||
private Preferences fPrefs;
|
||||
|
|
|
@ -72,7 +72,7 @@ public interface ICDTLaunchConfigurationConstants {
|
|||
* Launch configuration attribute key. The value is a boolean specifiying whether
|
||||
* to connect a terminal to the processed stdin/stdout
|
||||
*/
|
||||
public static final String ATTR_USE_TERMINAL = CDT_LAUNCH_ID + ".use_terminal";
|
||||
public static final String ATTR_USE_TERMINAL = CDT_LAUNCH_ID + ".use_terminal"; //$NON-NLS-1$
|
||||
|
||||
public static final boolean USE_TERMINAL_DEFAULT = true;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ public class MIEnvironmentDirectory extends MICommand
|
|||
public MIEnvironmentDirectory(boolean reset, String[] paths) {
|
||||
super("-environment-directory", paths); //$NON-NLS-1$
|
||||
if (reset) {
|
||||
setOptions(new String[] {"-r"});
|
||||
setOptions(new String[] {"-r"}); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ public class MIGDBShowEndianInfo extends MIInfo {
|
|||
|
||||
void parseLine(String str) {
|
||||
if (str != null && str.length() > 0) {
|
||||
littleEndian = (str.indexOf("little") != -1);
|
||||
littleEndian = (str.indexOf("little") != -1); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
#Mon May 16 10:23:44 EDT 2005
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
|
||||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.deprecation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finalParameterBound=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
|
||||
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
|
||||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
|
||||
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
|
||||
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
|
||||
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
|
||||
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
|
||||
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
|
||||
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
|
||||
org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore
|
||||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
|
Loading…
Add table
Reference in a new issue