GlobalController controller = GlobalController.SINGLETON;
MainFrame mainFrame = controller.getMainFrame();
ITagsStorage tagsNetworker = controller.getTagsStorage();
final AbstractTagsDialog dialog = getTagsDialog(mainFrame, tagsNetworker);
GlobalModel model = GlobalModel.SINGLETON;
final UserPreferences userPreferences = model.getUserPreferences();
// We call the code in the next EDT event to consume keyboard shortcut ('T')
// if the code is called with it, or otherwise it will appear as a letter 'T'
// in the text field of the dialog once it's opened.
SwingUtilities.invokeLater(new Runnable()