newTagItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
String newTagName = new CreateTagDialog(new JFrame(), true).display();
if (newTagName != null) {
<BUG>final TagDialog tagDialog = new TagDialog(TagDialog.Type.TAG, "Tag File", null, newTagName, false);
</BUG>
tagDialog.setVisible(true);
TagDialogResult inputResult = tagDialog.getResult();
if (inputResult.isAccept()) {

newTagItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
String newTagName = new CreateTagDialog(new JFrame(), true).display();
if (newTagName != null) {
final TagDialog tagDialog = new TagDialog(TagDialog.Type.TAG, "Tag Source File", null, newTagName, false);
tagDialog.setVisible(true);
TagDialogResult inputResult = tagDialog.getResult();
if (inputResult.isAccept()) {
