You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hdt.apache.org by ad...@apache.org on 2013/04/13 20:05:47 UTC

[2/8] git commit: findLaunchConfiguration is no longer called in the JavaLaunchShortcut chain, so switched to createConfiguration to correctly bring up the RunOnHadoopWizard

findLaunchConfiguration is no longer called in the JavaLaunchShortcut
chain, so switched to createConfiguration to correctly bring up the
RunOnHadoopWizard

Project: http://git-wip-us.apache.org/repos/asf/incubator-hdt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hdt/commit/1d8a2c9c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hdt/tree/1d8a2c9c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hdt/diff/1d8a2c9c

Branch: refs/heads/master
Commit: 1d8a2c9c49c04da19992c8d006faf62a6bdd455a
Parents: be54915
Author: adamb <ad...@apache.org>
Authored: Fri Apr 12 13:44:39 2013 -0500
Committer: adamb <ad...@apache.org>
Committed: Fri Apr 12 13:44:39 2013 -0500

----------------------------------------------------------------------
 .../launch/HadoopApplicationLaunchShortcut.java    |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hdt/blob/1d8a2c9c/org.apache.hdt.debug.core/src/org/apache/hdt/debug/core/launch/HadoopApplicationLaunchShortcut.java
----------------------------------------------------------------------
diff --git a/org.apache.hdt.debug.core/src/org/apache/hdt/debug/core/launch/HadoopApplicationLaunchShortcut.java b/org.apache.hdt.debug.core/src/org/apache/hdt/debug/core/launch/HadoopApplicationLaunchShortcut.java
index 0377571..bcf84e2 100644
--- a/org.apache.hdt.debug.core/src/org/apache/hdt/debug/core/launch/HadoopApplicationLaunchShortcut.java
+++ b/org.apache.hdt.debug.core/src/org/apache/hdt/debug/core/launch/HadoopApplicationLaunchShortcut.java
@@ -58,13 +58,9 @@ public class HadoopApplicationLaunchShortcut extends
 
   /* @inheritDoc */
   @Override
-  protected ILaunchConfiguration findLaunchConfiguration(IType type,
-      ILaunchConfigurationType configType) {
+  protected ILaunchConfiguration createConfiguration(IType type) {
 
-    // Find an existing or create a launch configuration (Standard way)
-    ILaunchConfiguration iConf =
-        super.findLaunchConfiguration(type, configType);
-    if (iConf == null) iConf = super.createConfiguration(type);
+    ILaunchConfiguration iConf = super.createConfiguration(type);
     ILaunchConfigurationWorkingCopy iConfWC;
     try {
       /*