Reloading of a project

Hi,
Can anyone tell me how to trigger a reload for a project. IDEA itself does it when the language level changes. I found a ReloadProjectAction, but unfortunately I need to pass an AnActionEvent to its actionPerformed: Is there a simpler way?

Cheers,
Robert

P.S.: If there are different ways to do it for IDEA 7 and 8: I'm interested in both.

2 comments
Comment actions Permalink

Hello Robert,

Hi, Can anyone tell me how to trigger a reload for a project. IDEA
itself does it when the language level changes. I found a
ReloadProjectAction, but unfortunately I need to pass an AnActionEvent
to its actionPerformed: Is there a simpler way?


Here's what the action does:
((ProjectManagerImpl) ProjectManager.getInstance()).reloadProject(project);

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


0
Comment actions Permalink

Thanks,

Strange I didn't see reloadProject in ProjectManager when I looked at it as I searched for a way to reload a project.

Cheers,
Robert

Edited by: Robert F. Beeger on Mar 26, 2008 5:58 PM

0

Please sign in to leave a comment.