Class WorkspaceLanguageConfiguration
java.lang.Object
org.eclipse.cdt.core.language.WorkspaceLanguageConfiguration
Provides programmatic access to language mappings for the workspace.
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newWorkspaceLanguageConfigurationwith no language mappings defined. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWorkspaceMapping(String contentType, String language) Maps a content type id to a language id.getLanguageForContentType(String contentTypeId) Returns the language id that is mapped to the given content type.Returns a read-only copy of the workspace-wide language mappings.voidremoveWorkspaceMapping(String contentType) Removes the given content type mapping (if it exists).voidsetWorkspaceMappings(Map<String, String> mappings) Replaces the existing language mappings with the given mappings.
-
Constructor Details
-
WorkspaceLanguageConfiguration
public WorkspaceLanguageConfiguration()Creates a newWorkspaceLanguageConfigurationwith no language mappings defined.
-
-
Method Details
-
addWorkspaceMapping
-
removeWorkspaceMapping
Removes the given content type mapping (if it exists).- Parameters:
contentType-
-
setWorkspaceMappings
-
getWorkspaceMappings
-
getLanguageForContentType
-