mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 01:06:01 +02:00
Fix issue with templates view close/reopen and deprecation warning
This commit is contained in:
parent
25bed5bd57
commit
4ab1f9b72f
1 changed files with 2 additions and 2 deletions
|
@ -1570,8 +1570,8 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC
|
|||
} else if (ITemplatesPage.class.equals(required)) {
|
||||
if (fTemplatesPage == null) {
|
||||
fTemplatesPage = new CTemplatesPage(this);
|
||||
return fTemplatesPage;
|
||||
}
|
||||
return fTemplatesPage;
|
||||
}
|
||||
return super.getAdapter(required);
|
||||
}
|
||||
|
@ -3490,7 +3490,7 @@ public class CEditor extends TextEditor implements ISelectionChangedListener, IC
|
|||
}
|
||||
|
||||
stores.add(CUIPlugin.getDefault().getPreferenceStore());
|
||||
stores.add(new ScopedPreferenceStore(new InstanceScope(), CCorePlugin.PLUGIN_ID));
|
||||
stores.add(new ScopedPreferenceStore(InstanceScope.INSTANCE, CCorePlugin.PLUGIN_ID));
|
||||
stores.add(EditorsUI.getPreferenceStore());
|
||||
|
||||
return new ChainedPreferenceStore(stores.toArray(new IPreferenceStore[stores.size()]));
|
||||
|
|
Loading…
Add table
Reference in a new issue