incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r527427 - in /incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio: ./ src/ src/main/ src/main/csharp/ src/main/csharp/NMaven/ src/main/csharp/NMaven/VisualStudio/ src/main/csharp/NMaven/VisualStudio/Logging/
Date Wed, 11 Apr 2007 09:19:11 GMT
Author: sisbell
Date: Wed Apr 11 02:19:09 2007
New Revision: 527427

URL: http://svn.apache.org/viewvc?view=rev&rev=527427
Log:
Initial import of the VS specific classes for the IDE.

Added:
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/pom.xml   (with props)
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/csharp/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/csharp/NMaven/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/csharp/NMaven/VisualStudio/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/csharp/NMaven/VisualStudio/Logging/
    incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/csharp/NMaven/VisualStudio/Logging/OutputWindowPaneHandler.cs

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/pom.xml
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/pom.xml?view=auto&rev=527427
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/pom.xml (added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/pom.xml Wed Apr 11 02:19:09
2007
@@ -0,0 +1,27 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0">
+  <parent>
+    <groupId>NMaven</groupId>
+    <version>0.14</version>
+    <artifactId>NMaven.Assemblies</artifactId>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>NMaven.VisualStudio</groupId>
+  <artifactId>NMaven.VisualStudio</artifactId>
+  <packaging>library</packaging>
+  <version>0.14</version>
+  <name>NMaven.VisualStudio</name>
+  <dependencies>
+    <dependency>
+      <groupId>NMaven.Logging</groupId>
+      <artifactId>NMaven.Logging</artifactId>
+      <version>0.14</version>
+      <type>library</type>
+    </dependency>
+    <dependency>
+      <groupId>EnvDTE</groupId>
+      <artifactId>EnvDTE</artifactId>
+      <type>gac</type>
+      <version>8.0.0.0__b03f5f7f11d50a3a</version>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Propchange: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/csharp/NMaven/VisualStudio/Logging/OutputWindowPaneHandler.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/csharp/NMaven/VisualStudio/Logging/OutputWindowPaneHandler.cs?view=auto&rev=527427
==============================================================================
--- incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/csharp/NMaven/VisualStudio/Logging/OutputWindowPaneHandler.cs
(added)
+++ incubator/nmaven/branches/SI_XPT/assemblies/NMaven.VisualStudio/src/main/csharp/NMaven/VisualStudio/Logging/OutputWindowPaneHandler.cs
Wed Apr 11 02:19:09 2007
@@ -0,0 +1,48 @@
+using System;
+using System.Runtime.CompilerServices;
+using EnvDTE;
+using NMaven.Logging;
+
+namespace NMaven.VisualStudio.Logging
+{
+	/// <summary>
+	/// Description of OutputWindowPaneHandler.
+	/// </summary>
+	public class OutputWindowPaneHandler : IHandler
+	{
+		private Level level;
+		
+		private OutputWindowPane outputWindowPane;
+				
+		public OutputWindowPaneHandler()
+		{
+			this.level = Level.INFO;
+		}
+		
+		public void SetOutputWindowPaneHandler(OutputWindowPane outputWindowPane)
+		{
+			this.outputWindowPane = outputWindowPane;	
+		}
+		
+		[MethodImpl(MethodImplOptions.Synchronized)]
+		public void publish(LogRecord record)
+		{
+			if(record.GetLevel().GetValue() >= level.GetValue())
+			{
+				outputWindowPane.OutputString(record.GetMessage());
+			}
+		}
+		
+		[MethodImpl(MethodImplOptions.Synchronized)]
+		public void SetLevel(Level level)
+		{
+			this.level = level;
+		}
+		
+		[MethodImpl(MethodImplOptions.Synchronized)]
+		public Level GetLevel()
+		{
+			return level;
+		}
+	}		
+}



Mime
View raw message