Class BslTextHighlightingJob

  • All Implemented Interfaces:
    org.eclipse.jface.text.ITextListener

    public class BslTextHighlightingJob
    extends Object
    implements org.eclipse.jface.text.ITextListener
    Job to highlight template pattern text. Works as ITextListener
    • Constructor Detail

      • BslTextHighlightingJob

        public BslTextHighlightingJob​(org.eclipse.swt.custom.StyledText styledText)
        Creates new instance of this with given viewer and colors to highlight
        Parameters:
        styledText - The viewer to perform highlighting on, cannot be null
    • Method Detail

      • textChanged

        public void textChanged​(org.eclipse.jface.text.TextEvent event)
        Specified by:
        textChanged in interface org.eclipse.jface.text.ITextListener
      • reschedule

        public void reschedule()
        Reschedule job - Firstly cancel BslTextHighlightingJob.HighlightingJob and BslTextHighlightingJob.FindRegionsJob then schedule with DELAY BslTextHighlightingJob.FindRegionsJob
      • dispose

        public void dispose()
        Dispose colors using in highlighting