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
DEBUGFields inherited from interface org.eclipse.cdt.core.settings.model.ICMultiItemsHolder
EMPTY_STRFields 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
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetId()Object[]getItems()getName()getResolvedSettingEntries(int kind) getSettingEntries(int kind) getSettingEntriesList(int kind) getSettingEntriesM(int kind) String[]String[][]String[]String[][]intintgetType()booleanbooleanisValid()voidsetLanguageId(String id) voidsetSettingEntries(int kind, List<ICLanguageSettingEntry> entriesList) voidsetSettingEntries(int kind, ICLanguageSettingEntry[] entries) voidsetSourceContentTypeIds(String[] ids) voidsetSourceExtensions(String[] exts) booleansupportsEntryKind(int kind) Methods inherited from class org.eclipse.cdt.core.settings.model.MultiItemsHolder
createCDescription, createRDescription
-
Constructor Details
-
MultiLanguageSetting
-
-
Method Details
-
getLanguageId
- Specified by:
getLanguageIdin interfaceICLanguageSetting- Returns:
- language id. Note that that id can be
null.
-
getSettingEntriesM
-
getSettingEntriesList
- Specified by:
getSettingEntriesListin interfaceICLanguageSetting
-
getSourceContentTypeIdsM
-
getSourceExtensionsM
-
getSupportedEntryKinds
public int getSupportedEntryKinds()- Specified by:
getSupportedEntryKindsin interfaceICLanguageSetting
-
setLanguageId
- Specified by:
setLanguageIdin interfaceICLanguageSetting
-
setSettingEntries
- Specified by:
setSettingEntriesin interfaceICLanguageSetting
-
setSettingEntries
- Specified by:
setSettingEntriesin interfaceICLanguageSetting
-
setSourceContentTypeIds
- Specified by:
setSourceContentTypeIdsin interfaceICLanguageSetting
-
setSourceExtensions
- Specified by:
setSourceExtensionsin interfaceICLanguageSetting
-
supportsEntryKind
public boolean supportsEntryKind(int kind) - Specified by:
supportsEntryKindin interfaceICLanguageSetting
-
getConfiguration
- Specified by:
getConfigurationin interfaceICSettingObject- Returns:
- the configuration description this object belongs to
-
getId
- Specified by:
getIdin interfaceICSettingObject- Returns:
- the unique id of this element
-
getName
- Specified by:
getNamein interfaceICSettingObject- Returns:
- the name of this element
-
getParent
- Specified by:
getParentin interfaceICSettingObject- Returns:
- the object parent
-
getType
public int getType()- Specified by:
getTypein interfaceICSettingObject- Returns:
- constant representing the setting type
can be one of the following:
ICSettingBase.SETTING_PROJECTICSettingBase.SETTING_CONFIGURATIONICSettingBase.SETTING_FOLDERICSettingBase.SETTING_FILEICSettingBase.SETTING_LANGUAGEICSettingBase.SETTING_TARGET_PLATFORMICSettingBase.SETTING_BUILD
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceICSettingObject- Returns:
- true if the object is read-only, false - otherwise
-
isValid
public boolean isValid()- Specified by:
isValidin 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:
getItemsin interfaceICMultiItemsHolder- Specified by:
getItemsin classMultiItemsHolder- Returns:
- array of items which it holds
-
getResolvedSettingEntries
- Specified by:
getResolvedSettingEntriesin interfaceICLanguageSetting
-
getSettingEntries
- Specified by:
getSettingEntriesin interfaceICLanguageSetting
-
getSourceContentTypeIds
- Specified by:
getSourceContentTypeIdsin interfaceICLanguageSetting
-
getSourceExtensions
- Specified by:
getSourceExtensionsin interfaceICLanguageSetting
-