mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Fix warnings.
This commit is contained in:
parent
74ec7eae9c
commit
997f6d7197
3 changed files with 12 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2002, 2008 QNX Software Systems and others.
|
* Copyright (c) 2002, 2009 QNX Software Systems and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -1148,15 +1148,15 @@ public class CDocumentProvider extends TextFileDocumentProvider {
|
||||||
return rootEdit;
|
return rootEdit;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isWhitespaceRegion(IDocument document, IRegion region) throws BadLocationException {
|
// private static boolean isWhitespaceRegion(IDocument document, IRegion region) throws BadLocationException {
|
||||||
int end = region.getOffset() + region.getLength();
|
// int end = region.getOffset() + region.getLength();
|
||||||
for (int i = region.getOffset(); i < end; i++) {
|
// for (int i = region.getOffset(); i < end; i++) {
|
||||||
if (!Character.isWhitespace(document.getChar(i))) {
|
// if (!Character.isWhitespace(document.getChar(i))) {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the preference whether handling temporary problems is enabled.
|
* Returns the preference whether handling temporary problems is enabled.
|
||||||
|
|
|
@ -114,7 +114,7 @@ public interface IWorkingSetProjectConfiguration extends IWorkingSetConfiguratio
|
||||||
* Activates my selected configuration in the workspace, for my project.
|
* Activates my selected configuration in the workspace, for my project.
|
||||||
*
|
*
|
||||||
* @see #getSelectedConfigurationID()
|
* @see #getSelectedConfigurationID()
|
||||||
* @see #setSelectedConfigurationID(String)
|
* @see ISnapshot#setSelectedConfigurationID(String)
|
||||||
* @see #isActive()
|
* @see #isActive()
|
||||||
*/
|
*/
|
||||||
void activate();
|
void activate();
|
||||||
|
|
|
@ -265,6 +265,7 @@ public class WorkingSetProjectConfiguration implements IWorkingSetProjectConfigu
|
||||||
return resolveProject().getName();
|
return resolveProject().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void setSelectedConfigurationID(String id) {
|
public void setSelectedConfigurationID(String id) {
|
||||||
super.setSelectedConfigurationID(id);
|
super.setSelectedConfigurationID(id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue