protected virtual void OnTextAppended(TextEventArgs e)
		{
			if (TextAppended != null) {
				TextAppended(this, e);
			}
		}
		protected virtual void OnTextSet(TextEventArgs e)
		{
			if (TextSet != null) {
				TextSet(this, e);
			}
		}
Beispiel #3
0
		void CategoryTextAppended(object sender, TextEventArgs e)
		{
			EnqueueAppend(new AppendCall((MessageViewCategory)sender, e.Text, false));
		}
		void CategoryTextAppended(object sender, TextEventArgs e)
		{
			lock (appendCallLock) {
				pendingAppendCalls += 1;
				MessageViewCategory cat = (MessageViewCategory)sender;
				if (pendingAppendCalls < 5) {
					WorkbenchSingleton.SafeThreadAsyncCall(new Action<MessageViewCategory, string, string>(AppendText),
					                                       cat, cat.Text, e.Text);
				} else if (pendingAppendCalls == 5) {
					WorkbenchSingleton.SafeThreadAsyncCall(new Action<MessageViewCategory>(AppendTextCombined),
					                                       cat);
				}
			}
		}
		void CategoryTextSet(object sender, TextEventArgs e)
		{
			WorkbenchSingleton.SafeThreadAsyncCall(new Action<MessageViewCategory, string>(SetText),
			                                       (MessageViewCategory)sender, e.Text);
		}
Beispiel #6
0
 void CategoryTextAppended(object sender, TextEventArgs e)
 {
     EnqueueAppend(new AppendCall((MessageViewCategory)sender, e.Text, false));
 }
 void CategoryTextSet(object sender, TextEventArgs e)
 {
     WorkbenchSingleton.SafeThreadAsyncCall(new Action <MessageViewCategory, string>(SetText),
                                            (MessageViewCategory)sender, e.Text);
 }