Example #1
0
        protected static void Switch(bool next)
        {
            if (!IdeApp.Preferences.EnableDocumentSwitchDialog)
            {
                return;
            }

            var toplevel = Window.ListToplevels().FirstOrDefault(w => w.HasToplevelFocus)
                           ?? IdeApp.Workbench.RootWindow;
            var sw = new DocumentSwitcher(toplevel, GettextCatalog.GetString("Pads"), next);

            sw.Present();
        }
Example #2
0
        protected static void Switch(bool next)
        {
            if (!IdeApp.Preferences.EnableDocumentSwitchDialog)
            {
                IdeApp.CommandService.DispatchCommand(next? WindowCommands.NextDocument : WindowCommands.PrevDocument);
                return;
            }

            var toplevel = Window.ListToplevels().FirstOrDefault(w => w.HasToplevelFocus)
                           ?? IdeApp.Workbench.RootWindow;
            var sw = new DocumentSwitcher(toplevel, next);

            sw.Present();
        }
Example #3
0
        protected static void Switch(bool next)
        {
            //FIXME: does this option need to exist?
            if (!PropertyService.Get("MonoDevelop.Core.Gui.EnableDocumentSwitchDialog", true))
            {
                IdeApp.CommandService.DispatchCommand(next? WindowCommands.NextWindow : WindowCommands.PrevWindow);
                return;
            }

            var toplevel = Window.ListToplevels().FirstOrDefault(w => w.HasToplevelFocus)
                           ?? IdeApp.Workbench.RootWindow;
            var sw = new DocumentSwitcher(toplevel, next);

            sw.Present();
        }
Example #4
0
		protected static void Switch (bool next)
		{
			//FIXME: does this option need to exist?
			if (!PropertyService.Get ("MonoDevelop.Core.Gui.EnableDocumentSwitchDialog", true)) {
				IdeApp.CommandService.DispatchCommand (next? WindowCommands.NextWindow : WindowCommands.PrevWindow);
				return;
			}
			
			var toplevel = Window.ListToplevels ().FirstOrDefault (w => w.HasToplevelFocus)
				?? IdeApp.Workbench.RootWindow;
			var sw = new DocumentSwitcher (toplevel, next);
			sw.Present ();
		}
Example #5
0
		protected static void Switch (bool next)
		{
			if (!IdeApp.Preferences.EnableDocumentSwitchDialog) {
				IdeApp.CommandService.DispatchCommand (next? WindowCommands.NextDocument : WindowCommands.NextDocument);
				return;
			}
			
			var toplevel = Window.ListToplevels ().FirstOrDefault (w => w.HasToplevelFocus)
				?? IdeApp.Workbench.RootWindow;
			var sw = new DocumentSwitcher (toplevel, next);
			sw.Present ();
		}
		protected static void Switch (bool next)
		{
			if (!IdeApp.Preferences.EnableDocumentSwitchDialog)
				return;

			var toplevel = Window.ListToplevels ().FirstOrDefault (w => w.HasToplevelFocus)
				?? IdeApp.Workbench.RootWindow;
			var sw = new DocumentSwitcher (toplevel, GettextCatalog.GetString ("Pads"), next);
			sw.Present ();
		}