How to prevent new file/package actions

Hi all.

We are trying to improve our old clearcase plugin.
Our probelm is simple:
com.intellij.openapi.vfs.VirtualFileAdapter#fileCreated is called after the process of creating file is already began.

We want somehow to add hook, such all new file/package actions will be disabled if certain condition is not satisfactory.

Unlike many other CVS plugins, out plugin is stateless, once user add file, it also added to ClearCase. We have no 'commit project' action.

Thanks
Boaz

Attachment not added (content type not allowed): "att1.html"

0

Hello Boaz,

We are trying to improve our old clearcase plugin.
Our probelm is simple:
com.intellij.openapi.vfs.VirtualFileAdapter#fileCreated is called
after the process of creating file is already began.
We want somehow to add hook, such all new file/package actions will be
disabled if certain condition is not satisfactory.

Unlike many other CVS plugins, out plugin is stateless, once user add
file, it also added to ClearCase. We have no 'commit project' action.


There is no way to do what you want. There are lots of places in IntelliJ
IDEA which create files, not all of them use VFS, and there is no way to
block an arbitraty piece of code from creating a new java.io.File().

By the way, why do you work on the old ClearCase plugin rather than use the
new IDEA version with the new bundled plugin? Our version of ClearCase plugin
is still fully open-source, actually.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Can I have link to this open source ?

Thanks


"Dmitry Jemerov" <yole@jetbrains.com> wrote in message
news:63d8c2cca42158caa34e2809193c@news.jetbrains.com...

Hello Boaz,

>
>> We are trying to improve our old clearcase plugin.
>> Our probelm is simple:
>> com.intellij.openapi.vfs.VirtualFileAdapter#fileCreated is called
>> after the process of creating file is already began.
>> We want somehow to add hook, such all new file/package actions will be
>> disabled if certain condition is not satisfactory.
>>
>> Unlike many other CVS plugins, out plugin is stateless, once user add
>> file, it also added to ClearCase. We have no 'commit project' action.
>

There is no way to do what you want. There are lots of places in IntelliJ
IDEA which create files, not all of them use VFS, and there is no way to
block an arbitraty piece of code from creating a new java.io.File().

>

By the way, why do you work on the old ClearCase plugin rather than use
the new IDEA version with the new bundled plugin? Our version of ClearCase
plugin is still fully open-source, actually.

>

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"

>



0

Hello Boaz,

It's in the usual place. The Subversion repository is at http://svn.jetbrains.org/idea/
The Diana version of the plugin is http://svn.jetbrains.org/idea/Trunk/bundled/ClearCaseIntegration/
And the Selena version is http://svn.jetbrains.org/idea/BRANCHES/SelenaMinor/bundled/ClearCaseIntegration/

Can I have link to this open source ?

Thanks

"Dmitry Jemerov" <yole@jetbrains.com> wrote in message
news:63d8c2cca42158caa34e2809193c@news.jetbrains.com...

>> Hello Boaz,
>>
>>> We are trying to improve our old clearcase plugin.
>>> Our probelm is simple:
>>> com.intellij.openapi.vfs.VirtualFileAdapter#fileCreated is called
>>> after the process of creating file is already began.
>>> We want somehow to add hook, such all new file/package actions will
>>> be
>>> disabled if certain condition is not satisfactory.
>>> Unlike many other CVS plugins, out plugin is stateless, once user
>>> add file, it also added to ClearCase. We have no 'commit project'
>>> action.
>>>
>> There is no way to do what you want. There are lots of places in
>> IntelliJ IDEA which create files, not all of them use VFS, and there
>> is no way to block an arbitraty piece of code from creating a new
>> java.io.File().
>>
>> By the way, why do you work on the old ClearCase plugin rather than
>> use the new IDEA version with the new bundled plugin? Our version of
>> ClearCase plugin is still fully open-source, actually.
>>
>> --
>> Dmitry Jemerov
>> Development Lead
>> JetBrains, Inc.
>> http://www.jetbrains.com/
>> "Develop with Pleasure!"
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

请先登录再写评论。