Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-ui-dev] Creating New Launch Tab Group

Hi,

  I am trying to make a custom Tab Group for launching a particular
application from my plugin.

Since I am new to this,I tried making a file in my Package which
is the same as
org/eclipse/jdt/debug/ui/launchConfigurations/LocalJavaApplicationTabGroup.java

When I try to access this particular tab group from the Run menu,I am
getting the following error:

Unhandled exception caught in event loop. Reason:
org/eclipse/debug/ui/AbstractLaunchConfigurationTabGroup

Here is the code for  the java file in my Package

package xyz;

import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup; import
org.eclipse.debug.ui.CommonTab; import
org.eclipse.debug.ui.ILaunchConfigurationDialog; import
org.eclipse.debug.ui.ILaunchConfigurationTab; import
org.eclipse.jdt.debug.ui.launchConfigurations.JavaMainTab;

public class
LocalJavaApplicationTabGroup extends AbstractLaunchConfigurationTabGroup {
public void createTabs(ILaunchConfigurationDialog dialog, String
mode) {
		ILaunchConfigurationTab[] tabs = new
ILaunchConfigurationTab[] {
			new JavaMainTab(),
			//new JavaArgumentsTab(),
			//new JavaJRETab(),
			//new JavaClasspathTab(),
			//new JavaSourceLookupTab(),
			new CommonTab()
		};
		setTabs(tabs);
	}

I am importing the following plugins in my plugin.xml

<requires>
      <import plugin="org.eclipse.core.resources"/>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.jdt.core"/>
      <import plugin="org.eclipse.debug.core"/>
      <import plugin="org.eclipse.jdt.debug"/>
      <import plugin="org.eclipse.jdt.launching"/>
      <import plugin="org.apache.xerces"/>
      <import plugin="org.eclipse.jdt.debug.ui"/>
</requires>

Any help would be appreciated
Thanks in advance

Harihar N Iyer
Research Programmer
Dept.Of Computer Science
Rensselaer Polytechnic Institute
Troy.NY-12180




Back to the top