public interface ILanguageSettingsEditableProvider extends ILanguageSettingsBroadcastingProvider, Cloneable
LanguageSettingsSerializableProvider
managing
their settings themselves and not providing such option to the user.Modifier and Type | Method and Description |
---|---|
ILanguageSettingsEditableProvider |
clone() |
ILanguageSettingsEditableProvider |
cloneShallow()
Shallow clone of the provider.
|
String |
getId()
Id is used to keep track of the providers internally.
|
String |
getName()
Name is used to present the provider to the end user in UI.
|
List<ICLanguageSettingEntry> |
getSettingEntries(ICConfigurationDescription cfgDescription,
org.eclipse.core.resources.IResource rc,
String languageId)
Returns the list of setting entries for the given configuration description,
resource and language.
|
void |
setSettingEntries(ICConfigurationDescription cfgDescription,
org.eclipse.core.resources.IResource rc,
String languageId,
List<? extends ICLanguageSettingEntry> entries)
Sets language settings entries for the provider.
|
copyStorage
String getId()
ILanguageSettingsProvider
getId
in interface ILanguageSettingsBroadcastingProvider
getId
in interface ILanguageSettingsProvider
String getName()
ILanguageSettingsProvider
getName
in interface ILanguageSettingsBroadcastingProvider
getName
in interface ILanguageSettingsProvider
List<ICLanguageSettingEntry> getSettingEntries(ICConfigurationDescription cfgDescription, org.eclipse.core.resources.IResource rc, String languageId)
ILanguageSettingsProvider
ILanguageSettingsProvider.getSettingEntries(ICConfigurationDescription, IResource, String)
will
return cached entries when asked. You can also implement ICListenerAgent
interface to get registered and listen to arbitrary events.getSettingEntries
in interface ILanguageSettingsBroadcastingProvider
getSettingEntries
in interface ILanguageSettingsProvider
cfgDescription
- - configuration description.rc
- - resource such as file or folder.
If null
, the default entries for all resources are returned.languageId
- - language id.
If null
, the default entries for all languages are returned.
(see LanguageManager.getLanguageForFile(org.eclipse.core.resources.IFile, ICConfigurationDescription)
).null
if no settings defined.
The list needs to be a pooled list created by LanguageSettingsStorage.getPooledList(List)
to save memory and avoid deep equality comparisons.void setSettingEntries(ICConfigurationDescription cfgDescription, org.eclipse.core.resources.IResource rc, String languageId, List<? extends ICLanguageSettingEntry> entries)
cfgDescription
- - configuration description.rc
- - resource such as file or folder. If null
the entries are
considered to be being defined as default entries for resources.languageId
- - language id. If null
, then entries are considered
to be defined as default entries for languages.entries
- - language settings entries to set.ILanguageSettingsEditableProvider cloneShallow() throws CloneNotSupportedException
CloneNotSupportedException
- in case clone()
throws the exception.ILanguageSettingsEditableProvider clone() throws CloneNotSupportedException
CloneNotSupportedException
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.