public <E extends MapElement> JMenuItem buildEditElement(
final MouseEvent event, final E mapElement) {
JMenuItem menuItem = new JMenuItem("Editer");
final PanelMapElementEditor pane = PluginSystem.getInstance()
.getMapElementEditor(mapElement);
menuItem.setEnabled(false);
if (pane != null) {
menuItem.addActionListener(new ActionListener() {