Author: simoneg
Date: Sat Aug 29 17:27:25 2009
New Revision: 809166

URL: http://svn.apache.org/viewvc?rev=809166&view=rev
Log:
LABS-420 : append goals to project name for launch configurations

Modified:
    
labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/launch/MagmaLaunchShortcut.java

Modified: 
labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/launch/MagmaLaunchShortcut.java
URL: 
http://svn.apache.org/viewvc/labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/launch/MagmaLaunchShortcut.java?rev=809166&r1=809165&r2=809166&view=diff
==============================================================================
--- 
labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/launch/MagmaLaunchShortcut.java
 (original)
+++ 
labs/magma/trunk/magma-eclipse/src/org/apache/magma/tools/magmaeclipse/launch/MagmaLaunchShortcut.java
 Sat Aug 29 17:27:25 2009
@@ -128,13 +128,15 @@
                ILaunchConfiguration config = null;
                try {
                        ILaunchConfigurationType configType = 
getConfigurationType();
+                       String goals = this.goalName == null ? "magma:run" : 
this.goalName;
+                       String basename = prj.getName() + " - " + goals;
                        ILaunchConfigurationWorkingCopy wc = 
configType.newInstance(null,
                                        
DebugPlugin.getDefault().getLaunchManager()
                                                        
.generateUniqueLaunchConfigurationNameFrom(
-                                                                       
prj.getName()));
+                                                                       
basename));
                        wc.setAttribute(MavenLaunchConstants.ATTR_POM_DIR,
                                        "${workspace_loc:" + 
prj.getFullPath().toString() + "}");
-                       wc.setAttribute(MavenLaunchConstants.ATTR_GOALS, 
this.goalName == null ? "magma:run" : this.goalName);
+                       wc.setAttribute(MavenLaunchConstants.ATTR_GOALS, goals);
                        wc.setAttribute(RefreshTab.ATTR_REFRESH_SCOPE, 
"${project}");
                        wc.setAttribute(RefreshTab.ATTR_REFRESH_RECURSIVE, 
true);
                        config = wc.doSave();



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to