Esempio n. 1
0
 public ExceptionCaughtMiniButton(ExceptionCaughtMessage dlg, FilePath file, int line)
 {
     this.dlg = dlg;
     OffsetX  = 6;
     File     = file;
     Line     = line;
 }
Esempio n. 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;
            }
        }
        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();
        }
Esempio n. 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");
 }
Esempio n. 5
0
 static void HideExceptionCaughtDialog()
 {
     if (exceptionDialog != null)
     {
         exceptionDialog.Dispose();
         exceptionDialog = null;
     }
 }
Esempio n. 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);
 }
		public ExceptionCaughtDialog (ExceptionInfo ex, ExceptionCaughtMessage msg)
		{
			exception = ex;
			message = msg;

			Build ();
			UpdateDisplay ();

			exception.Changed += ExceptionChanged;
		}
Esempio n. 8
0
        public ExceptionCaughtDialog(ExceptionInfo ex, ExceptionCaughtMessage msg)
        {
            selected = exception = ex;
            message  = msg;

            Build();
            UpdateDisplay();

            exception.Changed += ExceptionChanged;
        }
		public ExceptionCaughtDialog (ExceptionInfo ex, ExceptionCaughtMessage msg)
		{
			this.ApplyTheme ();
			selected = exception = ex;
			message = msg;

			Build ();
			UpdateDisplay ();

			exception.Changed += ExceptionChanged;
		}
Esempio n. 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;
		}
Esempio n. 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;
        }
Esempio n. 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);
		}
Esempio n. 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 ();
		}
		public ExceptionCaughtMiniButton (ExceptionCaughtMessage dlg)
		{
			this.dlg = dlg;
			OffsetX = 6;
		}
Esempio n. 15
0
 public ExceptionCaughtMiniButton(ExceptionCaughtMessage dlg)
 {
     this.dlg = dlg;
     OffsetX  = 6;
 }
Esempio n. 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");
		}
Esempio n. 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;
			}
		}
Esempio n. 18
0
		public ExceptionCaughtMiniButton (ExceptionCaughtMessage dlg, FilePath file, int line)
		{
			this.dlg = dlg;
			OffsetX = 6;
			File = file;
			Line = line;
		}
Esempio n. 19
0
		static void HideExceptionCaughtDialog ()
		{
			if (exceptionDialog != null) {
				exceptionDialog.Dispose ();
				exceptionDialog = null;
			}
		}