Java 类com.intellij.util.xml.ui.actions.DefaultAddAction 实例源码

项目:intellij-ce-playground    文件:DomCollectionControl.java   
protected DefaultAddAction createDefaultAction(final String name, final Icon icon, final Type type) {
  return new ControlAddAction(name, name, icon) {
    @Override
    protected Type getElementType() {
      return type;
    }
  };
}
项目:intellij-ce-playground    文件:DomCollectionControl.java   
@Override
protected DefaultAddAction createAddingAction(final AnActionEvent e,
                                              final String name,
                                              final Icon icon,
                                              final Type type,
                                              final DomCollectionChildDescription description) {
  return getDomCollectionControl(e).createDefaultAction(name, icon, type);
}
项目:tools-idea    文件:DomCollectionControl.java   
protected DefaultAddAction createDefaultAction(final String name, final Icon icon, final Type type) {
  return new ControlAddAction(name, name, icon) {
    protected Type getElementType() {
      return type;
    }
  };
}
项目:tools-idea    文件:DomCollectionControl.java   
protected DefaultAddAction createAddingAction(final AnActionEvent e,
                                              final String name,
                                              final Icon icon,
                                              final Type type,
                                              final DomCollectionChildDescription description) {
  return getDomCollectionControl(e).createDefaultAction(name, icon, type);
}
项目:consulo-xml    文件:DomCollectionControl.java   
protected DefaultAddAction createDefaultAction(final String name, final Icon icon, final Type type) {
  return new ControlAddAction(name, name, icon) {
    protected Type getElementType() {
      return type;
    }
  };
}
项目:consulo-xml    文件:DomCollectionControl.java   
protected DefaultAddAction createAddingAction(final AnActionEvent e,
                                              final String name,
                                              final Icon icon,
                                              final Type type,
                                              final DomCollectionChildDescription description) {
  return getDomCollectionControl(e).createDefaultAction(name, icon, type);
}