public IViewContent[] CreateSecondaryViewContent(IViewContent viewContent, ITextEditorOptions textEditorOptions)
		{
			foreach (IViewContent existingView in viewContent.SecondaryViewContents) {
				if (existingView.GetType() == typeof(FormsDesignerViewContent)) {
					return new IViewContent[0];
				}
			}
			
			IDesignerLoaderProvider loader = new PythonDesignerLoaderProvider();
			IDesignerGenerator generator = new PythonDesignerGenerator(textEditorOptions);
			return new IViewContent[] { new FormsDesignerViewContent(viewContent, loader, generator) };
		}
Exemplo n.º 2
0
        public IViewContent[] CreateSecondaryViewContent(IViewContent viewContent, ITextEditorProperties textEditorProperties)
        {
            foreach (IViewContent existingView in viewContent.SecondaryViewContents)
            {
                if (existingView.GetType() == typeof(FormsDesignerViewContent))
                {
                    return(new IViewContent[0]);
                }
            }

            IDesignerLoaderProvider loader    = new PythonDesignerLoaderProvider();
            IDesignerGenerator      generator = new PythonDesignerGenerator(textEditorProperties);

            return(new IViewContent[] { new FormsDesignerViewContent(viewContent, loader, generator) });
        }
		public void SetUpFixture()
		{
			provider = new PythonDesignerLoaderProvider();
			generator = new PythonDesignerGenerator(null);
		}