1
<AddIn name="Python Binding"
3
copyright="prj:///doc/copyright.txt"
4
description="Backend binding for IronPython"
5
addInManagerHidden="preinstalled">
8
<Identity name="ICSharpCode.PythonBinding"/>
9
<Dependency addin="ICSharpCode.FormsDesigner"/>
13
<Import assembly=":ICSharpCode.SharpDevelop"/>
14
<Import assembly="$ICSharpCode.FormsDesigner/FormsDesigner.dll"/>
15
<Import assembly="$ICSharpCode.UnitTesting/UnitTesting.dll"/>
16
<Import assembly="IronPython.Modules.dll"/>
17
<Import assembly="PythonBinding.dll"/>
20
<Path name="/SharpDevelop/ViewContent/AvalonEdit/SyntaxModes">
21
<SyntaxMode id="Python.SyntaxMode"
24
resource="ICSharpCode.PythonBinding.Resources.Python.xshd"/>
27
<Path name="/SharpDevelop/Workbench/LanguageBindings">
28
<LanguageBinding id="Python"
29
class="ICSharpCode.PythonBinding.PythonLanguageBinding"
33
<!-- Add the "Python" entry to the Open File Dialog -->
34
<Path name="/SharpDevelop/Workbench/FileFilter">
35
<FileFilter id="Python"
36
insertbefore="Resources"
38
name="${res:ICSharpCode.PythonBinding.PythonFiles} (*.py)"
40
mimeType = "text/plain"/>
43
<!-- Add the "Python" entry to the Open Project Dialog -->
44
<Path name="/SharpDevelop/Workbench/Combine/FileFilter">
45
<FileFilter id="PythonProject"
46
insertbefore="AllFiles"
47
name="${res:ICSharpCode.PythonBinding.PythonProjectFiles} (*.pyproj)"
48
class="ICSharpCode.SharpDevelop.Project.LoadProject"
49
extensions="*.pyproj"/>
52
<!-- File templates -->
53
<Path name="/SharpDevelop/BackendBindings/Templates">
54
<Directory id="Python" path="./Templates" />
58
<Path name="/SharpDevelop/Workbench/MainMenu">
59
<Condition name="ActiveContentExtension" activeextension=".py">
65
<Condition name="IsProcessRunning" isprocessrunning="False" isdebugging="False" action="Disable">
67
icon="Icons.16x16.RunProgramIcon"
68
class="ICSharpCode.PythonBinding.RunDebugPythonCommand"
69
label="${res:XML.MainMenu.RunMenu.Run}"
70
shortcut="Control|Shift|R"/>
71
<MenuItem id="RunWithoutDebugger"
72
icon="Icons.16x16.Debug.StartWithoutDebugging"
73
class="ICSharpCode.PythonBinding.RunPythonCommand"
74
label="${res:XML.MainMenu.DebugMenu.RunWithoutDebug}"
75
shortcut="Control|Shift|W"/>
77
<Condition name="IsProcessRunning" isdebugging="True" action="Disable">
79
icon="Icons.16x16.StopProcess"
80
class="ICSharpCode.SharpDevelop.Project.Commands.StopDebuggingCommand"
81
label="${res:XML.MainMenu.DebugMenu.Stop}"/>
83
<MenuItem id="SendToPythonConsoleSeparator" type="Separator"/>
84
<MenuItem id="SendLineToPythonConsole"
85
class="ICSharpCode.PythonBinding.SendLineToPythonConsoleCommand"
86
label="${res:ICSharpCode.PythonBinding.SendLineToPythonConsole}"/>
87
<Condition name="IsTextSelected" action="Disable">
88
<MenuItem id="SendSelectedTextToPythonConsole"
89
class="ICSharpCode.PythonBinding.SendSelectedTextToPythonConsoleCommand"
90
label="${res:ICSharpCode.PythonBinding.SendSelectedTextToPythonConsole}"/>
96
<!-- Python parser -->
97
<Path name="/Workspace/Parser">
99
supportedextensions=".py"
100
projectfileextension=".pyproj"
101
class="ICSharpCode.PythonBinding.PythonParser"/>
104
<!-- Register Python MSBuild project (.pyproj) -->
105
<Path name="/SharpDevelop/Workbench/ProjectBindings">
106
<ProjectBinding id="Python"
107
guid="{FD48973F-F585-4F70-812B-4D0503B36CE9}"
108
supportedextensions=".py"
109
projectfileextension=".pyproj"
110
class="ICSharpCode.PythonBinding.PythonProjectBinding" />
113
<!-- The Python code completion binding -->
114
<Path name="/AddIns/DefaultTextEditor/CodeCompletion">
115
<CodeCompletionBinding id="Python"
117
class="ICSharpCode.PythonBinding.PythonCodeCompletionBinding"/>
121
Register path to SharpDevelop.Build.Python.targets for the MSBuild engine.
122
SharpDevelop.Build.Python.targets is in the PythonBinding AddIn directory
124
<Path name="/SharpDevelop/MSBuildEngine/AdditionalProperties">
125
<String id="PythonBinPath" text="${AddInPath:ICSharpCode.PythonBinding}"/>
128
<!-- Options panel -->
129
<Path name="/SharpDevelop/Dialogs/OptionsDialog/ToolsOptions">
130
<OptionPanel id="PythonOptionsPanel"
132
class="ICSharpCode.PythonBinding.PythonOptionsPanel"/>
135
<!-- Project options panels -->
136
<Path path="/SharpDevelop/BackendBindings/ProjectOptions/Python">
137
<OptionPanel id="Application"
138
label="${res:Dialog.ProjectOptions.ApplicationSettings}"
139
class="ICSharpCode.PythonBinding.ApplicationSettingsPanel"/>
140
<OptionPanel id="BuildEvents"
141
label="${res:Dialog.ProjectOptions.BuildEvents}"
142
class="ICSharpCode.SharpDevelop.Gui.OptionPanels.BuildEvents"/>
143
<OptionPanel id="CompilingOptions"
144
label="${res:Dialog.ProjectOptions.BuildOptions}"
145
class="ICSharpCode.PythonBinding.CompilingOptionsPanel"/>
146
<OptionPanel id="DebugOptions"
147
label="${res:Dialog.ProjectOptions.DebugOptions}"
148
class="ICSharpCode.SharpDevelop.Gui.OptionPanels.DebugOptions"/>
151
<!-- Python display binding -->
152
<Path name="/SharpDevelop/Workbench/DisplayBindings">
153
<DisplayBinding id="PythonDisplayBinding"
155
fileNamePattern="\.py$"
156
languagePattern="^Python$"
157
class="ICSharpCode.PythonBinding.PythonFormsDesignerDisplayBinding" />
160
<Path name="/SharpDevelop/Workbench/MainMenu/Tools/ConvertCode">
161
<ComplexCondition action="Disable">
163
<Condition name="ActiveContentExtension" activeextension=".cs"/>
164
<Condition name="ActiveContentExtension" activeextension=".vb"/>
166
<MenuItem id="ConvertToPython"
170
class="ICSharpCode.PythonBinding.ConvertToPythonMenuCommand"/>
174
<Path name="/SharpDevelop/Pads/ProjectBrowser/ContextMenu/ProjectActions/Convert">
175
<Condition name="ProjectActive" activeproject="C#">
176
<MenuItem id="CSharpProjectToPythonProjectConverter"
177
label="${res:ICSharpCode.PythonBinding.ConvertCSharpProjectToPythonProject}"
178
class="ICSharpCode.PythonBinding.ConvertProjectToPythonProjectCommand"/>
180
<Condition name="ProjectActive" activeproject="VBNet">
181
<MenuItem id="VBNetProjectToPythonProjectConverter"
182
label="${res:ICSharpCode.PythonBinding.ConvertVBNetProjectToPythonProject}"
183
class="ICSharpCode.PythonBinding.ConvertProjectToPythonProjectCommand"/>
187
<Path name="/SharpDevelop/Workbench/Pads">
188
<Pad id="PythonConsole"
190
title="${res:ICSharpCode.PythonBinding.PythonConsole}"
191
insertbefore="DefinitionView"
192
icon="PadIcons.Output"
193
defaultPosition="Bottom, Hidden"
194
class="ICSharpCode.PythonBinding.PythonConsolePad"/>
197
<Path name="/Workspace/Icons">
198
<Icon id="PythonFileIcon"
200
resource="Python.ProjectBrowser.File"/>
201
<Icon id="PythonProjectIcon"
203
resource="Python.ProjectBrowser.Project"/>
206
<Path name="/SharpDevelop/UnitTesting/TestFrameworks">
207
<TestFramework id="pyunit"
208
class="ICSharpCode.PythonBinding.PythonTestFramework"
209
supportedProjects=".pyproj"/>
212
<Path name="/SharpDevelop/ViewContent/TextEditor/ContextMenu">
213
<Condition name="ActiveContentExtension" activeextension=".py">
214
<MenuItem id="SendToPythonConsoleSeparator"
217
<MenuItem id="SendLineToPythonConsole"
218
class="ICSharpCode.PythonBinding.SendLineToPythonConsoleCommand"
219
label="${res:ICSharpCode.PythonBinding.SendLineToPythonConsole}"/>
220
<Condition name="IsTextSelected" action="Disable">
221
<MenuItem id="SendSelectedTextToPythonConsole"
222
class="ICSharpCode.PythonBinding.SendSelectedTextToPythonConsoleCommand"
223
label="${res:ICSharpCode.PythonBinding.SendSelectedTextToPythonConsole}"/>