Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2012-12-11 10:09:45 +0000
committerTobias Schwarz2012-12-11 10:10:01 +0000
commitf797acec0f0b76a2b9e03f289d21576bab581082 (patch)
treeef04421848fe83800574e974f2c55151fab4389a /target_explorer/plugins/org.eclipse.tcf.te.launch.core
parent13be1f2ad28fe56d344810b6fe5a14725c94b0f8 (diff)
downloadorg.eclipse.tcf-f797acec0f0b76a2b9e03f289d21576bab581082.tar.gz
org.eclipse.tcf-f797acec0f0b76a2b9e03f289d21576bab581082.tar.xz
org.eclipse.tcf-f797acec0f0b76a2b9e03f289d21576bab581082.zip
TE: fix launch config ranking
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.launch.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/delegates/DefaultLaunchManagerDelegate.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/delegates/DefaultLaunchManagerDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/delegates/DefaultLaunchManagerDelegate.java
index 68fa6f022..cf7146bda 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/delegates/DefaultLaunchManagerDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/lm/delegates/DefaultLaunchManagerDelegate.java
@@ -142,7 +142,7 @@ public class DefaultLaunchManagerDelegate extends ExecutableExtension implements
catch (LaunchServiceException e) {
switch (e.getType()) {
case LaunchServiceException.TYPE_MISSING_LAUNCH_CONFIG_ATTR:
- ranking = 0;
+ ranking = -1;
break;
default:
throw e;
@@ -167,7 +167,7 @@ public class DefaultLaunchManagerDelegate extends ExecutableExtension implements
.trace(message.toString(), 0, ITraceIds.TRACE_LAUNCHCONFIGURATIONMATCHING, IStatus.INFO, this);
}
- if (ranking >= fullMatchRanking) {
+ if (ranking >= 0 && ranking >= fullMatchRanking) {
rankedList.add(new LaunchConfigSorter(launchConfig, ranking));
}
}

Back to the top