CJ Blocks Editor

Workspace's main focus is area for block editing, snapped into small sized grid marked with dots. First block that is shown after creation is function signature, which can contain multiple parameters and return type. It's possible to use primitive and composite types created in builder or void for return type.

Open menu with arrow near type name to see block usage, history, generated code or delete block. Also, generated code can be opened with Java or JavaScript Code button and saved with Save button respectively. This can fail, if blocks contain errors, which will be short time blinking after button use.

To connect blocks into unit of business logic use drag and drop using items from left panel split into sections:


Section
Description
General
Expressions, collection editing, entity persist and other.
String
String resource related.
Logic
If/else blocks and logical expressions.
Queries
Creating queries for stored entities.
Loops
While and for each blocks.
Time
Time functions.
Log
Notifications and comment block.
Custom
Blocks to create custom code and use custom types.


Buttons section above workspace area allows using data items in blocks.


Button
Description
Create
Create a local variable with selected type from list in dialog.
Fetch
Fetch system instance object.
Objects
Variable list, types for parameters, procedures to call, views and string resources for string resource related blocks.


Blocks can be disabled using right button menu on block. This prevents generating code from it, like just keeping the block not connected on editing area.

Some blocks contain "wheel" button, which opens options for it. Like adding else section to if, adding placeholder variables in custom code, etc.

Hotkeys

Ctrl + key


Hotkey
Action
cCopy
vPaste
xCut
dDuplicate
zUndo
shift+zRedo

To open source of function call block right click on it and then select "Go to definition"  or simply select it and press ''F3'.

For handy work with variables you have several options:

  • Show variable - locates variable in a tree
  • Get variable - create get an expression for the variable
  • Set variable - create set an expression for the variable