mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 03:53:21 +02:00
Cosmetics.
This commit is contained in:
parent
caadfdc7d1
commit
df47a5c6f6
1 changed files with 66 additions and 72 deletions
|
@ -49,10 +49,8 @@ import org.eclipse.debug.core.sourcelookup.containers.ProjectSourceContainer;
|
|||
*
|
||||
* An instance is either associated with a particular launch configuration or it
|
||||
* has no association (global).
|
||||
*
|
||||
*/
|
||||
public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||
|
||||
private static Set<String> fSupportedTypes;
|
||||
private static Object fSupportedTypesLock = new Object();
|
||||
|
||||
|
@ -76,7 +74,6 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
|||
if (contains(containers[i], source))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -88,8 +85,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
|||
if (contains(containers[i], handle))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -114,8 +110,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
|||
if (contains(containers[i], project))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -168,8 +163,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
|||
if (contains(containers[i], sourceName))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -191,8 +185,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
|||
IPath path = null;
|
||||
if (container instanceof MappingSourceContainer) {
|
||||
path = ((MappingSourceContainer) container).getCompilationPath(sourceName);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
try {
|
||||
ISourceContainer[] containers;
|
||||
containers = container.getSourceContainers();
|
||||
|
@ -201,8 +194,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
|||
if (path != null)
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch( CoreException e ) {
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
}
|
||||
return path;
|
||||
|
@ -215,8 +207,8 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
|||
fSupportedTypes = new HashSet<String>();
|
||||
String name = CDebugCorePlugin.PLUGIN_ID + ".supportedSourceContainerTypes"; //$NON-NLS-1$;
|
||||
IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(name);
|
||||
if( extensionPoint != null)
|
||||
for( IExtension extension : extensionPoint.getExtensions())
|
||||
if (extensionPoint != null) {
|
||||
for (IExtension extension : extensionPoint.getExtensions()) {
|
||||
for (IConfigurationElement configurationElements : extension.getConfigurationElements()) {
|
||||
String id = configurationElements.getAttribute("id"); //$NON-NLS-1$;
|
||||
if (id != null)
|
||||
|
@ -225,5 +217,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// << Bugzilla 279473
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue