final JPopupMenu popupMenu = new JPopupMenu();
popupMenu.add(new CopyAction(this));
popupMenu.add(new SelectAllAction(this));
popupMenu.addSeparator();
popupMenu.add(new AddFactoryAction(this));
popupMenu.add(new ChangeSectorAction(this.complex, this, "complex"));
popupMenu.add(new ChangeSunsAction(this));
popupMenu.add(new ChangePricesAction(this));
popupMenu.add(new JCheckBoxMenuItem(new ToggleBaseComplexAction(this)));
SwingUtils.setPopupMenu(this.textPane, popupMenu);