Top Method Summary
Options Name Purpose
AfterWriteFileHandler (Object, AfterWriteFileEventArgs) Event handler for the AfterWriteFile event of the BusinessEntityGenerator
FlushUsingBlock (longchar, character, logical) Emits the currently buffered USING block to the result longchar, sorted by namespace and with FROM phrases vertically aligned
LONGCHAR FormatUsingStatements (longchar) Reformats the USING statements in the given source code so that they are sorted alphabetically and their FROM phrases are aligned vertically
LOGICAL IsUsingLine (character) Returns whether the given line is a USING statement
ShutdownInternal () Uninitializes the plug-in instance and unsubscribes from events
StartupInternal () Initializes the plug-in instance and subscribes to required events


Method Detail
Top

AfterWriteFileHandler (Object, AfterWriteFileEventArgs)

Purpose: Event handler for the AfterWriteFile event of the BusinessEntityGenerator
Notes: Reads the file just written by the generator, applies the USING
statement formatting and, if changes were made, writes the file back

Parameters:
sender Progress.Lang.Object
The reference to the object that raised the event
e Consultingwerk.BusinessEntityDesigner.Generator.AfterWriteFileEventArgs
The AfterWriteFileEventArgs with the data for this event
Top

FlushUsingBlock (longchar, character, logical)

Purpose: Emits the currently buffered USING block to the result longchar,
sorted by namespace and with FROM phrases vertically aligned
Notes: Helper for FormatUsingStatements. Called once per contiguous
run of USING lines and clears the buffer after emitting
reset to FALSE after the first line is written

Parameters:
plcResult LONGCHAR
The result longchar being built (appended to)
pcEol CHARACTER
The line ending sequence to use between emitted lines
plFirstLineOut LOGICAL
Flag indicating that no line has been emitted yet;
Top

LONGCHAR FormatUsingStatements (longchar)

Purpose: Reformats the USING statements in the given source code so
that they are sorted alphabetically and their FROM phrases
are aligned vertically
Notes: Each contiguous block of USING lines in the source is sorted
and aligned independently. Lines that are not USING lines
are passed through unchanged. The original line endings
(CRLF or LF) of the source are preserved

Parameters:
plcContent LONGCHAR
The original source code
Returns LONGCHAR
The reformatted source code
Top

LOGICAL IsUsingLine (character)

Purpose: Returns whether the given line is a USING statement
Notes: ABL is case insensitive, so "USING ", "Using " and "using "
all match

Parameters:
pcLine CHARACTER
The line to inspect
Returns LOGICAL
TRUE when the line (after trimming leading whitespace) starts with "using "
Top

ShutdownInternal ()

Purpose: Uninitializes the plug-in instance and unsubscribes from events
Notes: Called by derived classes from their Shutdown method

Top

StartupInternal ()

Purpose: Initializes the plug-in instance and subscribes to required events
Notes: Called by derived classes from their Startup method



©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.05.2026 16:17:32