1
0
Fork 0
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:
Sergey Prigogin 2011-10-15 15:29:24 -07:00
parent e453c2257d
commit 08513938be

View file

@ -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,11 +274,10 @@ 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()) {