JMenuItem saveOutput = new JMenuItem(Messages.getInstance().getString("TextViewer_Visualize_SaveOutput_JMenuItem_Text"));
if (selectedName != null) {
saveOutput.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
SaveBuffer m_SaveOut = new SaveBuffer(null, panel);
StringBuffer sb = m_history.getNamedBuffer(selectedName);
if (sb != null) {
m_SaveOut.save(sb);
}
}
});
} else {
saveOutput.setEnabled(false);