final JPopupMenu popup = new DescriptorPopupMenu<TransformerBeanDescriptor<?>>(descriptors) {
private static final long serialVersionUID = 1L;
@Override
protected JMenuItem createMenuItem(final TransformerBeanDescriptor<?> descriptor) {
final DescriptorMenuItem menuItem = new DescriptorMenuItem(descriptor);
menuItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
_analysisJobBuilder.addTransformer(descriptor);
UsageLogger.getInstance().log("Add transformer: " + descriptor.getDisplayName());
}