mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 356982 - CDT forgets language mappings after the restart
This commit is contained in:
parent
01b24ceba4
commit
0fd03f628b
1 changed files with 2 additions and 2 deletions
|
@ -203,9 +203,9 @@ public class LanguageMappingStore {
|
||||||
public WorkspaceLanguageConfiguration decodeWorkspaceMappings() throws CoreException {
|
public WorkspaceLanguageConfiguration decodeWorkspaceMappings() throws CoreException {
|
||||||
IEclipsePreferences node = InstanceScope.INSTANCE.getNode(CCorePlugin.PLUGIN_ID);
|
IEclipsePreferences node = InstanceScope.INSTANCE.getNode(CCorePlugin.PLUGIN_ID);
|
||||||
IEclipsePreferences defaultNode = DefaultScope.INSTANCE.getNode(CCorePlugin.PLUGIN_ID);
|
IEclipsePreferences defaultNode = DefaultScope.INSTANCE.getNode(CCorePlugin.PLUGIN_ID);
|
||||||
String encodedMappings = defaultNode.get(CCorePreferenceConstants.WORKSPACE_LANGUAGE_MAPPINGS, null);
|
String encodedMappings = node.get(CCorePreferenceConstants.WORKSPACE_LANGUAGE_MAPPINGS, null);
|
||||||
if (encodedMappings == null) {
|
if (encodedMappings == null) {
|
||||||
encodedMappings = node.get(CCorePreferenceConstants.WORKSPACE_LANGUAGE_MAPPINGS, null);
|
encodedMappings = defaultNode.get(CCorePreferenceConstants.WORKSPACE_LANGUAGE_MAPPINGS, null);
|
||||||
}
|
}
|
||||||
WorkspaceLanguageConfiguration config = new WorkspaceLanguageConfiguration();
|
WorkspaceLanguageConfiguration config = new WorkspaceLanguageConfiguration();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue