Chandrayya G K
Chandrayya G K

Reputation: 8849

Hide run/debug launch configuration in eclipse run/debug dialog programmatically

How to hide a given launch configuration type in eclipse run/debug dialog?

As asked here in this bug hiding with activities is not working for me. Are there any other ways to hide a given launch configuration type in eclipse run/debug dialog?

Upvotes: 0

Views: 520

Answers (1)

greg-449
greg-449

Reputation: 111142

The Preferences has a configuration for hiding configuration types (in 'Run/Debug > Launching > Launch Configurations').

You could set these preference values, but this is an internal API so may change without notice.

The preference store is:

IPreferenceStore store = DebugUIPlugin.getDefault().getPreferenceStore();

Filtering by launch type is enabled with

store.getBoolean(IInternalDebugUIConstants.PREF_FILTER_LAUNCH_TYPES)

and the comma separated list of types to be filtered out is in

store.getString(IInternalDebugUIConstants.PREF_FILTER_TYPE_LIST)

As I said this is all an internal API.

Upvotes: 0

Related Questions