Exemplo n.º 1
0
 public NodeData()
 {
     children = new List<NodeData> ();
     data = new Hashtable ();
     parent = null;
     log = new LogUtil ("NodeData");
 }
Exemplo n.º 2
0
        public TFStore()
        {
            log = new LogUtil ("TFStore");
            log.SetHash (this);

            SolutionProviders = new List<ProviderData> ();
        }
Exemplo n.º 3
0
        public ContextData()
        {
            log = new LogUtil ("ContextData");
            log.SetHash (this);

            documentStore = new DocumentStore ();
            Sessions = new List<TaskSession> ();
        }
Exemplo n.º 4
0
        public CommentWidget2()
        {
            this.Build ();
            log = new LogUtil ("CommentWidget2");

            log.SetHash (this);

            addCommentButton.Clicked += AddCommentButtonClicked;
        }
Exemplo n.º 5
0
        public void ConstructBasicProvider(ProviderData _providerNode)
        {
            providerNode = _providerNode;

            log = new LogUtil ("LOCAL PROVIDER");

            if (providerNode == null) {
                log.ERROR ("Provider is wrong!");
            }
        }
Exemplo n.º 6
0
        public CommentWidget(List<CommentData> _comments)
        {
            log = new LogUtil ("CommentWidget");
            this.Build ();

            log.DEBUG ("Recieved comments with size" + _comments.Count);
            Comments = _comments;
            replyButton.Sensitive = false;
            quoteButton.Sensitive = false;
            PopulateTreeView ();
        }
Exemplo n.º 7
0
        public TaskViewWidget()
        {
            log = new LogUtil ("TaskViewWidget");
            this.Build ();
            TargetCore = new TaskCore ();

            this.ShowAll ();
            nameEntry.Changed += FormContentChanged;
            descriptionTextView.Buffer.Changed += FormContentChanged;
            priorityCombo.Changed += FormContentChanged;
            activateButton.Clicked += ActivateCurrentTask;
        }
Exemplo n.º 8
0
        public TaskView()
        {
            taskViewWidget = new TaskViewWidget ();
            taskViewWidget.TaskViewContent = this;
            log = new LogUtil ("TaskView");

            taskViewWidget.Changed += TaskViewWidgetChanged;

            // not dirty by default
            this.IsDirty = false;

            this.taskViewWidget.Destroyed += TaskViewWidgetDestroyed;
        }
Exemplo n.º 9
0
        public ProviderData()
            : base()
        {
            log = new LogUtil ("ProviderData");
            log.SetHash (this);

            // TODO: This is temporary
            ExtensionNodeList nodes = AddinManager.GetExtensionNodes ("/MonoDevelop/TaskForce/Providers");

            log.INFO("Creating a new provider");
            // take nodes[0] by default
            ProviderExtensionNode node = nodes[0] as ProviderExtensionNode;
            provider = (IProvider)Activator.CreateInstance (node.Class);
        }
Exemplo n.º 10
0
        public static string SerializeObjectToString(object o)
        {
            LogUtil log = new LogUtil ("Util.Serialization");
            // log.DEBUG("Serializing - " + o.ToString());
            //StringBuilder resultString;
            context.IncludeType (o.GetType ());

            XmlDataSerializer ser = new XmlDataSerializer (context);
            //XmlTextWriter xtw = new XmlTextWriter(Console.Out);
            TextWriter serWriter = new StringWriter ();
            XmlTextWriter xtw = new XmlTextWriter (serWriter);

            ser.Serialize (xtw, o);
            string serializedString = serWriter.ToString ();
            //serializedString = serReader.ReadToEnd();

            //log.DEBUG("The serialized string is - " + serializedString);

            return serializedString;
        }
Exemplo n.º 11
0
        public void OnNewCategoryContextMenu()
        {
            LogUtil log = new LogUtil ("ProviderNodeCommandHandler");
            log.DEBUG ("Creating a new category");
            if (this.CurrentNode.DataItem is ProviderData) {
                ProviderData self = this.CurrentNode.DataItem as ProviderData;

                // call the new category view
                self.provider.CreateNewCategory ();
            }
        }
Exemplo n.º 12
0
 public TaskNodeBuilder()
     : base()
 {
     log = new LogUtil ("TaskNodeBuilder");
 }
Exemplo n.º 13
0
        public static void Initialize()
        {
            initialized = true;
            conn = new SqliteConnection ();
            log = new LogUtil ("DBHelper");

            if (System.IO.File.Exists ("tasks.db")) {
                conn.ConnectionString = "Data Source=tasks.db;Synchronous=Off";
                log.INFO ("Opening connection");
                conn.Open ();
            } else {
                log.WARN ("Creating new database");
                conn.ConnectionString = "Data Source=tasks.db;New=True;Synchronous=Off";
                conn.Open ();
                CreateTables ();
            }
        }
Exemplo n.º 14
0
 public CategoryNodeBuilder()
 {
     log = new LogUtil ("CategoryNodeBuilder");
     log.SetHash (this);
 }
Exemplo n.º 15
0
 public ProviderNodeBuilder()
     : base()
 {
     log = new MonoDevelop.TaskForce.Utilities.LogUtil ("ProviderNodeBuilder");
 }
Exemplo n.º 16
0
 public void OnTrigger2Clicked()
 {
     if (this.CurrentNode.DataItem is ProviderData) {
         LogUtil log = new LogUtil ("OnTrigger1Clicked");
         log.INFO ("Attempting to serialize provider");
         ProviderData self = this.CurrentNode.DataItem as ProviderData;
         TaskForceMain tfMain = TaskForceMain.Instance;
         tfMain.TempAddNewProvider (self.serializedString);
     }
 }
Exemplo n.º 17
0
        public virtual void PostDeserializeHook()
        {
            // Re-enable anything that needs to be done in a constructor normally
            log = new LogUtil ("NodeData");

            // Deserialize the CoreDataString into the CoreDataObject
            //CoreDataObject.DeSerialize(CoreDataSerializationString);

            // Free up the memory contained in the CoreDataSerializedString
            //CoreDataSerializationString = null;

            // if there are no children available, make sure that there's a new object for children
            if (children == null) {
                children = new List<NodeData> ();
            } else {
                foreach (NodeData child in children) {
                    child.parent = this;

                    // IMPORTANT: this assumes that the provider has been set already
                    child.provider = this.provider;

                    child.PostDeserializeHook ();
                }
            }
        }
Exemplo n.º 18
0
 public ProviderFrontend()
 {
     log = new LogUtil ("LOCAL PROVIDER");
 }
Exemplo n.º 19
0
 public TaskSolutionPad()
 {
     log = new LogUtil ("TaskSolutionPad");
     TaskForceMain.Instance.TaskPad = this;
 }
Exemplo n.º 20
0
 public BugzillaProviderMain()
 {
     log = new LogUtil("BugzillaProviderMain");
 }
Exemplo n.º 21
0
        public void OnTrigger1Clicked()
        {
            LogUtil log = new LogUtil ("ProviderNodeCommandHandler");
            if (this.CurrentNode.DataItem is ProviderData) {
                log.INFO ("Attempting to serialize provider");
                ProviderData self = this.CurrentNode.DataItem as ProviderData;
                self.SerializeData ();

            }
        }
Exemplo n.º 22
0
 public NewTaskWidget()
 {
     log = new LogUtil ();
     this.Build ();
 }