Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorAlena Laskavaia2009-03-12 17:53:36 +0000
committerAlena Laskavaia2009-03-12 17:53:36 +0000
commit9c0729da4aa04b0f75e040566756fe86e0cd3086 (patch)
treed8e2129151f9866d17f52eb6bfae3d5f05ddd52b /debug
parentb00cc975fdfd6c360757663101567893cc16ef37 (diff)
downloadorg.eclipse.cdt-9c0729da4aa04b0f75e040566756fe86e0cd3086.tar.gz
org.eclipse.cdt-9c0729da4aa04b0f75e040566756fe86e0cd3086.tar.xz
org.eclipse.cdt-9c0729da4aa04b0f75e040566756fe86e0cd3086.zip
[268314] - remove limitation on type id of launch config
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java18
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java7
2 files changed, 14 insertions, 11 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java
index 8afa84a21ab..3da326e0096 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutablePageTwo.java
@@ -85,17 +85,23 @@ public class ImportExecutablePageTwo extends WizardPage {
private void addLaunchConfigTypes() {
ILaunchConfigurationType[] configTypeList = DebugPlugin.getDefault()
.getLaunchManager().getLaunchConfigurationTypes();
+ int j = 0, capp = 0;
for (int i = 0; i < configTypeList.length; i++) {
- String configTypeName = configTypeList[i].getName();
- if (configTypeList[i].isPublic()
- && configTypeList[i]
- .supportsMode(ILaunchManager.DEBUG_MODE)) {
- if (wizard.supportsConfigurationType(configTypeList[i])) {
+ ILaunchConfigurationType type = configTypeList[i];
+ String configTypeName = type.getName();
+ if (type.isPublic()
+ && type.supportsMode(ILaunchManager.DEBUG_MODE)) {
+ if (wizard.supportsConfigurationType(type)) {
configTypes.add(configTypeName);
+
+ if (type.getIdentifier().equals("org.eclipse.cdt.launch.applicationLaunchType")) {
+ capp = j;
+ }
+ j++;
}
}
}
- configTypes.select(0);
+ configTypes.select(capp);
}
public void checkExecutableSettings() {
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java
index c517fb22fc1..d1c440afd7b 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/importexecutable/ImportExecutableWizard.java
@@ -36,15 +36,12 @@ public class ImportExecutableWizard extends AbstractImportExecutableWizard {
public void setupFileDialog(FileDialog dialog) {
dialog.setText(Messages.ImportExecutableWizard_fileDialogTitle);
- dialog.setFilterExtensions(new String[] { "*.*", "*.exe", "*.dll" });
+ dialog.setFilterExtensions(new String[] { "*", "*.exe", "*.dll" });
dialog.setFilterNames(new String[] { Messages.ImportExecutableWizard_AllFiles, Messages.ImportExecutableWizard_Applications, Messages.ImportExecutableWizard_LIbaries });
}
public boolean supportsConfigurationType(ILaunchConfigurationType type) {
- return type.getIdentifier().startsWith("org.eclipse.cdt.launch")
- // Just for fun, lets support QNX launches too.
- // Really points at something missing, no?
- || type.getIdentifier().startsWith("com.qnx");
+ return true;
}
}

Back to the top