Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 170233

Summary: [java launching] API request for Launchshortcuts and LaunchConfigurations
Product: [Eclipse Project] JDT Reporter: Eugene Chan <ewchan>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: amehrega
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
ProfileJavaAppletShortcut
none
ProfileJavaApplicationShortcut
none
LauncherUtility none

Description Eugene Chan CLA 2007-01-11 11:37:26 EST
In TPTP, various launch shortcuts and launch configurations are extended to support PROFILE mode launch.

JavaAppletLaunchShortcut
JavaApplicationLaunchShortcut
JUnitLaunchConfiguration
JUnitLaunchConfigurationDelegate

In launch shortcut, launch(), chooseType(), and chooseConfiguration() are override and customized for profile specified dialog attributes and profile required actions. Similar changes are also required on the LaunchConfiguration/Delegate.

I am attaching the TPTP classes which extend the JDT resource to support profile and explain the API requirement.
Comment 1 Eugene Chan CLA 2007-01-11 11:40:08 EST
Created attachment 56781 [details]
ProfileJavaAppletShortcut

This class extends JavaAppletLaunchShortcut, in which 
getConfigurationType();
findLaunchConfiguration(type, configType);
chooseType(types, mode);
chooseConfiguration(configList);
are required to be called but JavaAppletLaunchShortcut are under internal package.
Comment 2 Eugene Chan CLA 2007-01-11 11:42:43 EST
Created attachment 56782 [details]
ProfileJavaApplicationShortcut

This class extends JavaApplicationLaunchShortcut in which 
getConfigurationType();
MainTypeSelectionDialog
chooseType(types, mode);
chooseConfiguration(configList);
createConfiguration
are required to be called but JavaApplicationLaunchShortcut is under internal package.
Comment 3 Eugene Chan CLA 2007-01-11 11:52:06 EST
Created attachment 56785 [details]
LauncherUtility

This is a utility class which contains inner classes that extends and calls methods of JUnitLaunchConfiguration and TestSearchResult which are under internal package. It also has inner class that extends JUnitLaunchConfigurationDelegate, and calls findTestTypes() in org.eclipse.jdt.internal.junit.launcher.JUnitBaseLaunchConfiguration and org.eclipse.pde.internal.ui.launcher.LaunchPluginValidator.getPluginList()
Comment 4 Darin Wright CLA 2007-02-21 11:38:48 EST
Not planned for 3.3
Comment 5 amehrega CLA 2007-03-23 16:50:39 EDT
Any plans of including this in the near future?
TPTP is removing the JUnit profiling functionality because of internal API usage.
Comment 6 Darin Wright CLA 2007-03-23 16:57:28 EDT
There are no more API changes in 3.3 planned. The freeze is today (M6).
Comment 7 amehrega CLA 2007-03-23 18:35:07 EDT
What do we need to do to get this enhancement on Eclipse's radar screen for next release?  This defect was opened a long time ago but very little attention has been paid to it.

It's unfortunately a critical functionality that we're removing from TPTP.
Comment 8 Darin Wright CLA 2007-06-13 13:19:01 EDT
Dup.
Comment 9 Darin Wright CLA 2007-06-13 13:19:17 EDT

*** This bug has been marked as a duplicate of bug 54072 ***
Comment 10 Eugene Chan CLA 2011-04-01 14:51:52 EDT
closing bug.