Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1058 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
6 changed files with 193 additions and 9 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
Imports System.Reflection |
||||
Imports System.Runtime.CompilerServices |
||||
|
||||
' Information about this assembly is defined by the following |
||||
' attributes. |
||||
' |
||||
' Change them to the information which is associated with the assembly |
||||
' you compile. |
||||
|
||||
<assembly: AssemblyTitle("Java Script Globals Helper")> |
||||
<assembly: AssemblyDescription("Persists JavaScript variables used by the .NET Framework documentation")> |
||||
<assembly: AssemblyConfiguration("")> |
||||
<assembly: AssemblyCompany("ic#code")> |
||||
<assembly: AssemblyProduct("SharpDevelop")> |
||||
<assembly: AssemblyCopyright("2006 AlphaSierraPapa")> |
||||
<assembly: AssemblyTrademark("")> |
||||
<assembly: AssemblyCulture("")> |
||||
|
||||
' The assembly version has following format : |
||||
' |
||||
' Major.Minor.Build.Revision |
||||
' |
||||
' You can specify all values by your own or you can build default build and revision |
||||
' numbers with the '*' character (the default): |
||||
|
||||
<assembly: AssemblyVersion("1.0.0.1")> |
@ -0,0 +1,65 @@
@@ -0,0 +1,65 @@
|
||||
' <file> |
||||
' <copyright see="prj:///doc/copyright.txt"/> |
||||
' <license see="prj:///doc/license.txt"/> |
||||
' <owner name="John Simons" email="John.SIMONS@dewr.gov.au"/> |
||||
' <version>$Revision$</version> |
||||
' </file> |
||||
|
||||
Imports System.Runtime.InteropServices |
||||
|
||||
<ComVisible(True)> _ |
||||
Public Class JScriptExternal |
||||
Dim jScriptGlobals As New JScriptGlobals |
||||
|
||||
Public ReadOnly Property Globals() As JScriptGlobals |
||||
Get |
||||
Return jScriptGlobals |
||||
End Get |
||||
End Property |
||||
End Class |
||||
|
||||
<ComVisible(True)> _ |
||||
Public Class JScriptGlobals |
||||
Dim variableValueCol As New Dictionary(Of String, String) |
||||
Dim variablePersistCol As New Dictionary(Of String, Boolean) |
||||
|
||||
Public Property VariableValueCollection() As Dictionary(Of String, String) |
||||
Get |
||||
Return variableValueCol |
||||
End Get |
||||
Set |
||||
variableValueCol = value |
||||
End Set |
||||
End Property |
||||
|
||||
Public Property VariablePersistCollection() As Dictionary(Of String, Boolean) |
||||
Get |
||||
Return variablePersistCol |
||||
End Get |
||||
Set |
||||
variablePersistCol = value |
||||
End Set |
||||
End Property |
||||
|
||||
Public Function VariableExists(ByVal key As String) As Boolean |
||||
Return variableValueCol.ContainsKey(key) |
||||
End Function |
||||
|
||||
Public Default Property VariableValue(ByVal key As String) As Object |
||||
Get |
||||
Return variableValueCol(key) |
||||
End Get |
||||
Set |
||||
variableValueCol(key) = value |
||||
End Set |
||||
End Property |
||||
|
||||
Public Property VariablePersists(ByVal key As String) As Boolean |
||||
Get |
||||
Return variablePersistCol(key) |
||||
End Get |
||||
Set |
||||
variablePersistCol(key) = value |
||||
End Set |
||||
End Property |
||||
End Class |
@ -0,0 +1,43 @@
@@ -0,0 +1,43 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<PropertyGroup> |
||||
<OutputType>Library</OutputType> |
||||
<RootNamespace>HtmlHelp2.JScriptGlobals</RootNamespace> |
||||
<AssemblyName>HtmlHelp2JScriptGlobals</AssemblyName> |
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
<MyType>Windows</MyType> |
||||
<ProjectGuid>{E54A5AD2-418D-4A85-BA5E-CD803DE38715}</ProjectGuid> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> |
||||
<OutputPath>bin\Debug\</OutputPath> |
||||
<Optimize>False</Optimize> |
||||
<DefineConstants>DEBUG,TRACE</DefineConstants> |
||||
<DebugSymbols>True</DebugSymbols> |
||||
<DebugType>Full</DebugType> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> |
||||
<OutputPath>bin\Release\</OutputPath> |
||||
<Optimize>True</Optimize> |
||||
<DefineConstants>TRACE</DefineConstants> |
||||
<DebugSymbols>False</DebugSymbols> |
||||
<DebugType>None</DebugType> |
||||
</PropertyGroup> |
||||
<ItemGroup> |
||||
<Reference Include="System" /> |
||||
<Reference Include="System.Data" /> |
||||
<Reference Include="System.Xml" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<Import Include="Microsoft.VisualBasic" /> |
||||
<Import Include="System" /> |
||||
<Import Include="System.Collections" /> |
||||
<Import Include="System.Collections.Generic" /> |
||||
<Import Include="System.Data" /> |
||||
<Import Include="System.Diagnostics" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<Compile Include="Globals.vb" /> |
||||
<Compile Include="AssemblyInfo.vb" /> |
||||
</ItemGroup> |
||||
<Import Project="$(MSBuildBinPath)\Microsoft.VisualBasic.Targets" /> |
||||
</Project> |
Loading…
Reference in new issue