mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
2004-09-14 Alain Magloire
Pr 73831. Tentative fix * src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencPage.java * src/org/eclipse/cdt/internal/ui/text/util/CColorManager.java
This commit is contained in:
parent
ebecafa648
commit
2aad3cda65
3 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-09-14 Alain Magloire
|
||||||
|
|
||||||
|
Pr 73831. Tentative fix
|
||||||
|
* src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencPage.java
|
||||||
|
* src/org/eclipse/cdt/internal/ui/text/util/CColorManager.java
|
||||||
|
|
||||||
2004-09-14 Alain Magloire
|
2004-09-14 Alain Magloire
|
||||||
|
|
||||||
Define contentTypes for some of the
|
Define contentTypes for some of the
|
||||||
|
|
|
@ -470,8 +470,7 @@ public class CEditorPreferencePage extends PreferencePage implements IWorkbenchP
|
||||||
|
|
||||||
private Control createPreviewer(Composite parent) {
|
private Control createPreviewer(Composite parent) {
|
||||||
|
|
||||||
fCTextTools = new CTextTools(fOverlayStore);
|
fCTextTools = CUIPlugin.getDefault().getTextTools();
|
||||||
|
|
||||||
fPreviewViewer = new SourceViewer(parent, null, SWT.V_SCROLL | SWT.H_SCROLL);
|
fPreviewViewer = new SourceViewer(parent, null, SWT.V_SCROLL | SWT.H_SCROLL);
|
||||||
fPreviewViewer.configure(new CSourceViewerConfiguration(fCTextTools, null));
|
fPreviewViewer.configure(new CSourceViewerConfiguration(fCTextTools, null));
|
||||||
fPreviewViewer.getTextWidget().setFont(JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT));
|
fPreviewViewer.getTextWidget().setFont(JFaceResources.getFontRegistry().get(JFaceResources.TEXT_FONT));
|
||||||
|
|
|
@ -69,7 +69,7 @@ public class CColorManager implements IColorManager, IColorManagerExtension {
|
||||||
* @see IColorManager#dispose
|
* @see IColorManager#dispose
|
||||||
*/
|
*/
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
// nothing to dispose
|
dispose(Display.getCurrent());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue