Archive for the ‘Plugins’ Category

IntelliJ IDEA PSI Viewer

Thursday, November 19th, 2009

If you’re an IntelliJ IDEA plugin developer, you’re surely going to enjoy IntelliJ IDEA PSI Viewer (Tools -> View PSI Structure), which displays internal structure of various files, as they’re interpreted by IntelliJ IDEA. If you’re implementing a new language support, or trying to add some cool new features to what’s already supported — this viewer is what you’re gonna need a lot.

As you see, PSI Viewer is made up of of tree parts:

  • An editor with file content
  • PSI structure view with parent-child tree of its elements
  • Area that displays references of element selected in PSI structure view.

Note that references marked as red resolve to null.

Available since build 92.35

Servlet 3.0 (JSR 315) support in Maia

Tuesday, October 6th, 2009

Maia supports Servlet 3.0 specification (JSR 315). You can now create a Web application without a web.xml descriptor:

Now, configure your servlets and filters with @WebServlet and @WebFilter annotations:

Everything is recognized by IntelliJ IDEA, as well as Web fragment descriptors and static resources packaged in libraries.

You can also use built-in Glassfish v3.0 integration to deploy your applications. Good luck!

Improved Linking of Perforce Jobs

Thursday, August 27th, 2009

In the upcoming Maia EAP you will find a slightly different Commit Changes dialog.

  • Automatic use of JobView filter on search results.
  • Support for Perforce native search query syntax (in an example below we’re looking for Job in any field)

search result

Google App Engine Support

Friday, May 22nd, 2009

If you are developing a Java application for Google App Engine, try Google App Engine Integration plugin for IntelliJ IDEA. It will be bundled with the first Maia EAP, but you can download it right now and use with IntelliJ IDEA 8.x

After plugin is installed, start the New Project wizard, select Google App Engine and specify path to the App Engine SDK (you can download it from here, for example). IntelliJ IDEA will add all required descriptors, libraries and create a run configuration for your application, so you can quickly get started with its development.

User Defined Language Injection

Friday, March 20th, 2009

In IntelliJ IDEA you can quickly configure language injection for XML tags, attributes and Java method parameters and their return values. Just use Inject Language Intention on the code like this:



and it will immediately turn to:




And you get the complete coding assistance, with syntax and error highlighting, completion and navigation.

This functionality is provided by the bundled IntelliLang plugin. The full configuration is available for edit in the Settings dialog (see screenshot below). Default configuration includes various mappings like RegExp language in Pattern.compile(), SQL in JDBC API calls, JPA & Hibernate QL injections and much more.

Enterprise Plugin Repository

Tuesday, March 4th, 2008

It is sometimes the case, you can create plugins you want to preserve for internal use only. With
IntelliJ IDEA
you can maintain your own enterprise repository to share your plugins with team members solely.

To create a repository, we need a Web server, where our plugins will reside, and a descriptor of available plugins (updatePlugins.xml), so IntelliJ IDEA could find them. This file can be located at the same Web server, for instance. By the time we decide to use plugins from the enterprise repository, we’ll only need to specify where this descriptor resides. To do so, open the Settings dialog (Ctrl + Alt + S) and go to Updates. In the Plugin Hosts section click Add and specify path to the updatePlugins.xml.

When creating updatePlugins.xml file for your repository, follow this DTD:
http://plugins.intellij.net/dtd/idea/updatePlugins1.0.dtd, so IntelliJ IDEA would be able to recognize available plugins.
Each plugin entry in this file should contain plugin identifier and URL of the plugin repository. Additionally, we can specify here plugin version. Though, if it is not pointed out in updatePlugins.xml, IntelliJ IDEA will fish it out from the plugin *.jar.

For example, we upload MyPlugin to the Web server where the repository resides. Then we open the updatePlugins.xml and add new plugin entry, like this one:

<plugins>
<plugin id="MyPlugin" url="http://unit:8080/myPlugin.jar" version="1.0"/>
</plugins>



And that’s all we need to do to add the plugin to our repository.

If the whole team uses customized IntelliJ IDEA, you can add the whole list of plugin hosts to the bin/idea.properties under IntelliJ IDEA installation folder. Just open this file and add the following line: -D idea.plugin.hosts=[URL1],[URL2],…[URLn] where [URL1],[URL2],…[URLn] is a comma-delimited list of the URLs to the enterprise repositories.

