本文整理匯總了Java中com.intellij.util.xml.ui.actions.DefaultAddAction類的典型用法代碼示例。如果您正苦於以下問題:Java DefaultAddAction類的具體用法?Java DefaultAddAction怎麽用?Java DefaultAddAction使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DefaultAddAction類屬於com.intellij.util.xml.ui.actions包,在下文中一共展示了DefaultAddAction類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createDefaultAction
import com.intellij.util.xml.ui.actions.DefaultAddAction; //導入依賴的package包/類
protected DefaultAddAction createDefaultAction(final String name, final Icon icon, final Type type) {
return new ControlAddAction(name, name, icon) {
@Override
protected Type getElementType() {
return type;
}
};
}
示例2: createAddingAction
import com.intellij.util.xml.ui.actions.DefaultAddAction; //導入依賴的package包/類
@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);
}
示例3: createDefaultAction
import com.intellij.util.xml.ui.actions.DefaultAddAction; //導入依賴的package包/類
protected DefaultAddAction createDefaultAction(final String name, final Icon icon, final Type type) {
return new ControlAddAction(name, name, icon) {
protected Type getElementType() {
return type;
}
};
}
示例4: createAddingAction
import com.intellij.util.xml.ui.actions.DefaultAddAction; //導入依賴的package包/類
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);
}