StyledText textWidget= getTextWidget(); if (textWidget != null && !textWidget.isDisposed()) { Color foregroundColor= textWidget.getForeground(); if (foregroundColor != null && foregroundColor.isDisposed()) textWidget.setForeground(null); Color backgroundColor= textWidget.getBackground(); if (backgroundColor != null && backgroundColor.isDisposed()) textWidget.setBackground(null); }
	public void configure(SourceViewerConfiguration configuration) {		super.configure(configuration);		if (configuration instanceof JavaSourceViewerConfiguration) {			JavaSourceViewerConfiguration javaSVCconfiguration= (JavaSourceViewerConfiguration)configuration;			fOutlinePresenter= javaSVCconfiguration.getOutlinePresenter(this, false);			fOutlinePresenter.install(this);			fStructurePresenter= javaSVCconfiguration.getOutlinePresenter(this, true);			fStructurePresenter.install(this);						fHierarchyPresenter= javaSVCconfiguration.getHierarchyPresenter(this, true);			fHierarchyPresenter.install(this);            		}				if (fPreferenceStore != null) {			fPreferenceStore.addPropertyChangeListener(this);			initializeViewerColors();		}				fIsConfigured= true;	}