Browse Source

removed namespace declartions and imports from code

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1034 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Markus Palme 20 years ago
parent
commit
85355ee6dd
  1. 16
      data/templates/file/VBNet/VBNet.Patterns.Singleton.xft
  2. 25
      data/templates/project/VBNet/SharpDevelopAddin.xpt
  3. 14
      data/templates/project/VBNet/SharpDevelopMacro.xpt

16
data/templates/file/VBNet/VBNet.Patterns.Singleton.xft

@ -22,15 +22,10 @@
--> -->
<Files> <Files>
<File name="${FullName}" language="VBNET"><![CDATA[${StandardHeader.VBNET} <File name="${FullName}" language="VBNET"><![CDATA[${StandardHeader.VBNET}
''' <summary>
Imports System '' Description of ${ClassName}.
''' </summary>
Namespace ${StandardNamespace} Public NotInheritable Class ${ClassName}
''' <summary>
'' Description of ${ClassName}.
''' </summary>
Public NotInheritable Class ${ClassName}
Private Shared _instance As ${ClassName} = New ${ClassName}() Private Shared _instance As ${ClassName} = New ${ClassName}()
Public Shared ReadOnly Property Instance As ${ClassName} Public Shared ReadOnly Property Instance As ${ClassName}
@ -38,8 +33,7 @@ Namespace ${StandardNamespace}
Return _instance Return _instance
End Get End Get
End Property End Property
End Class End Class
End Namespace
]]></File> ]]></File>
</Files> </Files>

25
data/templates/project/VBNet/SharpDevelopAddin.xpt

@ -30,6 +30,9 @@
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Windows.Forms" />
</ProjectItems> </ProjectItems>
<Files> <Files>
<File name="${ProjectName}.addin" copyToOutputDirectory="Always"><![CDATA[<AddIn name = "${ProjectName}" <File name="${ProjectName}.addin" copyToOutputDirectory="Always"><![CDATA[<AddIn name = "${ProjectName}"
@ -85,34 +88,29 @@ Imports System
Imports System.Windows.Forms Imports System.Windows.Forms
Imports ICSharpCode.SharpDevelop.Gui.XmlForms Imports ICSharpCode.SharpDevelop.Gui.XmlForms
Namespace ${ProjectName} Public Class MyUserControl
Public Class MyUserControl
Inherits BaseSharpDevelopUserControl Inherits BaseSharpDevelopUserControl
Public Sub New Public Sub New
SetupFromXmlStream(Me.GetType().Assembly.GetManifestResourceStream("test4.Resources.MyUserControl.xfrm")) SetupFromXmlStream(Me.GetType().Assembly.GetManifestResourceStream("${ProjectName}.Resources.MyUserControl.xfrm"))
AddHandler (Me.Get(Of Button)("test")).Click, AddressOf ButtonClick AddHandler (Me.Get(Of Button)("test")).Click, AddressOf ButtonClick
End Sub End Sub
Sub ButtonClick(sender As Object, e As EventArgs) Sub ButtonClick(sender As Object, e As EventArgs)
System.Windows.Forms.MessageBox.Show("The button was clicked!") System.Windows.Forms.MessageBox.Show("The button was clicked!")
End Sub End Sub
End Class End Class
End Namespace
]]> ]]>
</File> </File>
<File name="Src/TestPad.vb"> <File name="Src/TestPad.vb">
<![CDATA[${StandardHeader.VBNET} <![CDATA[${StandardHeader.VBNET}
Imports System
Imports System.Windows.Forms
Imports ICSharpCode.Core Imports ICSharpCode.Core
Imports ICSharpCode.SharpDevelop.Gui Imports ICSharpCode.SharpDevelop.Gui
Namespace ${ProjectName} ''' <summary>
''' <summary> ''' Description of the pad content
''' Description of the pad content ''' </summary>
''' </summary> Public Class TestPad
Public Class TestPad
Inherits AbstractPadContent Inherits AbstractPadContent
Private ctl As MyUserControl Private ctl As MyUserControl
@ -146,8 +144,7 @@ Namespace ${ProjectName}
Public Overrides Sub Dispose() Public Overrides Sub Dispose()
ctl.Dispose() ctl.Dispose()
End Sub End Sub
End Class End Class
End Namespace
]]></File> ]]></File>
<File name="Configuration/AssemblyInfo.vb"> <File name="Configuration/AssemblyInfo.vb">
<![CDATA[Imports System.Reflection <![CDATA[Imports System.Reflection

14
data/templates/project/VBNet/SharpDevelopMacro.xpt

@ -31,6 +31,10 @@
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
<Import Include="System" />
<Import Include="System.Text" />
<Import Include="System.Collections" />
<Import Include="System.Windows.Forms" />
</ProjectItems> </ProjectItems>
<Files> <Files>
@ -53,17 +57,14 @@
<File name="Src/Command.vb"> <File name="Src/Command.vb">
<![CDATA[${StandardHeader.VBNET} <![CDATA[${StandardHeader.VBNET}
Imports System
Imports System.Text
Imports ICSharpCode.Core Imports ICSharpCode.Core
Imports ICSharpCode.SharpDevelop Imports ICSharpCode.SharpDevelop
Imports ICSharpCode.SharpDevelop.Gui Imports ICSharpCode.SharpDevelop.Gui
Imports ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor Imports ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor
Imports ICSharpCode.TextEditor Imports ICSharpCode.TextEditor
Namespace ${StandardNamespace} Public Class ToolCommand1
Public Class ToolCommand1 Inherits AbstractMenuCommand
Inherits AbstractMenuCommand
Public Overrides Sub Run() Public Overrides Sub Run()
'' Here an example that shows how to access the current text document: '' Here an example that shows how to access the current text document:
@ -95,8 +96,7 @@ Namespace ${StandardNamespace}
' Redraw: ' Redraw:
textArea.Refresh() textArea.Refresh()
End Sub End Sub
End Class End Class
End Namespace
]]></File> ]]></File>
<File name="Configuration/AssemblyInfo.vb"> <File name="Configuration/AssemblyInfo.vb">
<![CDATA[${StandardHeader.VBNET} <![CDATA[${StandardHeader.VBNET}

Loading…
Cancel
Save