S24 Creating a simple Text Object and Editor

As soon as you put these code snippets into a plug-in, you will have the following functionality:

  • Objects within a CODESYS project than can hold arbitrary text (Simple Text object)
  • An entry below "Project :: Add Object" for our Simple Text object, with a corresponding dialog (available top-level, and below applications)
  • A text editor with which this object can be edited.
  • Find / Replace functionality.

Please read through the code snippets, they are fairly commented. The Object Manager Concepts will be a good companion documentation for a better understanding.

To get the code running, you will need the following Automation Platform references:

  • Interface component: ApplicationObject
  • Interface component: Core
  • GAC component: Utilities (no matter which version)

S24_SimpleTextEditor_enhanced_with_LMprovider.zip

676 KB