[jboss-cvs] jbosside/aop/plugins/org.jboss.ide.eclipse.jdt.aop.ui/src/main/org/jboss/ide/eclipse/jdt/aop/ui/launch ...
Robert Stryker
rawblem at gmail.com
Thu Jul 13 15:24:52 EDT 2006
User: rawb
Date: 06/07/13 15:24:52
Modified: aop/plugins/org.jboss.ide.eclipse.jdt.aop.ui/src/main/org/jboss/ide/eclipse/jdt/aop/ui/launch
AopLaunchTabGroup.java
Log:
Fix for bug JBIDE-341 in jira
Revision Changes Path
1.3 +19 -0 jbosside/aop/plugins/org.jboss.ide.eclipse.jdt.aop.ui/src/main/org/jboss/ide/eclipse/jdt/aop/ui/launch/AopLaunchTabGroup.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AopLaunchTabGroup.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/aop/plugins/org.jboss.ide.eclipse.jdt.aop.ui/src/main/org/jboss/ide/eclipse/jdt/aop/ui/launch/AopLaunchTabGroup.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- AopLaunchTabGroup.java 31 Jan 2006 04:58:25 -0000 1.2
+++ AopLaunchTabGroup.java 13 Jul 2006 19:24:52 -0000 1.3
@@ -21,6 +21,9 @@
*/
package org.jboss.ide.eclipse.jdt.aop.ui.launch;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.debug.core.ILaunchConfiguration;
+import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
import org.eclipse.debug.ui.CommonTab;
import org.eclipse.debug.ui.EnvironmentTab;
@@ -42,6 +45,22 @@
super();
}
+ public void setDefaults(ILaunchConfigurationWorkingCopy configuration) {
+ super.setDefaults(configuration);
+ try {
+ String type = configuration.getAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_ID, (String)null);
+ if (type == null) {
+ type = configuration.getType().getSourceLocatorId();
+ if( type == null ) {
+ // set the default:
+ configuration.setAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_ID, "org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector");
+ }
+ }
+
+ } catch( CoreException ce ) {}
+ }
+
+
public void createTabs(ILaunchConfigurationDialog dialog, String mode)
{
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[]
More information about the jboss-cvs-commits
mailing list