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
|
* An instance is either associated with a particular launch configuration or it
|
||||||
* has no association (global).
|
* has no association (global).
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
|
|
||||||
private static Set<String> fSupportedTypes;
|
private static Set<String> fSupportedTypes;
|
||||||
private static Object fSupportedTypesLock = new Object();
|
private static Object fSupportedTypesLock = new Object();
|
||||||
|
|
||||||
|
@ -76,7 +74,6 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
if (contains(containers[i], source))
|
if (contains(containers[i], source))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,8 +85,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
if (contains(containers[i], handle))
|
if (contains(containers[i], handle))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
} catch (CoreException e) {
|
||||||
catch( CoreException e ) {
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -114,8 +110,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
if (contains(containers[i], project))
|
if (contains(containers[i], project))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
} catch (CoreException e) {
|
||||||
catch( CoreException e ) {
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -168,8 +163,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
if (contains(containers[i], sourceName))
|
if (contains(containers[i], sourceName))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
} catch (CoreException e) {
|
||||||
catch( CoreException e ) {
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -191,8 +185,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
IPath path = null;
|
IPath path = null;
|
||||||
if (container instanceof MappingSourceContainer) {
|
if (container instanceof MappingSourceContainer) {
|
||||||
path = ((MappingSourceContainer) container).getCompilationPath(sourceName);
|
path = ((MappingSourceContainer) container).getCompilationPath(sourceName);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
try {
|
try {
|
||||||
ISourceContainer[] containers;
|
ISourceContainer[] containers;
|
||||||
containers = container.getSourceContainers();
|
containers = container.getSourceContainers();
|
||||||
|
@ -201,8 +194,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
if (path != null)
|
if (path != null)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
} catch (CoreException e) {
|
||||||
catch( CoreException e ) {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
|
@ -215,8 +207,8 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
fSupportedTypes = new HashSet<String>();
|
fSupportedTypes = new HashSet<String>();
|
||||||
String name = CDebugCorePlugin.PLUGIN_ID + ".supportedSourceContainerTypes"; //$NON-NLS-1$;
|
String name = CDebugCorePlugin.PLUGIN_ID + ".supportedSourceContainerTypes"; //$NON-NLS-1$;
|
||||||
IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(name);
|
IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(name);
|
||||||
if( extensionPoint != null)
|
if (extensionPoint != null) {
|
||||||
for( IExtension extension : extensionPoint.getExtensions())
|
for (IExtension extension : extensionPoint.getExtensions()) {
|
||||||
for (IConfigurationElement configurationElements : extension.getConfigurationElements()) {
|
for (IConfigurationElement configurationElements : extension.getConfigurationElements()) {
|
||||||
String id = configurationElements.getAttribute("id"); //$NON-NLS-1$;
|
String id = configurationElements.getAttribute("id"); //$NON-NLS-1$;
|
||||||
if (id != null)
|
if (id != null)
|
||||||
|
@ -225,5 +217,7 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// << Bugzilla 279473
|
// << Bugzilla 279473
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue