public class ScannerDiscoveryLegacySupport extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MBS_LANGUAGE_SETTINGS_PROVIDER_ID
ID of MBS language settings provider (from org.eclipse.cdt.managedbuilder.core)
|
static String |
PATH_ENTRY_MANAGER_LANGUAGE_SETTINGS_PROVIDER_ID
ID of language settings provider wrapping
ScannerProvider of PathEntryManager for 3.X projects |
static String |
SI_LANGUAGE_SETTINGS_PROVIDER_ID
ID of ScannerInfo language settings provider wrapping ScannerInfoProvider defined by org.eclipse.cdt.core.ScannerInfoProvider extension point
|
static String |
USER_LANGUAGE_SETTINGS_PROVIDER_ID
ID of User language settings provider (from org.eclipse.cdt.ui)
|
Constructor and Description |
---|
ScannerDiscoveryLegacySupport() |
Modifier and Type | Method and Description |
---|---|
static void |
defineLanguageSettingsEnablement(org.eclipse.core.resources.IProject project)
If not defined yet, define property that controls if language settings providers functionality enabled for a given project.
|
static String[] |
getDefaultProviderIdsLegacy(ICConfigurationDescription cfgDescription)
Return list containing User provider and one of wrapper providers to support legacy projects (backward compatibility).
|
static String |
getDeprecatedLegacyProfiles(String id)
Returns the values of scanner discovery profiles (scannerConfigDiscoveryProfileId) which were deprecated
and replaced with language settings providers in plugin.xml.
|
static boolean |
isLanguageSettingsProvidersFunctionalityDefined(org.eclipse.core.resources.IProject project)
Checks if Language Settings functionality is defined for given project in preferences.
|
static boolean |
isLanguageSettingsProvidersFunctionalityEnabled(org.eclipse.core.resources.IProject project)
Checks if Language Settings functionality is enabled for given project.
|
static boolean |
isLegacyScannerDiscoveryOn(ICConfigurationDescription cfgDescription) |
static boolean |
isLegacyScannerDiscoveryOn(org.eclipse.core.resources.IProject project) |
static boolean |
isMbsLanguageSettingsProviderOn(ICConfigurationDescription cfgDescription)
Check if legacy Scanner Discovery in MBS should be active.
|
static boolean |
isProviderCompatible(String providerId,
ICConfigurationDescription cfgDescription)
Checks if the provider is applicable for configuration from backward compatibility point of view
|
static void |
setLanguageSettingsProvidersFunctionalityEnabled(org.eclipse.core.resources.IProject project,
boolean value)
Enable/disable Language Settings functionality for the given project.
|
public static final String USER_LANGUAGE_SETTINGS_PROVIDER_ID
public static final String MBS_LANGUAGE_SETTINGS_PROVIDER_ID
public static final String SI_LANGUAGE_SETTINGS_PROVIDER_ID
public static final String PATH_ENTRY_MANAGER_LANGUAGE_SETTINGS_PROVIDER_ID
ScannerProvider
of PathEntryManager
for 3.X projectspublic static boolean isLanguageSettingsProvidersFunctionalityDefined(org.eclipse.core.resources.IProject project)
project
- - project to check the preference or null
for workspace preferencetrue
if functionality is definedpublic static boolean isLanguageSettingsProvidersFunctionalityEnabled(org.eclipse.core.resources.IProject project)
project
- - project to check the preference or null
for workspace preferencetrue
if functionality is enabledpublic static void setLanguageSettingsProvidersFunctionalityEnabled(org.eclipse.core.resources.IProject project, boolean value)
project
- or null
for workspace preferencevalue
- true
to enable or false
to disable the functionality.public static boolean isMbsLanguageSettingsProviderOn(ICConfigurationDescription cfgDescription)
public static boolean isLegacyScannerDiscoveryOn(ICConfigurationDescription cfgDescription)
public static boolean isLegacyScannerDiscoveryOn(org.eclipse.core.resources.IProject project)
public static String[] getDefaultProviderIdsLegacy(ICConfigurationDescription cfgDescription)
public static boolean isProviderCompatible(String providerId, ICConfigurationDescription cfgDescription)
public static void defineLanguageSettingsEnablement(org.eclipse.core.resources.IProject project)
project
- - project to define enablement.public static String getDeprecatedLegacyProfiles(String id)
id
- - can be id of either org.eclipse.cdt.managedbuilder.internal.core.InputType
or org.eclipse.cdt.managedbuilder.internal.core.ToolChain.Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.