예제 #1
0
 protected virtual void OnViewClosed(ViewContentEventArgs e)
 {
     if (ViewClosed != null)
     {
         ViewClosed(this, e);
     }
 }
예제 #2
0
		private void ActiveViewClosed (object source, ViewContentEventArgs e)
		{
			if (e.Content is ReportDesignerView) {
				Console.WriteLine ("Designer closed");
				                   ViewCount --;
			}
		}
 void ViewOpened(object sender, ViewContentEventArgs e)
 {
     if (StandaloneTypeScriptFileOpened(e))
     {
         CreateTypeScriptContext(e.Content);
     }
 }
 static void ViewOpened(object sender, ViewContentEventArgs e)
 {
     if (CodeCoverageOptions.CodeCoverageHighlighted && CodeCoverageResultsExist)
     {
         ShowCodeCoverage(e.Content);
     }
 }
예제 #5
0
 void WorkbenchViewClosed(object sender, ViewContentEventArgs e)
 {
     if (IsStandaloneNAntBuildFile(e.Content.PrimaryFileName))
     {
         treeView.RemoveBuildFile(e.Content.PrimaryFileName);
     }
 }
예제 #6
0
 void ActiveViewClosed(object source, ViewContentEventArgs e)
 {
     if (e.Content is ReportDesignerView)
     {
         Console.WriteLine("Designer closed");
         ViewCount--;
     }
 }
예제 #7
0
        static void ViewContentClosed(object sender, ViewContentEventArgs e)
        {
            if (e.Content is ITextEditorControlProvider)
            {
                TextArea textArea = ((ITextEditorControlProvider)e.Content).TextEditorControl.ActiveTextAreaControl.TextArea;

                textArea.IconBarMargin.MouseDown -= IconBarMouseDown;
                textArea.ToolTipRequest          -= TextAreaToolTipRequest;
                textArea.MouseLeave -= TextAreaMouseLeave;
            }
        }
        void ViewClosed(object sender, ViewContentEventArgs e)
        {
            FileName fileName = e.Content.PrimaryFileName;

            if (TypeScriptParser.IsTypeScriptFileName(fileName))
            {
                if (TypeScriptFileInAnyProject(fileName))
                {
                    UpdateTypeScriptContextWithFileContentFromDisk(fileName);
                }
                else
                {
                    provider.DisposeContext(fileName);
                }
            }
        }
		static void ViewOpened(object sender, ViewContentEventArgs e)
		{
			if (CodeCoverageOptions.CodeCoverageHighlighted && CodeCoverageResultsExist) {
				ShowCodeCoverage(e.Content);
			}
		}
		void ViewClosed(object sender, ViewContentEventArgs e)
		{
			FileName fileName = e.Content.PrimaryFileName;
			if (TypeScriptParser.IsTypeScriptFileName(fileName)) {
				if (TypeScriptFileInAnyProject(fileName)) {
					UpdateTypeScriptContextWithFileContentFromDisk(fileName);
				} else {
					provider.DisposeContext(fileName);
				}
			}
		}
		bool StandaloneTypeScriptFileOpened(ViewContentEventArgs e)
		{
			return StandaloneTypeScriptFileOpened(e.Content.PrimaryFileName);
		}
		void ViewOpened(object sender, ViewContentEventArgs e)
		{
			if (StandaloneTypeScriptFileOpened(e)) {
				CreateTypeScriptContext(e.Content);
			}
		}
예제 #13
0
 void Workbench_ViewOpened(object sender, ViewContentEventArgs e)
 {
     WorkbenchSingleton.Workbench.ViewOpened -= Workbench_ViewOpened;
     //btnPrint_Click(null, null);
 }
예제 #14
0
 void ActiveViewClosed(object source, ViewContentEventArgs e)
 {
 }
예제 #15
0
 static void ViewContentOpened(object sender, ViewContentEventArgs e)
 {
     //Log(e.Content);
     e.Content.WorkbenchWindow.WindowSelected += WorkBenchWindowSelected;
 }
예제 #16
0
		internal void OnViewClosed(ViewContentEventArgs e)
		{
			if (ViewClosed != null) {
				ViewClosed(this, e);
			}
		}
 protected virtual void OnViewOpened(ViewContentEventArgs e)
 {
     if (ViewOpened != null)
     {
         ViewOpened(this, e);
     }
 }
예제 #18
0
		private void ActiveViewClosed (object source, ViewContentEventArgs e)
		{

        }
예제 #19
0
		void WorkbenchViewClosed(object sender, ViewContentEventArgs e)
		{
			if (IsStandaloneNAntBuildFile(e.Content.PrimaryFileName)) {
				treeView.RemoveBuildFile(e.Content.PrimaryFileName);
			}
		}
예제 #20
0
 static void ViewContentClosed(object sender, ViewContentEventArgs e)
 {
     e.Content.WorkbenchWindow.WindowSelected -= WorkBenchWindowSelected;
 }
 bool StandaloneTypeScriptFileOpened(ViewContentEventArgs e)
 {
     return(StandaloneTypeScriptFileOpened(e.Content.PrimaryFileName));
 }