Bug 389403 - [launching] hide launchconfiguration with activities in launch configuration dialog
Summary: [launching] hide launchconfiguration with activities in launch configuration ...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-12 09:46 EDT by Simon Bernard CLA
Modified: 2017-08-21 08:54 EDT (History)
2 users (show)

See Also:


Attachments

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