Esempio n. 1
0
        void OnTaskJumpto(object o, EventArgs args)
        {
            var rows = view.Selection.GetSelectedRows();

            if (!rows.Any())
            {
                return;
            }

            TreeIter iter, sortedIter;

            if (view.Model.GetIter(out sortedIter, rows [0]))
            {
                iter = filter.ConvertIterToChildIter(sort.ConvertIterToChildIter(sortedIter));
                store.SetValue(iter, DataColumns.Read, true);
                TaskListEntry task = store.GetValue(iter, DataColumns.Task) as TaskListEntry;
                if (task != null)
                {
                    TaskService.ShowStatus(task);
                    task.JumpToPosition();
                    TaskService.Errors.CurrentLocationTask = task;
                    IdeApp.Workbench.ActiveLocationList    = TaskService.Errors;
                }
            }
        }
Esempio n. 2
0
        void OnTaskJumpto(object o, EventArgs args)
        {
            TreeIter  iter;
            TreeModel model;

            if (view.Selection.GetSelected(out model, out iter))
            {
                iter = filter.ConvertIterToChildIter(sort.ConvertIterToChildIter(iter));
                store.SetValue(iter, DataColumns.Read, true);
                TaskListEntry task = store.GetValue(iter, DataColumns.Task) as TaskListEntry;
                if (task != null)
                {
                    TaskService.ShowStatus(task);
                    task.JumpToPosition();
                    TaskService.Errors.CurrentLocationTask = task;
                    IdeApp.Workbench.ActiveLocationList    = TaskService.Errors;
                }
            }
        }