Skip to content

JavaScript Managers

Gerhard Richard Edens edited this page May 26, 2015 · 11 revisions

Managing the JavaScript Managers

If we take a look at the lib directory we will see the following files in there:

  • main MendixCodeManager.js (Read more...)
  • main MendixCSSManager.js
  • main MendixGitHubManager.js
  • main MendixSnippets.js
  • main MendixWorkshopManager.js
  • main MendixWorkspaceManager.js

What you need to know in general is that these files make up the plugin. All functionality available. And they do that sometimes inside the script but also with the code in the node directory.

The code in the node directory is a backend-layer that makes functions available inside the webbrowser inside the brackets-shell that execute NodeJS functionality. This is an important concept you must understand. We have illustrated this in the following graphic:

assets

main MendixCodeManager.js

The code manager is determining what the open file in brackets actually is. The code manager can recognize Mendix custom widget JavaScript files. Mendix package.xml and properties.xml files.

We are developing the possibility to configure the package.xml and properties.xml files. And have already implemented that a Mendix JavaScript file can be read. All functions that are available inside the script can be seen inside a special panel on the left top inside brackets.

You are even able to click on the function and scroll to this function. The future of this functionality is that we will be able to help you rewrite your custom widget code to the latest and greatest code base. Showing you what is deprecated and suggesting alternative implementations.

This file also makes its possible for you to insert code snippets that are organized in the MendixSnippets.js file.

main MendixCSSManager.js

The CSS manager is a manager that is under development and can provide in the future a tool to manage CSS that you create for your Mendix Custom Widget.

main MendixGitHubManager.js

The GitHub manager is a manager that is used to download and execute the NodeJS code to get the AppStoreWidgetBoilerplate and rename directories, files and content of files.

main MendixSnippets.js

The snippets JavaScript file holds small pieces of code that help you develop Mendix Custom Widgets much faster. They are nice examples of the Mendix Client API.

main MendixWorkshopManager.js

The workshop manager manages the code examples and workshop that is inside the Brackets plugin that can be used inside an organization to help and understand the building of a complex custom widget.

main MendixWorkspaceManager.js

The workspace manager created the interface of the plugin.

Clone this wiki locally