コード例 #1
0
 public ExceptionCaughtMiniButton(ExceptionCaughtMessage dlg, FilePath file, int line)
 {
     this.dlg = dlg;
     OffsetX  = 6;
     File     = file;
     Line     = line;
 }
コード例 #2
0
        public static void ShowExceptionCaughtDialog()
        {
            var ops = session.EvaluationOptions.Clone();

            ops.MemberEvaluationTimeout = 0;
            ops.EvaluationTimeout       = 0;
            ops.EllipsizeStrings        = false;

            var val = CurrentFrame.GetException(ops);

            if (val != null)
            {
                HideExceptionCaughtDialog();
                exceptionDialog = new ExceptionCaughtMessage(val, CurrentFrame.SourceLocation.FileName, CurrentFrame.SourceLocation.Line, CurrentFrame.SourceLocation.Column);
                if (CurrentFrame.SourceLocation.FileName != null)
                {
                    exceptionDialog.ShowButton();
                }
                else
                {
                    exceptionDialog.ShowDialog();
                }
                exceptionDialog.Closed += (o, args) => exceptionDialog = null;
            }
        }
コード例 #3
0
        public ExceptionCaughtDialog(ExceptionInfo val, ExceptionCaughtMessage msg)
        {
            Title    = GettextCatalog.GetString("Exception Caught");
            ex       = val;
            widget   = new ExceptionCaughtWidget(val);
            this.msg = msg;

            VBox box = new VBox();

            box.Spacing = 6;
            box.PackStart(widget, true, true, 0);
            HButtonBox buttonBox = new HButtonBox();

            buttonBox.BorderWidth = 6;

            var copy = new Gtk.Button(GettextCatalog.GetString("Copy to Clipboard"));

            buttonBox.PackStart(copy, false, false, 0);
            copy.Clicked += HandleCopyClicked;

            var close = new Gtk.Button(GettextCatalog.GetString("Close"));

            buttonBox.PackStart(close, false, false, 0);
            close.Clicked   += (sender, e) => msg.Close();
            close.Activated += (sender, e) => msg.Close();

            box.PackStart(buttonBox, false, false, 0);
            VBox.Add(box);

            DefaultWidth  = 500;
            DefaultHeight = 350;

            box.ShowAll();
            ActionArea.Hide();
        }
コード例 #4
0
 public ExceptionCaughtButton(ExceptionInfo val, ExceptionCaughtMessage dlg)
 {
     this.exception    = val;
     this.dlg          = dlg;
     OffsetX           = 6;
     closeSelImage     = Gdk.Pixbuf.LoadFromResource("MonoDevelop.Close.Selected.png");
     closeSelOverImage = Gdk.Pixbuf.LoadFromResource("MonoDevelop.Close.Selected.Over.png");
 }
コード例 #5
0
 static void HideExceptionCaughtDialog()
 {
     if (exceptionDialog != null)
     {
         exceptionDialog.Dispose();
         exceptionDialog = null;
     }
 }
コード例 #6
0
 public ExceptionCaughtButton(ExceptionInfo val, ExceptionCaughtMessage dlg, FilePath file, int line)
 {
     this.exception    = val;
     this.dlg          = dlg;
     OffsetX           = 6;
     File              = file;
     Line              = line;
     closeSelImage     = ImageService.GetIcon("md-popup-close", IconSize.Menu);
     closeSelOverImage = ImageService.GetIcon("md-popup-close-hover", IconSize.Menu);
 }
コード例 #7
0
		public ExceptionCaughtDialog (ExceptionInfo ex, ExceptionCaughtMessage msg)
		{
			exception = ex;
			message = msg;

			Build ();
			UpdateDisplay ();

			exception.Changed += ExceptionChanged;
		}
コード例 #8
0
        public ExceptionCaughtDialog(ExceptionInfo ex, ExceptionCaughtMessage msg)
        {
            selected = exception = ex;
            message  = msg;

            Build();
            UpdateDisplay();

            exception.Changed += ExceptionChanged;
        }
コード例 #9
0
		public ExceptionCaughtDialog (ExceptionInfo ex, ExceptionCaughtMessage msg)
		{
			this.ApplyTheme ();
			selected = exception = ex;
			message = msg;

			Build ();
			UpdateDisplay ();

			exception.Changed += ExceptionChanged;
		}
