C# Class GUIUtils.Editor.Patterns.Pattern

A pattern to be found in the text, associated to a color
Show file Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Public Methods

Method Description
AdditionalCheck ( string text, DataDictionary.ModelElement instance ) : bool

Performs additional checks on the string provided

Colorize ( SyntaxRichTextBox textBox, DataDictionary.ModelElement instance, int start, string line, List colorizedLocations ) : void

Process a regular expression.

Pattern ( Font baseFont, string regExp ) : System.Collections.Generic

Constructor

TokenizeLine ( DataDictionary.ModelElement instance, string line, List textParts, List colorizedLocations ) : void

Tokenizes a single line

Private Methods

Method Description
CheckLocation ( Match match, IEnumerable colorizedLocations ) : bool

Checks that the matching does not occur in an already colored location

Method Details

AdditionalCheck() public method

Performs additional checks on the string provided
public AdditionalCheck ( string text, DataDictionary.ModelElement instance ) : bool
text string
instance DataDictionary.ModelElement
return bool

Colorize() public method

Process a regular expression.
public Colorize ( SyntaxRichTextBox textBox, DataDictionary.ModelElement instance, int start, string line, List colorizedLocations ) : void
textBox SyntaxRichTextBox
instance DataDictionary.ModelElement
start int The start index of the line
line string The line to be processed
colorizedLocations List The location where coloring already occured
return void

Pattern() public method

Constructor
public Pattern ( Font baseFont, string regExp ) : System.Collections.Generic
baseFont System.Drawing.Font
regExp string
return System.Collections.Generic

TokenizeLine() public method

Tokenizes a single line
public TokenizeLine ( DataDictionary.ModelElement instance, string line, List textParts, List colorizedLocations ) : void
instance DataDictionary.ModelElement
line string
textParts List
colorizedLocations List
return void