Bindows™ IntelliJ Plugin

Bindows plugin for IntelliJ is no longer supported (this page is provided for reference only).

Bindows Tools - for IntelliJ IDEA 9

We are currently working on a new plugin for the upcoming IntelliJ IDEA 9 called Bindows Tools. It is currently in beta and we encourage you to try it out. You can install it from IntelliJ IDEA's built in plugin manager or manually by downloading it from JetBrains plugin repository here. You will also need to download and install IntelliJ IDEA 9 Ultimate, available here

Usage instructions and features will be made available on this page at a later date.

Bindows Plugin - for IntelliJ IDEA 7

The following information is targeting the older Bindows Plugin version 1.0 beta 6 for use with IntelliJ IDEA 7 only.

IntelliJ IDEA by JetBrains is an intelligent Java IDE. The Bindows plugin for IntelliJ IDEA significantly enhance and expedite the development process. This editor has in itself an impressive array of features tailored specifically for Bindows programmers.

Bindows IntelliJ IDEA Plugin in action

Features

The main features of the plugin:

Release Notes

Detailed release notes for each new version of the plugin can be found at JetBrains plugin repository CLICK here.

Plugin Installation & Setup

  1. Install from IntelliJ IDEA's built in plugin manager.

  2. Go into the setup screen in IntelliJ (Ctrl+Alt+S), then click the blue Bindows icon to enter the settings window for the plugin.

  3. Add a reference to a Bindows distribution directory.

  4. Make sure the server port used by the plugin is not used by some other process on your system.
    The default port used by the plugin is 18088 which is usually free.

  5. If you select a port that is currently in use you will receive a message declaring that so you should choose another.

  6. If you have installed your browsers to non-default locations you need to tell the plugin where they are. Other than that it should work out of the box.

Optionally, if you want to see what is inside the plugin or maybe take a look at the logging library BiLog.js, the plugin Jar file is located at C:\Documents and Settings\homedir\.IntelliJIdea70\config\plugins on Windows.

MUST READ: Enable the Plugin

Adding the Bindows facet to module

When you first install the plugin you will not see any tool windows or icons related to Bindows - this is as normal and as intended.
You must enable the "Bindows facet" for at least one of your modules in your IntelliJ IDEA project. Here are the steps how to do this:

You also have the option to enable the Bindows facet directly when you create a new project in IntelliJ IDEA. Just click the Bindows checkbox at the end of the project creation wizard.

Debugging

Setting up debugging

The plugin has a built in webserver that communicates with the browser via XmlHttpRequests. It's easy to setup.
1. Activate "Debug mode" in the settings window for the plugin.
2. Make sure the option obfuscated/non-obfuscated code matches what you are using. The default option is to use obfuscated code which should be ok if you are using a clean Bindows. (non-obfuscated code is only available in retail versions of Bindows)

Logging to Console Window

This feature allows you to print information from your running application straight to the Bindows console window inside IntelliJ IDEA. Anywhere from your code you can call this method:

BiLog.out("Hello World");

There are several live templates that you can use to add this line of code without having to type it. Press Ctrl+J and start typing "blog".

Dynamic Code Evaluation

This feature allows you to send any JavaScript code to your running Bindows application and have it evaluated during runtime. To enable this feature you must tell your Bindows application to listen for commands from IntelliJ IDEA. Just call this method early in your program:

BiLog.receiveCommands(true);

By default the Bindows application checks to see if there are any new commands to be executed every two seconds. You can change this interval. Have a look inside BiLog.js, located inside the plug-in jar file, for more options. IntelliJ IDEA will buffer up commands and in a queue. They will be removed from the queue only when someone has received them. If you send a whole JavaScript function over to the browser, this will be detected and you get "function evaluated" back as a result.

Considerations

You must use IntelliJ IDEA 7.x. IntelliJ IDEA 8.x is not yet supported but an updated plugin will be released soon.

The plugin does not support InfiView applications at this moment.

This is a beta version. Please contact us at support@bindows.net to suggest features and report problems.

Known Issues in Beta 6

Screencast

Major changes has been made since the screencast was made. The most notable ones are the addition of live templates and also the fact that BiLog.js no longer has to be included manually. It is automatically included in your application when debug mode is active. The latest schema is now also used. Another improvement is that you can change the port number that the plugins internal web server is using. The port number must match in your Bindows application but this is all taken care of dynamically by the plugin when you launch an application. Our new facet support requires you to add the facet to one of your modules as well

We leave the screencast here for those who wish to watch it anyway. It still holds some useful explanations of debugging workflow etc. A new version of the screencast will be created and uploaded here for the final release of the plugin.

Click to launch screencast

This screencast describes Bindows development techniques using the new Bindows plugin for the IntelliJ IDEA development environment.

<<<<< Click to launch screencast