コード例 #10
0
		public ExceptionCaughtDialog (ExceptionInfo ex, ExceptionCaughtMessage msg)
			: base (WindowType.Toplevel)
		{
			this.Child = VBox = new VBox ();
			VBox.Show ();
			this.Name = "wizard_dialog";
			this.ApplyTheme ();
			selected = exception = ex;
			message = msg;

			Build ();
			UpdateDisplay ();

			exception.Changed += ExceptionChanged;
		}
コード例 #11
0
        public ExceptionCaughtDialog(ExceptionInfo ex, ExceptionCaughtMessage msg)
            : base(WindowType.Toplevel)
        {
            this.Child = VBox = new VBox();
            VBox.Show();
            this.Name = "wizard_dialog";
            this.ApplyTheme();
            selected = exception = ex;
            message  = msg;

            Build();
            UpdateDisplay();

            exception.Changed += ExceptionChanged;
        }
コード例 #12
0
		public ExceptionCaughtButton (ExceptionInfo val, ExceptionCaughtMessage dlg, FilePath file, int line)
		{
			this.exception = val;
			this.dlg = dlg;
			OffsetX = 6;
			File = file;
			Line = line;
			closeSelImage = ImageService.GetIcon ("md-popup-close", IconSize.Menu);
			closeSelOverImage = ImageService.GetIcon ("md-popup-close-hover", IconSize.Menu);
		}
コード例 #13
0
		public ExceptionCaughtDialog (ExceptionInfo val, ExceptionCaughtMessage msg)
		{
			Title = GettextCatalog.GetString ("Exception Caught");
			ex = val;
			widget = new ExceptionCaughtWidget (val);
			this.msg = msg;

			VBox box = new VBox ();
			box.Spacing = 6;
			box.PackStart (widget, true, true, 0);
			HButtonBox buttonBox = new HButtonBox ();
			buttonBox.BorderWidth = 6;

			var copy = new Gtk.Button (GettextCatalog.GetString ("Copy to Clipboard"));
			buttonBox.PackStart (copy, false, false, 0);
			copy.Clicked += HandleCopyClicked;

			var close = new Gtk.Button (GettextCatalog.GetString ("Close"));
			buttonBox.PackStart (close, false, false, 0);
			close.Clicked += (sender, e) => msg.Close ();
			close.Activated += (sender, e) => msg.Close ();

			box.PackStart (buttonBox, false, false, 0);
			VBox.Add (box);

			DefaultWidth = 500;
			DefaultHeight = 350;

			box.ShowAll ();
			ActionArea.Hide ();
		}
コード例 #14
0
		public ExceptionCaughtMiniButton (ExceptionCaughtMessage dlg)
		{
			this.dlg = dlg;
			OffsetX = 6;
		}
コード例 #15
0
 public ExceptionCaughtMiniButton(ExceptionCaughtMessage dlg)
 {
     this.dlg = dlg;
     OffsetX  = 6;
 }
コード例 #16
0
		public ExceptionCaughtButton (ExceptionInfo val, ExceptionCaughtMessage dlg, FilePath file, int line)
		{
			this.exception = val;
			this.dlg = dlg;
			OffsetX = 6;
			File = file;
			Line = line;
			closeSelImage = Gdk.Pixbuf.LoadFromResource ("MonoDevelop.Close.Selected.png");
			closeSelOverImage = Gdk.Pixbuf.LoadFromResource ("MonoDevelop.Close.Selected.Over.png");
		}
コード例 #17
0
		public static void ShowExceptionCaughtDialog ()
		{
			var ops = session.EvaluationOptions.Clone ();
			ops.MemberEvaluationTimeout = 0;
			ops.EvaluationTimeout = 0;
			ops.EllipsizeStrings = false;
			
			var val = CurrentFrame.GetException (ops);
			if (val != null) {
				HideExceptionCaughtDialog ();
				exceptionDialog = new ExceptionCaughtMessage (val, CurrentFrame.SourceLocation.FileName, CurrentFrame.SourceLocation.Line, CurrentFrame.SourceLocation.Column);
				exceptionDialog.ShowButton ();
				exceptionDialog.Closed += (o, args) => exceptionDialog = null;
			}
		}
コード例 #18
0
		public ExceptionCaughtMiniButton (ExceptionCaughtMessage dlg, FilePath file, int line)
		{
			this.dlg = dlg;
			OffsetX = 6;
			File = file;
			Line = line;
		}
コード例 #19
0
		static void HideExceptionCaughtDialog ()
		{
			if (exceptionDialog != null) {
				exceptionDialog.Dispose ();
				exceptionDialog = null;
			}
		}