Once hosts are specified, plugins are automatically updated according to the schedule defined in the Check for updates field of the Updates dialog. Yet, you can update them manually any time you need it. Just open the Updates dialog and click Check now. Update Info dialog box opens showing the list of plugins from all the available enterprise repositories. You can unselect those of them you don’t want to update for some reason.
Don’t forget that updates will take effect after IntelliJ IDEA restart.

Technorati tags: , ,

Winners of IntelliJ IDEAL Plug-in Contest Announced

Friday, February 1st, 2008

Yesterday the results of JetBrains’ annual contest for the best plug-in to IntelliJ IDEA were announced. 7 plug-ins were selected by the jury composed of IntelliJ IDEA development team members. Their respective authors will take away great cash and software prizes. The names of the winners are listed on the dedicated Plug-ins Site. There you can even see a small photo-report from the conclusive meeting of the jury :-)

We would like to congratulate the winners, express our appreciation to the co-sponsors for the generous prizes, and encourage new participants to take part in the next year’s contest.

Great challenge and great benefits!

IntelliJ IDEA+Guice=GuiceyIDEA!

Monday, March 19th, 2007

We’re glad to announce that Sixth and Red River Software have just released the GuiceyIDEA plugin for IntelliJ IDEA. This plugin adds support for Guice, the freshly released Google’s lightweight dependency injection framework for Java 5.

It’s really amazing that Sixth and Red River Software guys managed to develop the plugin in only a week after official Guice release. Very nice job!

Plugin extends Guice support to code completion, highlighting and other coding assistance, plus inspections, refactorings, and intelligent quick-fixes, which makes IntelliJ IDEA the perfect tool for using Guice easy and safe.

GuiceyIDEA enables you to:

  • Find Guice errors at compile-time, instead of run-time
  • Migrate simply between annotation-based binding and explicit binding
  • Quickly generate Guice modules, providers, annotations, and interceptors
  • Manage Guice scopes cleanly and safely

Check the plugin now and stay tuned with future versions that will include:

  • Guice-specific refactorings
  • Wizards for creating and managing Guice bindings
  • Graphing and display of Guice module configurations
  • Automatic download and setup of Guice libraries within IntelliJ IDEA
Technorati tags: , , ,

IntelliJ IDEA on Rails

Thursday, February 22nd, 2007

Ruby plugin for IntelliJ IDEA was recently beefed up with several new features:

  • Quick creating of controller actions with alt+insert
  • Go to action from view template with gutter navigation icon
  • Go to view template from action with gutter navigation icon
  • Ruby and Rails Live Templates



See the Live Rails Demo that shows the latest features and improvements in action.

For more information about features, see the Ruby and Ruby on Rails Development page.

For latest plugin updates, release notes, discussions and bug tracking see the Ruby Plugin Home Page.

Technorati tags: , , , ,

Rolling with Ruby on Rails and IntelliJ IDEA

Thursday, February 1st, 2007

Our team has published the first implementation of Ruby plugin that turns IntelliJ IDEA into a decent IDE for developing Ruby and Ruby on Rails applications.

Despite it’s in beta stage as of yet, it has recevied very positive feedback from Marty Andrews, the professional Ruby developer.

The plugin feature highlights are very impressive as well:

  • Dedicated Ruby and Rails modules with Ruby SDK support
  • Dedicated Rails project view
  • Basic code completion for Ruby keywords
  • Automatic completion for Ruby statements
  • Ruby syntax highlighting with braces matching
  • Ruby code formatting and automatic code styling
  • On-the-fly error checking and code validation
  • Smart structure view for Ruby files
  • Quick Ruby documentation (RDoc) view and lookup
  • Dedicated run configuration for Ruby and Rails with support for scripts
  • Intention actions to automatically create Ruby access modifiers and Rails skeletons and actions
  • Support for Go to class, file and symbol for Ruby files
  • Quick access to Rails generators and Rake tasks through context menus

So, stay tuned with the latest plugin updates that will include smart RHTML completion, extended syntax highlighting, quick fixes and more of other productivity-aimed enhancements.

I have created the Ruby development live demo that shows how to create a sample Ruby application with IntelliJ IDEA. You can watch it or download in archive.

For more information about features, see the Ruby and Ruby on Rails Development page.

For latest plugin updates, release notes, discussions and bug tracking see the Ruby Plugin Home Page.

Technorati tags: , , , ,