Bug 389403

Summary: [launching] hide launchconfiguration with activities in launch configuration dialog
Product: [Eclipse Project] Platform Reporter: Simon Bernard <code>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: chandrayya.gk, evil_bandit_betamax
Version: 4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Simon Bernard CLA 2012-09-12 09:46:43 EDT
Currently, I find no way to hide some launchconfiguration type in the launch configuration dialog with activities.

I could be very nice to be able to do that.

My use case is :
 An IDE which should be as simple as possible.
 So we hide features which is not useful in current use case, but we will offer to advanced users to activate this feature thanks to preference page.

We are using activities to do that.

For launch configuration, we implement a workaround :
- use the "classic" filtering preference to hide some launchconfiguration (plugin_customization).
- add listener on our activity to change this preference when the activity is activated ot deactivated.
- we attach the listener at startup thanks to the org.eclipse.ui.startup

This is clearly a workaround.
Comment 1 John Moule CLA 2017-01-27 09:13:51 EST
My goal is similar to yours.

On Eclipse Mars the following pattern removes the CDT "C/C++ Application" launch configuration type from the Debug Configuration dialog and from Preferences > Run/Debug > Launching > Launch Configurations. Note the Default Launchers page does not support activity filtering.

   <extension
         point="org.eclipse.ui.activities">
      ...
      <!-- C/C++ Application in launch configurations, launching preferences -->
      <activityPatternBinding isEqualityPattern="true"
            activityId="org.eclipse.cdt.launch"
            pattern="org.eclipse.cdt.debug.core/org.eclipse.cdt.launch.applicationLaunchType">
      </activityPatternBinding>
      ...
   </extension>