/**
* This creates and shows a PopupMenu for this component.
*/
public void showPopupMenu(JComponent component, MouseEvent e) {
ConfigurablePopupMenu popupMenu = new ConfigurablePopupMenu();
FolderInfo fi = getMessageInfo().getFolderInfo();
if ( fi != null ) {
if (fi.isOutboxFolder()) {
popupMenu.configureComponent("NewMessageProxy.popupMenu", Pooka.getResources());
} else if (fi instanceof net.suberic.pooka.cache.CachingFolderInfo && ! ((net.suberic.pooka.cache.CachingFolderInfo) fi).getCacheHeadersOnly()) {
popupMenu.configureComponent("MessageProxy.cachingPopupMenu", Pooka.getResources());
} else {
popupMenu.configureComponent("MessageProxy.popupMenu", Pooka.getResources());
}
} else {
popupMenu.configureComponent("MessageProxy.popupMenu", Pooka.getResources());
}
popupMenu.setActive(getActions());
popupMenu.show(component, e.getX(), e.getY());
}