~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/Python/PythonBinding/Project/PythonBinding.addin

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<AddIn name="Python Binding"
 
2
       author="Matt Ward"
 
3
       copyright="prj:///doc/copyright.txt"
 
4
       description="Backend binding for IronPython"
 
5
       addInManagerHidden="preinstalled">
 
6
        
 
7
        <Manifest>
 
8
                <Identity name="ICSharpCode.PythonBinding"/>
 
9
                <Dependency addin="ICSharpCode.FormsDesigner"/>
 
10
        </Manifest>
 
11
        
 
12
        <Runtime>
 
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"/>
 
18
        </Runtime>
 
19
        
 
20
        <Path name="/SharpDevelop/ViewContent/AvalonEdit/SyntaxModes">
 
21
                <SyntaxMode id="Python.SyntaxMode"
 
22
                            extensions=".py"
 
23
                            name="Python"
 
24
                            resource="ICSharpCode.PythonBinding.Resources.Python.xshd"/>
 
25
        </Path>
 
26
        
 
27
        <Path name="/SharpDevelop/Workbench/LanguageBindings">
 
28
                <LanguageBinding id="Python"
 
29
                                 class="ICSharpCode.PythonBinding.PythonLanguageBinding"
 
30
                                 extensions=".py" />
 
31
        </Path>
 
32
        
 
33
        <!-- Add the "Python" entry to the Open File Dialog -->
 
34
        <Path name="/SharpDevelop/Workbench/FileFilter">
 
35
                <FileFilter id="Python"
 
36
                            insertbefore="Resources"
 
37
                            insertafter="Icons"
 
38
                            name="${res:ICSharpCode.PythonBinding.PythonFiles} (*.py)"
 
39
                            extensions="*.py"
 
40
                            mimeType = "text/plain"/>
 
41
        </Path>
 
42
        
 
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"/>
 
50
        </Path>
 
51
        
 
52
        <!-- File templates -->
 
53
        <Path name="/SharpDevelop/BackendBindings/Templates">
 
54
                <Directory id="Python" path="./Templates" />
 
55
        </Path>
 
56
        
 
57
        <!-- Python menu -->
 
58
        <Path name="/SharpDevelop/Workbench/MainMenu">
 
59
                <Condition name="ActiveContentExtension" activeextension=".py">
 
60
                        <MenuItem id="Python"
 
61
                                  insertafter="Search"
 
62
                                  insertbefore="Tools"
 
63
                                  label="&amp;Python"
 
64
                                  type="Menu">
 
65
                                <Condition name="IsProcessRunning" isprocessrunning="False" isdebugging="False" action="Disable">
 
66
                                        <MenuItem id="Run"
 
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"/>
 
76
                                </Condition>
 
77
                                <Condition name="IsProcessRunning" isdebugging="True" action="Disable">
 
78
                                        <MenuItem id="Stop"
 
79
                                                  icon="Icons.16x16.StopProcess"
 
80
                                                  class="ICSharpCode.SharpDevelop.Project.Commands.StopDebuggingCommand"
 
81
                                                  label="${res:XML.MainMenu.DebugMenu.Stop}"/>
 
82
                                </Condition>
 
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}"/>
 
91
                                </Condition>
 
92
                        </MenuItem>
 
93
                </Condition>
 
94
        </Path>
 
95
        
 
96
        <!-- Python parser -->
 
97
        <Path name="/Workspace/Parser">
 
98
                <Parser id="Python"
 
99
                        supportedextensions=".py"
 
100
                        projectfileextension=".pyproj"
 
101
                        class="ICSharpCode.PythonBinding.PythonParser"/>
 
102
        </Path>
 
103
        
 
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" />
 
111
        </Path>
 
112
        
 
113
        <!-- The Python code completion binding -->
 
114
        <Path name="/AddIns/DefaultTextEditor/CodeCompletion">
 
115
                <CodeCompletionBinding id="Python"
 
116
                        extensions=".py"
 
117
                        class="ICSharpCode.PythonBinding.PythonCodeCompletionBinding"/>
 
118
        </Path>
 
119
        
 
120
        <!--
 
121
                Register path to SharpDevelop.Build.Python.targets for the MSBuild engine.
 
