final ModuleManager moduleMgr = ModuleManager.getInstance(pProject);
final Module[] modules = moduleMgr.getModules();
for (Module module : modules)
add(new SynchronizeWithModuleAction(module));
moduleMgr.addModuleListener(new ModuleListener() {
public void moduleAdded(Project project, Module module) {
add(new SynchronizeWithModuleAction(module));
}
public void beforeModuleRemoved(Project project, Module module) {