public void editCustomFilter(JiraCustomFilterTreeNode node) {
            if (node == null) {
                return;
            }

            EditCustomFilter ecf = new EditCustomFilter(node.Server, node.Filter, true);
            ecf.ShowDialog();
            if (!ecf.Changed) return;

            node.setFilterName(node.Filter.Name);

            JiraCustomFilter.save();
            reloadIssues();
        }
Exemplo n.º 2
0
 public void solutionEventsBeforeClosing()
 {
     try
     {
         if (jiraWindow == null)
         {
             return;
         }
         JiraServerModel.Instance.save(applicationObject.Solution.Globals);
         JiraCustomFilter.save(applicationObject.Globals, applicationObject.Solution.FullName);
         JiraIssueListModel.Instance.removeAllListeners();
         jiraWindow.Visible = false;
         jiraWindow.Close(vsSaveChanges.vsSaveChangesYes);
         jiraWindow = null;
         RecentlyViewedIssuesModel.Instance.save(applicationObject.Globals, applicationObject.Solution.FullName);
         IssueDetailsWindow.Instance.clearAllIssues();
         IssueDetailsWindow.Instance.WindowInstance.Visible = false;
     }
     catch (Exception e)
     {
         Debug.WriteLine(e);
     }
 }