//this.add(getPopupExpandCollapseAllMenu());
this.add(getPopupCopyUrlToClipboardMenu());
}
public synchronized void show(Component invoker, int x, int y) {
ExtensionPopupMenu menu = null;
for (int i = 0; i < getComponentCount(); i++) {
try {
if (getComponent(i) != null
&& getComponent(i) instanceof ExtensionPopupMenu) {
menu = (ExtensionPopupMenu) getComponent(i);
menu.setVisible(menu.isEnableForComponent(invoker) && menu.isEnabled());
}
} catch (Exception e) {
e.printStackTrace();
}
}
for (int i = 0; i < itemList.size(); i++) {
menu = itemList.get(i);
try {
if (menu == ExtensionHookMenu.POPUP_MENU_SEPARATOR) {
this.addSeparator();
continue;
}
if (menu.isEnableForComponent(invoker)) {
this.add(menu);
}
} catch (Exception e) {
e.printStackTrace();
}