}
public void actionPerformed(final ActionEvent e)
{
Object selectedElement = null;
final DocumentContextSelectionModel selectionModel1 = getSelectionModel();
if (selectionModel1 == null)
{
return;
}
if (selectionModel1.getSelectionCount() > 0)
{
selectedElement = selectionModel1.getSelectedElement(0);
}
final Band band;
if (selectedElement instanceof Band)
{
band = (Band) selectedElement;