check out when trying to edit read only file

Is there a way to run a specific script\exe when a user tries to edit a read only file?
how do i add this?

3 comments

Hello glasman,

g> Is there a way to run a specific script\exe when a user tries to edit
g> a read only file? how do i add this?

There is no way to configure this through the UI. However, you can write
a version control (or, rather "pseudo version control") plugin to accompish
that. The plugin needs to implement the EditFileProvider interface, and run
the required script/exe from its editFiles() method.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Since i have never developed a plugin for idea, Can you please give an initail guidline how to start developing such plugin.

Appriciate that.
Adi

0

Hello Adi,

g> Since i have never developed a plugin for idea, Can you please give
g> an initail guidline how to start developing such plugin.

You should start with downloading the Plugin Development Package from http://www.jetbrains.com/idea/download/
and reading the file "Plugin Development Readme.html" in that package. The
section "Plugin Development for IDEA" in the IDEA help will also be of use.

You'll need to provide a class derived from AbstractVcs and implementing
the ProjectComponent interface. That class will need to be registered in
the <project-components> section of plugin.xml.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.