public void Init()
		{
			existingTextEditor = new MockTextEditor();
			MockTextEditorViewContent viewContent = new MockTextEditorViewContent();
			viewContent.TextEditor = existingTextEditor;
			viewContent.SetFileName(@"d:\projects\test\file.wxs");
			
			workbench = new MockWorkbench();
			workbench.ViewContentCollection.Add(new MockViewContent());
			workbench.ViewContentCollection.Add(viewContent);
			
			document = new WixDocument();
			document.FileName = @"d:\Projects\Test\File.wxs";
			
			openEditors = new OpenTextEditors(workbench);
		}
示例#2
0
		public PackageFilesView(WixProject project, 
			IWorkbench workbench, 
			IWixPackageFilesControl packageFilesControl,
			WixTextWriter wixTextWriter)
		{
			this.packageFilesControl = packageFilesControl;
			packageFilesControl.DirtyChanged += delegate { base.RaiseIsDirtyChanged(); };
			SetLocalizedTitle("${res:ICSharpCode.WixBinding.PackageFilesView.Title}");
			this.project = project;
			
			this.workbench = workbench;
			wixDocumentWindow = new WixDocumentWindow(workbench);
			workbench.ActiveViewContentChanged += ActiveViewContentChanged;
			
			this.wixTextWriter = wixTextWriter;
			
			openTextEditors = new OpenTextEditors(workbench);
		}
        public PackageFilesView(WixProject project,
                                IWorkbench workbench,
                                IWixPackageFilesControl packageFilesControl,
                                WixTextWriter wixTextWriter)
        {
            this.packageFilesControl          = packageFilesControl;
            packageFilesControl.DirtyChanged += delegate { base.RaiseIsDirtyChanged(); };
            SetLocalizedTitle("${res:ICSharpCode.WixBinding.PackageFilesView.Title}");
            this.project = project;

            this.workbench    = workbench;
            wixDocumentWindow = new WixDocumentWindow(workbench);
            workbench.ActiveViewContentChanged += ActiveViewContentChanged;

            this.wixTextWriter = wixTextWriter;

            openTextEditors = new OpenTextEditors(workbench);
        }