Archive for April, 2010

Amazon Web Services support in IntelliJ IDEA

Tuesday, April 27th, 2010

Good news for Amazon Web Services (AWS) users. AWS Manager Plugin provides IntelliJ IDEA integration with Amazon Elastic Compute Cloud (EC2) and Amazon Relational Database Service (RDS).

(more…)

Package AIR Installation File

Thursday, April 22nd, 2010

Creating AIR installer (*.air), unsigned intermediate AIR package (*.airi) as well as generating self-signed certificate is possible in IntelliJ IDEA via Tools menu, Flex group, Package AIR Installation File action.

(more…)

IntelliJ IDEA 9.0.2

Wednesday, April 21st, 2010

IntelliJ IDEA 9.0.2, is now available with a significant number of improvements in addition to a great deal of fixes.

Frameworks and technologies support

IDE features, UI & Usability

  • Support for vertical indent guides in editor (Settings | Editor | Appearance | Show vertical indent guides)
  • “Show in Explorer”/”Reveal in Finder” actions in context menu
  • Improved detection of project indexes rebuild necessity on IDE startup
  • Code sample preview for several programming languages (currently implemented for Java, JavaScript, PHP).
  • Possibility to attach source to decompiled class file directly from edit window
  • Support for autoboxing when evaluating expressions in Java debugger
  • UML diff tool
  • New SQL and HQL consoles
  • Inline display (folding) for values of Spring property placeholders
  • Improved support for remote projects (via FTP/SFTP, mount/share)

The update is a strongly recommended upgrade for all users of both Ultimate and Community editions.

Check out the complete list of changes and download IntelliJ IDEA 9.0.2.

Develop with pleasure
-The JetBrains Team

Maven refactorings: Introduce Property

Tuesday, April 20th, 2010

Sometimes while editing pom.xml one needs to define a property and replace the occurrences of some value - artifact version, for example, - with this property. Now you can use the new IDEA  Introduce Property refactoring for these purposes.

To invoke refactoring, select the string that should be replaced and press Ctrl-Alt-V (alternatively, you can use Maven/IntroduceProperty action in the editor context menu). In dialog enter the property name and select the pom to create the property in:

Introduce Property dialog

Introduce Property dialog

Refactoring finds all the occurrences of the selected string in the poms hierarchy and replaces them.

More refactorings will be added soon.

Any comments are appreciated.

JavaScript debugger improvements

Friday, April 16th, 2010

In the latest IDEA 9.0.2 EAP build the new ‘Scripts’ tab is available in JavaScript Debug tool window:

It displays all scripts loaded by Firefox in a tree-like structure and allows to open a script in the editor to set breakpoints in it.

If you want to debug JavaScript code in a JavaEE application you can set the corresponding option in an application server run configuration:

Make sure to check the new demos featuring:

There are more IntelliJ IDEA demos available at http://www.jetbrains.com/idea/training/demos.html

Develop with pleasure!
The JetBrains Team

Native file system watcher for Linux

Thursday, April 15th, 2010

If you’re an IntelliJ user working under Linux you’ve probably seen that boring “Synchronizing files…” spinning icon in a left corner of a status bar. It is there because for an intelligent IDE it is a must to be in the know about any external changes in files it working with - e.g. changes made by VCS, or build tools, or code generators etc. On Windows and Mac OS X native file system watchers used to facilitate this task but on Linux the only option was to recursively scan directory tree. Now you’re welcome to give a try to native file system watcher for Linux.

Prerequisites

File system watcher requires inotify(7) facility. It is in mainstream kernel for more than two years (since 2.6.13, and in glibc since 2.4) so chances are your distribution don’t missing it. The sign of inotify availability in a system is a presence of /proc/sys/fs/inotify/ directory.

Download and setup

File system watcher is a single binary executable (fsnotifier) and can be downloaded directly from our Git repository. It should be named ‘fsnotifier’, placed into bin/ directory of your IDE and granted execution rights. Inotify requires a “watch handle” to be set for each directory it monitors. Unfortunately, the default limit of watch handles may not be enough for reasonably sized projects (e.g. IntelliJ IDEA sources contain 30000+ directories). The current limit can be verified by executing:

cat /proc/sys/fs/inotify/max_user_watches

It can be raised by adding following line to the /etc/sysctl.conf file:

fs.inotify.max_user_watches = 524288

… and issuing this command to apply the change:

sudo sysctl -p

64-bit systems

If your system is strictly 64-bit (i.e. doesn’t contains 32-bit runtime libraries in /lib32 directory) you should download 64-bit version here. Rename downloaded file to “fsnotifier”, rest of setup is same.