コード例 #1
0
		public bool StoreValue (ObjectValue val)
		{
			try {
				val.SetRawValue (textView.Buffer.Text);
			} catch {
				MonoDevelop.Ide.MessageService.ShowError ("Unable to set text");
			}
			return true;
		}
コード例 #2
0
ファイル: TextVisualizer.cs プロジェクト: Kalnor/monodevelop
		public override bool StoreValue (ObjectValue val)
		{
			switch (val.TypeName) {
			case "char[]":
				val.SetRawValue (textView.Buffer.Text.ToCharArray ());
				return true;
			case "string":
				val.SetRawValue (textView.Buffer.Text);
				return true;
			default:
				return false;
			}
		}
コード例 #3
0
		public override bool StoreValue (ObjectValue val)
		{
			switch (val.TypeName) {
			case "byte[]":
				// HACK: make sure to load the full byte stream...
				long length = hexEditor.HexEditorData.Length;
				hexEditor.HexEditorData.GetBytes (length - 1, 1);

				val.SetRawValue (hexEditor.HexEditorData.Bytes);
				return true;
			default:
				return false;
			}
		}
コード例 #4
0
		public override bool StoreValue (ObjectValue val)
		{
			var options = DebuggingService.DebuggerSession.EvaluationOptions.Clone ();
			options.AllowTargetInvoke = true;

			switch (val.TypeName) {
			case "byte[]":
				// HACK: make sure to load the full byte stream...
				long length = hexEditor.HexEditorData.Length;

				hexEditor.HexEditorData.GetBytes (length - 1, 1);

				val.SetRawValue (hexEditor.HexEditorData.Bytes, options);
				return true;
			default:
				return false;
			}
		}
コード例 #5
0
		public bool StoreValue (ObjectValue val)
		{
			val.SetRawValue (textView.Buffer.Text);
			return true;
		}
コード例 #6
0
		public override bool StoreValue (ObjectValue val)
		{
			var options = DebuggingService.DebuggerSession.EvaluationOptions.Clone ();
			options.AllowTargetInvoke = true;

			switch (val.TypeName) {
			case "char[]":
				val.SetRawValue (textView.Buffer.Text.ToCharArray (), options);
				return true;
			case "string":
				val.SetRawValue (textView.Buffer.Text, options);
				return true;
			default:
				return false;
			}
		}
コード例 #7
0
		public override bool StoreValue (ObjectValue val)
		{
			switch (val.TypeName) {
			case "byte[]":
				val.SetRawValue (hexEditor.HexEditorData.Bytes);
				return true;
			default:
				return false;
			}
		}