use of com.intellij.openapi.vfs.encoding.ChangeFileEncodingAction in project intellij-community by JetBrains.
the class EncodingPanel method showPopup.
private void showPopup(@NotNull MouseEvent e) {
if (!actionEnabled) {
return;
}
DataContext dataContext = getContext();
ListPopup popup = new ChangeFileEncodingAction().createPopup(dataContext);
if (popup != null) {
Dimension dimension = popup.getContent().getPreferredSize();
Point at = new Point(0, -dimension.height);
popup.show(new RelativePoint(e.getComponent(), at));
// destroy popup on unexpected project close
Disposer.register(this, popup);
}
}
Aggregations