mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed a deprecation warning.
This commit is contained in:
parent
e453c2257d
commit
08513938be
1 changed files with 9 additions and 9 deletions
|
@ -45,6 +45,7 @@ import org.eclipse.core.runtime.Assert;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
|
import org.eclipse.core.runtime.Platform;
|
||||||
|
|
||||||
public class Binary extends Openable implements IBinary {
|
public class Binary extends Openable implements IBinary {
|
||||||
|
|
||||||
|
@ -273,20 +274,19 @@ public class Binary extends Openable implements IBinary {
|
||||||
if (obj != null) {
|
if (obj != null) {
|
||||||
// First check if we can get the list of source
|
// First check if we can get the list of source
|
||||||
// files used to build the binary from the symbol
|
// files used to build the binary from the symbol
|
||||||
// information. if not, fall back on information from the binary parser.
|
// information. If not, fall back on information from the binary parser.
|
||||||
boolean showSourceFiles = CCorePlugin.getDefault().getPluginPreferences().getBoolean( CCorePreferenceConstants.SHOW_SOURCE_FILES_IN_BINARIES );
|
boolean showSourceFiles = Platform.getPreferencesService().getBoolean(CCorePlugin.PLUGIN_ID,
|
||||||
if (!showSourceFiles ||
|
CCorePreferenceConstants.SHOW_SOURCE_FILES_IN_BINARIES, false, null);
|
||||||
!addSourceFiles(info, obj, hash))
|
if (!showSourceFiles || !addSourceFiles(info, obj, hash)) {
|
||||||
{
|
|
||||||
ISymbol[] symbols = obj.getSymbols();
|
ISymbol[] symbols = obj.getSymbols();
|
||||||
for (ISymbol symbol : symbols) {
|
for (ISymbol symbol : symbols) {
|
||||||
switch (symbol.getType()) {
|
switch (symbol.getType()) {
|
||||||
case ISymbol.FUNCTION :
|
case ISymbol.FUNCTION:
|
||||||
addFunction(info, symbol, hash);
|
addFunction(info, symbol, hash);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ISymbol.VARIABLE :
|
case ISymbol.VARIABLE:
|
||||||
addVariable(info, symbol, hash);
|
addVariable(info, symbol, hash);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue