*/
public void run()
{
try
{
final SwingMqlEditor mqlEditor = new SwingMqlEditor(repository);
final String theQueryKey = queryNameTextField.getText();
final DataSetQuery theSelectedQuery = queries.get(theQueryKey);
final String theQueryXml = theSelectedQuery.getQuery();
if (StringUtils.isEmpty(theQueryXml) == false)
{
mqlEditor.setQuery(theQueryXml);
}
mqlEditor.hidePreview();
mqlEditor.show();
if (mqlEditor.getOkClicked())
{
final String theQuery = mqlEditor.getQuery();
if (theQuery != null)
{
theSelectedQuery.setQuery(theQuery);
queryTextArea.setText(theQuery);