Namespace: Consultingwerk.Studio.SmartRefactor
Class 
RefactorEditor Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:RefactorEditor
Purpose:Performs multi-line replace on an LONGCHAR based on a
row/column position
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Mar 14 11:52:32 AEST 2020



Top Method Summary
Options Name Purpose
+ INTEGER GetOffset (integer, integer) Determines the file location of the given row/column
+ Insert (character, integer) Inserts a string at the given position
+ ReadFile (character) Reads the given file
+ Replace (character, integer, integer) Replaces a string at the given position
+ LOGICAL SaveFile (character) Saves the LONGCHAR contents to a file

Top Constructor Summary
Options Name Purpose
+ RefactorEditor () Constructor for the RefactorEditor class
+ RefactorEditor (longchar) Constructor for the RefactorEditor class


Method Detail
Top

PUBLIC INTEGER GetOffset (integer, integer)

Purpose: Determines the file location of the given row/column
Notes:

Parameters:
piRow INTEGER
The text row
piColumn INTEGER
The text column
Returns INTEGER
The location in the file / offet
Top

PUBLIC Insert (character, integer)

Purpose: Inserts a string at the given position
Notes:

Parameters:
pcString CHARACTER
The string to insert
piPosition INTEGER
The position to insert at
Top

PUBLIC ReadFile (character)

Purpose: Reads the given file
Notes:

Parameters:
pcFileName CHARACTER
The name of the file to operate on
Top

PUBLIC Replace (character, integer, integer)

Purpose: Replaces a string at the given position
Notes:

Parameters:
pcString CHARACTER
The string to insert
piPosition1 INTEGER
The position to insert at
piPosition2 INTEGER
The position to insert at
Top

PUBLIC LOGICAL SaveFile (character)

Purpose: Saves the LONGCHAR contents to a file
Notes:

Parameters:
pcFileName CHARACTER
The file name to save to
Returns LOGICAL
Logical value indicating the success


Constructor Detail
Top

PUBLIC RefactorEditor ()

Purpose: Constructor for the RefactorEditor class
Notes:

Top

PUBLIC RefactorEditor (longchar)

Purpose: Constructor for the RefactorEditor class
Notes:

Parameters:
plcString LONGCHAR
The string to operate on


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:16:17