-
Notifications
You must be signed in to change notification settings - Fork 9
MendixCodeManager.js
The description about the MendixCodeManager is a breakdown of the functionality that is inside this file. It shows the connections to other Mendix JavaScript managers and all the brackets managers that make up this file.
We first need to load the following brackets managers.
CommandManager = brackets.getModule('command/CommandManager'),
DocumentManager = brackets.getModule('document/DocumentManager'),
KeyEvent = brackets.getModule("utils/KeyEvent"),
EditorManager = brackets.getModule('editor/EditorManager'),The CommandManager registeres command's that can be used inside brackets. The DocumentManager will get the current document you are editing and can take the content out of it. The KeyEvent is used for the EditorManager to know if and end- user is editing a file. The EditorManager can give back the current active editor in brackets.
After that we load our own managers that provide certain functionalities.
SnippetsManager = require("lib/MendixSnippets");The SnippetsManager gives back a JSON object that contains snippets that replace keywords end- users type in. So if a person would type in for instance "mxdata" and press tab this word will be replaced with the mx.data.get Mendix Client API example.