Class MultiLanguageSetting
java.lang.Object
org.eclipse.cdt.core.settings.model.MultiItemsHolder
org.eclipse.cdt.core.settings.model.MultiLanguageSetting
- All Implemented Interfaces:
ICLanguageSetting
,ICMultiItemsHolder
,ICSettingBase
,ICSettingObject
This class is intended to hold "similar" Language Setting objects.
Normally, they should have the same name.
-
Field Summary
Fields inherited from class org.eclipse.cdt.core.settings.model.MultiItemsHolder
DEBUG
Fields inherited from interface org.eclipse.cdt.core.settings.model.ICMultiItemsHolder
EMPTY_STR
Fields inherited from interface org.eclipse.cdt.core.settings.model.ICSettingBase
SETTING_BUILD, SETTING_CONFIGURATION, SETTING_FILE, SETTING_FOLDER, SETTING_LANGUAGE, SETTING_PROJECT, SETTING_TARGET_PLATFORM
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Object[]
getItems()
getName()
getResolvedSettingEntries
(int kind) getSettingEntries
(int kind) getSettingEntriesList
(int kind) getSettingEntriesM
(int kind) String[]
String[][]
String[]
String[][]
int
int
getType()
boolean
boolean
isValid()
void
setLanguageId
(String id) void
setSettingEntries
(int kind, List<ICLanguageSettingEntry> entriesList) void
setSettingEntries
(int kind, ICLanguageSettingEntry[] entries) void
setSourceContentTypeIds
(String[] ids) void
setSourceExtensions
(String[] exts) boolean
supportsEntryKind
(int kind) Methods inherited from class org.eclipse.cdt.core.settings.model.MultiItemsHolder
createCDescription, createRDescription
-
Constructor Details
-
MultiLanguageSetting
-
-
Method Details
-
getLanguageId
- Specified by:
getLanguageId
in interfaceICLanguageSetting
- Returns:
- language id. Note that that id can be
null
.
-
getSettingEntriesM
-
getSettingEntriesList
- Specified by:
getSettingEntriesList
in interfaceICLanguageSetting
-
getSourceContentTypeIdsM
-
getSourceExtensionsM
-
getSupportedEntryKinds
public int getSupportedEntryKinds()- Specified by:
getSupportedEntryKinds
in interfaceICLanguageSetting
-
setLanguageId
- Specified by:
setLanguageId
in interfaceICLanguageSetting
-
setSettingEntries
- Specified by:
setSettingEntries
in interfaceICLanguageSetting
-
setSettingEntries
- Specified by:
setSettingEntries
in interfaceICLanguageSetting
-
setSourceContentTypeIds
- Specified by:
setSourceContentTypeIds
in interfaceICLanguageSetting
-
setSourceExtensions
- Specified by:
setSourceExtensions
in interfaceICLanguageSetting
-
supportsEntryKind
public boolean supportsEntryKind(int kind) - Specified by:
supportsEntryKind
in interfaceICLanguageSetting
-
getConfiguration
- Specified by:
getConfiguration
in interfaceICSettingObject
- Returns:
- the configuration description this object belongs to
-
getId
- Specified by:
getId
in interfaceICSettingObject
- Returns:
- the unique id of this element
-
getName
- Specified by:
getName
in interfaceICSettingObject
- Returns:
- the name of this element
-
getParent
- Specified by:
getParent
in interfaceICSettingObject
- Returns:
- the object parent
-
getType
public int getType()- Specified by:
getType
in interfaceICSettingObject
- Returns:
- constant representing the setting type
can be one of the following:
ICSettingBase.SETTING_PROJECT
ICSettingBase.SETTING_CONFIGURATION
ICSettingBase.SETTING_FOLDER
ICSettingBase.SETTING_FILE
ICSettingBase.SETTING_LANGUAGE
ICSettingBase.SETTING_TARGET_PLATFORM
ICSettingBase.SETTING_BUILD
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in interfaceICSettingObject
- Returns:
- true if the object is read-only, false - otherwise
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceICSettingObject
- Returns:
- true if the given object is valid, false - otherwise the object can be invalid, e.g. in case it was removed
-
getItems
- Specified by:
getItems
in interfaceICMultiItemsHolder
- Specified by:
getItems
in classMultiItemsHolder
- Returns:
- array of items which it holds
-
getResolvedSettingEntries
- Specified by:
getResolvedSettingEntries
in interfaceICLanguageSetting
-
getSettingEntries
- Specified by:
getSettingEntries
in interfaceICLanguageSetting
-
getSourceContentTypeIds
- Specified by:
getSourceContentTypeIds
in interfaceICLanguageSetting
-
getSourceExtensions
- Specified by:
getSourceExtensions
in interfaceICLanguageSetting
-