IDE Plugin Samples
Samples of custom worksheets for the Uniface 10.3 IDE, similar to those included in https://community.uniface.com/display/DOW/Uniface+10.3+IDE+Utilities.
They can be used to explore how IDE add-ins work, or as a basis for adding features or building your own. See the documentation for more information on the IDE Worksheet Plugin API.
The supplied plugins currently include the following:
- View Listing
- Checkstyle
- View Statistics
- Shows component compilation listings in an additional tab.
- A rich text edit box is used to display the listing, so search functionality (Ctrl F) is available.
- Analyzes code and reports standards contraventions.
- The supplied code performs basic changes that entries start with l for local proc. You can also check operation names (e.g. op prefix) in a similar manner (not enabled by default). The logical assignments WS_CHECKSTYLE_ENTRY_PREFIX and WS_CHECKSTYLE_OPERATION_PREFIX can be used to change the prefixes used, or you can modify the defaults and script in operation analyzeCode
- Analyzes and reports lines of code in your component
- Uses the Uniface meta dictionary (uniface\misc\umeta.xml in the Uniface installation), which is included in the versioned code.
- The Uniface WASListener is required to import WorkArea export files into the repository database and subsequently synchronize them: https://github.com/uniface/WASListener
Warning: Do not import this version into a Uniface environment other than version 10.3, as the Uniface meta dictionary will differ. Check git branches for your version.
- The supplied shortcuts assume a default Uniface 10 Community Edition install in C:\Program Files (x86)\Uniface 10 Community Edition. If your Uniface installation differs, edit the shortcuts and change the Uniface installation location (don't forget to change the /adm switch as well) and working folder if needed.
- Edit your assignment file specified in your shortcut with the /asn switch (e.g. .\asn\ide.asn) if needed. Paths to related files are relative to the shortcut working folder, and the supplied assignment file assumes that the WASListener is installed in the Uniface installation folder. If this is not the case, then you will need to change the assignment file accordingly.
- Start the IDE and load the default templates using the supplied shortcut.
- From the main menu select Import WorkArea to import the source code export files into your repository.
- To resolve messages about being unable to find the resources for the plugins within the development environment, Compile the PLUGIN_SAMPLES project using the build shortcut to populate the reources folder and close the IDE.
- Using the Build shortcut, type /all at the command line to compile PLUGIN-SAMPLES.uar.
-
Modify the assignment file of your target development environment (e.g. IDE.asn) as follows:
-
Add PLUGIN-SAMPLES.uar to the [RESOURCES] section, modifying the location as needed. Note: to avoid odd behavior, add the RESOURCES section at the top of your assignment file before including other assignment files with #file:
[RESOURCES] ..\plugin-samples\PLUGIN-SAMPLES.uar
-
Add or modify [LOGICALS] to include the desired plug-ins:
[LOGICALS] IDE_DEFINE_WORKSHEETS = WS_LISTING,WS_STATISTICS,WS_CHECKSTYLE
-
MIT