Exemplo n.º 1
0
        public void ConstructBasicProvider(ProviderData _providerNode)
        {
            providerNode = _providerNode;

            log = new LogUtil ("LOCAL PROVIDER");

            if (providerNode == null) {
                log.ERROR ("Provider is wrong!");
            }
        }
Exemplo n.º 2
0
        public void ConstructBasicProvider(MonoDevelop.TaskForce.Data.ProviderData _providerNode)
        {
            providerNode = _providerNode;

            if (providerNode == null) {
                log.ERROR ("Provider is wrong!");
            }

            providerNode.Label = "Bugzilla Provider";
            this.SeedDataForTesting("bugzilla");
        }
Exemplo n.º 3
0
        public void CreateNewLocalProvider(Solution ActiveSolution)
        {
            ProviderData defaultProvider = new ProviderData ();

            defaultProvider.provider.ConstructBasicProvider (defaultProvider);
            //defaultProvider.Label = "Tasks for " + ActiveSolution.Name;

            // Create some data in the provider first.
            // defaultProvider.provider.SeedDataForTesting("test_seed");
            SolutionProviders.Add (defaultProvider);
            TreeView.AddChild (defaultProvider);

            // update the file
            this.UpdateFile ();
        }
Exemplo n.º 4
0
        public void NewTaskRole(ProviderData _providerNode)
        {
            providerNode = _providerNode;
            Role = CurrentRole.NewTask;

            this.IsDirty = true;
        }
Exemplo n.º 5
0
        public void EditTaskRole(ProviderData _providerNode, TaskData _target)
        {
            providerNode = _providerNode;
            targetTask = _target;

            taskViewWidget.PopulateFromTaskData (_target);
            Role = CurrentRole.EditTask;

            this.ContentName = _target.Label;
            this.IsDirty = false;
        }
Exemplo n.º 6
0
        /// <summary>
        /// Shows the new task GUI and updates the providernode object when finished
        /// </summary>
        /// <param name="providerNode">
        /// A <see cref="ProviderData"/>
        /// </param>
        public void NewTask(ProviderData _providerNode)
        {
            /* NewTaskView is Deprecated
            NewTaskView newTab = new NewTaskView(providerNode);

            IdeApp.Workbench.OpenDocument(newTab, true);
            */
            TaskView taskView = new TaskView ();
            taskView.NewTaskRole (_providerNode);

            IdeApp.Workbench.OpenDocument (taskView, true);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Initializes the provider and populates the node
        /// </summary>
        /// <param name="providerNode">
        /// A <see cref="ProviderData"/>
        /// </param>
        public void InitializeProvider(ProviderData _providerNode)
        {
            providerNode = _providerNode;

            if (providerNode == null) {
                log.ERROR ("Provider is wrong!");
            }
            // Set the options for the provider
            _providerNode.CoreDataObject = new ProviderCore ();

            // initialize the database
            DBHelper.Initialize ();

            // set any required details about the provider
            providerNode.Label = "Local Provider";

            // get an arraylist of all the taskcores
            List<TaskCore> tasks = DBHelper.GetAllTasks ();
            // get all the coredata
            foreach (TaskCore core in tasks) {
                log.INFO ("The core object is: " + core);
                // create a new task node
                TaskData taskNode = new TaskData ();

                // set the core data object
                taskNode.CoreDataObject = core;

                // set the label and icon
                taskNode.Label = core.Title;

                // update the tree without updating gui
                providerNode.AddChildSilent (taskNode);

            }

            // trigger changes in the gui
            providerNode.TriggerUpdate ();
        }