Community
Participate
Working Groups
ISourceViewer sourceViewer= getSourceViewer();
if (!(sourceViewer instanceof ISourceViewerExtension2)) {
setPreferenceStore(createCombinedPreferenceStore(input));
super.doSetInput(input);
internalDoSetInput(input);
return;
}
((ISourceViewerExtension2)sourceViewer).unconfigure();
// install & register preference store listener
sourceViewer.configure(getSourceViewerConfiguration());
private void internalDoSetInput(IEditorInput input) throws CoreException {
if (fEncodingSupport != null)
fEncodingSupport.reset();