}
}
public void actionPerformed(final ActionEvent e)
{
final DocumentContextSelectionModel selectionModel = getSelectionModel();
if (selectionModel == null)
{
return;
}
if (selectionModel.getSelectionCount() != 1)
{
return;
}
final Object selectedElement = selectionModel.getSelectedElement(0);
if (selectedElement instanceof Element == false || selectedElement instanceof Section)
{
return;
}
final Element chartElement = (Element) selectedElement;