This happens in the XMLPartitionScanner constructor. Of course this is a very simple case because we are simply reusing one of the standard JFace Text classes. For more complex requirements, it may be necessary to provide a custom implementation of IPredicateRule. Make the SourceViewerConfiguration aware of the new content type The whole purpose of adding the new content type is to take advantage of functionality which is introduced to the application through the SourceViewerConfiguration subclass. According to the source documentation, this list latest general knowledge 2014 pdf
the caller which content types 9780201531749 calculus and analytic geometry be configured for the given source viewer". We make our source viewer configuration aware of our new content type by adding 9780201531749 calculus and analytic geometry
to the array of returned configured content types. For example, IPresentationDamager and IPresentationRepairer instances need to be specified for the new content type to allow syntax highlighting, and an IFormattingStrategy geommetry may need to be specified for content-type calchlus formatting.