Java 类com.intellij.lang.ant.config.actions.TargetActionStub 实例源码

项目:consulo-apache-ant    文件:AntToolwindowRegistrar.java   
@Override
public void projectOpened() {
  final KeymapManagerEx keymapManager = KeymapManagerEx.getInstanceEx();
  final String prefix = AntConfiguration.getActionIdPrefix(myProject);
  final ActionManager actionManager = ActionManager.getInstance();

  for (Keymap keymap : keymapManager.getAllKeymaps()) {
    for (String id : keymap.getActionIds()) {
      if (id.startsWith(prefix) && actionManager.getAction(id) == null) {
        actionManager.registerAction(id, new TargetActionStub(id, myProject));
      }
    }      
  }
}