[ANN] IDEAFileAssociations

http://www.intellij.org/twiki/bin/view/Main/IDEAFileAssociations

This plugin allows to associate arbitrary files with IntelliJ IDEA.

When you click on the file in Explorer or in your favorite file manager
it will be automatically opened in IDEA.

Features:
- Handy installer

- Native windows binary (idea_assoc.exe) which you can execute and pass
it a file name you want to open in IDEA. For manual associations use:
PATH_TO\idea_assoc.exe "%1"

- Native windows associations editor (idea_assoc_editor.exe) for file
types originally supported by IDEA. You can easily set/restore
associations
using this tool, no more manual registry editing needed.

- FileAssociations-bin.jar IDEA plugin originally written by Alex Efimov.
I've just ported it to the current IDEA version (tested on IDEA 4.5.3).
All credits for this part should go to Alex Efimov

- Can open both files which are under the current project directory and
files outside of the project directory

Notes:
Plugin must be installed into IDEA_HOME directory, the actual
location of the extracted files will be:
IDEA_HOME\plugins\FileAssociations\
\bin
idea_assoc.exe
idea_assoc_editor.exe
\jar
FileAssociations-bin.jar

Usage limitations:
1. IDEA must be already running
2. You need to open some project first

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

5 comments

Hello Serge,

SB> - FileAssociations-bin.jar IDEA plugin originally written by Alex
SB> Efimov.

Now this plugin is part of SystemTools. Maybe you just include native loader
into it? ;)

Thanks!
--
Alexey Efimov, Java Developer
Tops BI
http://www.topsbi.ru

0

What about a standalone file associations plug-in based on you recent
file loader code, with native win32 installer and associations editor?

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


Alexey Efimov wrote:

Hello Serge,

SB> - FileAssociations-bin.jar IDEA plugin originally written by Alex
SB> Efimov.

Now this plugin is part of SystemTools. Maybe you just include native
loader into it? ;)

Thanks!
--
Alexey Efimov, Java Developer
Tops BI
http://www.topsbi.ru

0

Hi Serge,

Cool plugin! Why not make it available in the plugin repository?

And sometimes I get the exception below. Here I double clicked (in
WinRAR) on a file contained in a zip file.

Thanks,
Bas


Error message: Error during dispatching of
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=org.phantom.intellij.ide.fas.AbstractFileServer$1@12f543,notifier=null,catchExceptions=false,when=1105355909917]
on sun.awt.windows.WToolkit@a44158
java.lang.IllegalArgumentException: file cannot be null
at
com.intellij.openapi.fileEditor.OpenFileDescriptor.]]>(OpenFileDescriptor.java:46)
at
org.phantom.intellij.ide.fas.ProjectFileServerListener.actionPerformed(ProjectFileServerListener.java:107)
at
org.phantom.intellij.ide.fas.AbstractFileServer$1.run(AbstractFileServer.java:26)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:80)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:109)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:152)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

0

Hello Bas,

Cool plugin! Why not make it available in the plugin repository?


This plug-in contains some native parts and standalone executables and the
easiest way to Install/Uninstall it is the standalone native installer/uninstaller.

And sometimes I get the exception below. Here I double clicked (in
WinRAR) on a file contained in a zip file.


Thanks, I'll look into it.

0

Hi Serge,

Serge Baranov wrote:
>>Cool plugin! Why not make it available in the plugin repository?


This plug-in contains some native parts and standalone executables and the
easiest way to Install/Uninstall it is the standalone native installer/uninstaller.


Ok. Now that I thought about it wouldn't be very useful anyway. Putting it in the repository would also make it available for Linux, Mac OSX and such, but the plugin only works on Windows.
It would be nice if the platform on which the plugin works could be specified in the plugin.xml. I have filed a feature request for this:
http://www.intellij.net/tracker/idea/viewSCR?publicId=41917

>>And sometimes I get the exception below. Here I double clicked (in
>>WinRAR) on a file contained in a zip file.


Thanks, I'll look into it.


IDEA #3177 has some changes in the openapi apparently that broke the IDEAFileAssociantions plugin. See the exception below.

Cheers,
Bas

(Lcom/intellij/openapi/vfs/VirtualFile;)V at org.phantom.intellij.ide.fas.ProjectFileServerListener.actionPerformed(ProjectFileServerListener.java:107) at org.phantom.intellij.ide.fas.AbstractFileServer$1.run(AbstractFileServer.java:26) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:454) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:139) at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:78) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:1) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) ]]>

0

Please sign in to leave a comment.