Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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 ();
		}
Ejemplo n.º 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 ();
		}
Ejemplo n.º 6
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 ();
		}