public void ConstructBasicProvider(ProviderData _providerNode) { providerNode = _providerNode; log = new LogUtil ("LOCAL PROVIDER"); if (providerNode == null) { log.ERROR ("Provider is wrong!"); } }
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"); }
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 (); }
public void NewTaskRole(ProviderData _providerNode) { providerNode = _providerNode; Role = CurrentRole.NewTask; this.IsDirty = true; }
public void EditTaskRole(ProviderData _providerNode, TaskData _target) { providerNode = _providerNode; targetTask = _target; taskViewWidget.PopulateFromTaskData (_target); Role = CurrentRole.EditTask; this.ContentName = _target.Label; this.IsDirty = false; }
/// <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); }
/// <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 (); }