Calling a IDE specific command.

Hi All,

Can I execute any IDE specific command? I mean, can I execute synchronize command? I can get the action object from ActionManager using ID from IdeActions. Just calling action.actionPerformed(new AnActionEvent()) work?

Thanks
Devang Shah

3 comments

Hello Devang,

Can I execute any IDE specific command? I mean, can I execute
synchronize command? I can get the action object from ActionManager
using ID from IdeActions. Just calling action.actionPerformed(new
AnActionEvent()) work?


If you're interested in Synchronize specifically, you don't need to call
it through the action system. Just use VirtualFileManager.refresh().

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


0

Hi,

Synchronize is just an example. What about others ?

Thanks
Devang Shah

0

Hello Devang,

Synchronize is just an example. What about others ?


See http://intellij.net/forums/thread.jspa?threadID=268927&tstart=0

And also http://www.jetbrains.net/confluence/display/IDEADEV/PluginDevelopmentFAQ

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


0

Please sign in to leave a comment.