122
                SharpDevelop.Build.Python.targets is in the PythonBinding AddIn directory 
 
123
        -->
 
124
        <Path name="/SharpDevelop/MSBuildEngine/AdditionalProperties">
 
125
                <String id="PythonBinPath" text="${AddInPath:ICSharpCode.PythonBinding}"/>
 
126
        </Path>
 
127
        
 
128
        <!-- Options panel -->
 
129
        <Path name="/SharpDevelop/Dialogs/OptionsDialog/ToolsOptions">
 
130
                <OptionPanel id="PythonOptionsPanel"
 
131
                             label="Python"
 
132
                             class="ICSharpCode.PythonBinding.PythonOptionsPanel"/>
 
133
        </Path>
 
134
        
 
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"/>
 
149
        </Path>
 
150
        
 
151
        <!-- Python display binding -->
 
152
        <Path name="/SharpDevelop/Workbench/DisplayBindings">
 
153
                <DisplayBinding id="PythonDisplayBinding"
 
154
                                type="Secondary"
 
155
                                fileNamePattern="\.py$"
 
156
                                languagePattern="^Python$"
 
157
                                class="ICSharpCode.PythonBinding.PythonFormsDesignerDisplayBinding" />
 
158
        </Path>
 
159
        
 
160
        <Path name="/SharpDevelop/Workbench/MainMenu/Tools/ConvertCode">
 
161
                <ComplexCondition action="Disable">
 
162
                        <Or>
 
163
                                <Condition name="ActiveContentExtension" activeextension=".cs"/>
 
164
                                <Condition name="ActiveContentExtension" activeextension=".vb"/>
 
165
                        </Or>
 
166
                        <MenuItem id="ConvertToPython"
 
167
                                  insertafter="CSharp"
 
168
                                  insertbefore="VBNet"
 
169
                                  label="Python"
 
170
                                  class="ICSharpCode.PythonBinding.ConvertToPythonMenuCommand"/>
 
171
                </ComplexCondition>
 
172
        </Path>
 
173
        
 
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"/>
 
179
                </Condition>
 
180
                <Condition name="ProjectActive" activeproject="VBNet">
 
181
                        <MenuItem id="VBNetProjectToPythonProjectConverter"
 
182
                                  label="${res:ICSharpCode.PythonBinding.ConvertVBNetProjectToPythonProject}"
 
183
                                  class="ICSharpCode.PythonBinding.ConvertProjectToPythonProjectCommand"/>
 
184
                </Condition>
 
185
        </Path>
 
186
        
 
187
        <Path name="/SharpDevelop/Workbench/Pads">
 
188
                <Pad id="PythonConsole"
 
189
                     category="Tools"
 
190
                     title="${res:ICSharpCode.PythonBinding.PythonConsole}"
 
191
                     insertbefore="DefinitionView"
 
192
                     icon="PadIcons.Output"
 
193
                     defaultPosition="Bottom, Hidden"
 
194
                     class="ICSharpCode.PythonBinding.PythonConsolePad"/>
 
195
        </Path>
 
196
        
 
197
        <Path name="/Workspace/Icons">
 
198
                <Icon id="PythonFileIcon"
 
199
                      extensions=".py"
 
200
                      resource="Python.ProjectBrowser.File"/>
 
201
                <Icon id="PythonProjectIcon"
 
202
                      language="Python"
 
203
                      resource="Python.ProjectBrowser.Project"/>
 
204
        </Path>
 
205
        
 
206
        <Path name="/SharpDevelop/UnitTesting/TestFrameworks">
 
207
                <TestFramework id="pyunit"
 
208
                               class="ICSharpCode.PythonBinding.PythonTestFramework"
 
209
                               supportedProjects=".pyproj"/>
 
210
        </Path>
 
211
        
 
212
        <Path name="/SharpDevelop/ViewContent/TextEditor/ContextMenu">
 
213
                <Condition name="ActiveContentExtension" activeextension=".py">
 
214
                        <MenuItem id="SendToPythonConsoleSeparator"
 
215
                                  insertafter="Indent"
 
216
                                  type="Separator"/>
 
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}"/>
 
224
                        </Condition>
 
225
                </Condition>
 
226
        </Path>
 
227
</AddIn>