use of com.intellij.packaging.elements.PackagingElementType in project intellij-community by JetBrains.
the class ShowAddPackagingElementPopupAction method actionPerformed.
@Override
public void actionPerformed(AnActionEvent e) {
final DefaultActionGroup group = new DefaultActionGroup();
for (PackagingElementType type : PackagingElementFactory.getInstance().getAllElementTypes()) {
group.add(new AddNewPackagingElementAction((PackagingElementType<?>) type, myArtifactEditor));
}
final DataContext dataContext = e.getDataContext();
final ListPopup popup = JBPopupFactory.getInstance().createActionGroupPopup("Add", group, dataContext, JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, false);
popup.showInBestPositionFor(dataContext);
}
Aggregations