Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 170233 - [java launching] API request for Launchshortcuts and LaunchConfigurations
Summary: [java launching] API request for Launchshortcuts and LaunchConfigurations
Status: CLOSED DUPLICATE of bug 54072
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-11 11:37 EST by Eugene Chan CLA
Modified: 2011-04-01 14:51 EDT (History)
1 user (show)

See Also:


Attachments
ProfileJavaAppletShortcut (4.26 KB, application/octet-stream)
2007-01-11 11:40 EST, Eugene Chan CLA
no flags Details
ProfileJavaApplicationShortcut (4.19 KB, application/octet-stream)
2007-01-11 11:42 EST, Eugene Chan CLA
no flags Details
LauncherUtility (49.18 KB, application/octet-stream)
2007-01-11 11:52 EST, Eugene Chan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.