cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableProvider.java
--- a/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableProvider.java Fri Aug 07 12:47:00 2009 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/StandardExecutableProvider.java Fri Aug 07 13:47:27 2009 -0500
@@ -34,21 +34,19 @@
public class StandardExecutableProvider implements IProjectExecutablesProvider {
List<String> supportedNatureIds = new ArrayList<String>();
-
+
public StandardExecutableProvider() {
supportedNatureIds.add(CProjectNature.C_NATURE_ID);
supportedNatureIds.add(CCProjectNature.CC_NATURE_ID);
}
-
+
public List<String> getProjectNatures() {
return supportedNatureIds;
- }
+ }
-
- public List<Executable> getExecutables(IProject project,
- IProgressMonitor monitor) {
+ public List<Executable> getExecutables(IProject project, IProgressMonitor monitor) {
List<Executable> executables = new ArrayList<Executable>();
-
+
ICProject cproject = CModelManager.getDefault().create(project);
try {
IBinary[] binaries = cproject.getBinaryContainer().getBinaries();
@@ -64,12 +62,10 @@
IPath exePath = binary.getResource().getLocation();
if (exePath == null)
exePath = binary.getPath();
- executables.add(new Executable(exePath, project, binary
- .getResource()));
+ executables.add(new Executable(exePath, project, binary.getResource()));
}
-
+
progress.worked(1);
-
}
} catch (CModelException e) {
}
@@ -77,22 +73,16 @@
return executables;
}
- public IStatus removeExecutable(Executable executable,
- IProgressMonitor monitor) {
+ public IStatus removeExecutable(Executable executable, IProgressMonitor monitor) {
IResource exeResource = executable.getResource();
if (exeResource != null) {
try {
exeResource.delete(true, monitor);
} catch (CoreException e) {
- DebugPlugin.log(e);
-
+ DebugPlugin.log( e );
}
return Status.OK_STATUS;
}
- return new Status(IStatus.WARNING, CDebugCorePlugin.PLUGIN_ID,
- "Can't remove " + executable.getName()
- + ": it is built by project \""
- + executable.getProject().getName() + "\"");
+ return new Status(IStatus.WARNING, CDebugCorePlugin.PLUGIN_ID, "Can't remove " + executable.getName() + ": it is built by project \"" + executable.getProject().getName() + "\"");
}
-
-}
\ No newline at end of file
+}