Пример #1
0
 /**
  * @param language
  * @param storage
  * @param textViewer
  */
 public CSourcePresentationCreator(ILanguage language, IStorage storage, ITextViewer textViewer) {
   if (language != null) {
     fViewer = textViewer;
     fPreferenceStore = CUIPlugin.getDefault().getCombinedPreferenceStore();
     final IColorManager colorManager = CDTUITools.getColorManager();
     fSourceViewerConfiguration =
         new CustomCSourceViewerConfiguration(colorManager, fPreferenceStore, language);
     setDocumentPartitioning(fSourceViewerConfiguration.getConfiguredDocumentPartitioning(null));
     initializeDamagerRepairer(storage, colorManager, fPreferenceStore);
     fPreferenceStore.addPropertyChangeListener(this);
   }
 }