|
|
|
|
@ -19,33 +19,34 @@
@@ -19,33 +19,34 @@
|
|
|
|
|
|
|
|
|
|
<Path name="/SharpDevelop/ViewContent/AvalonEdit/SyntaxModes"> |
|
|
|
|
<SyntaxMode id="Python.SyntaxMode" |
|
|
|
|
extensions=".py" |
|
|
|
|
name="Python" |
|
|
|
|
resource="ICSharpCode.PythonBinding.Resources.Python.xshd"/> |
|
|
|
|
extensions=".py" |
|
|
|
|
name="Python" |
|
|
|
|
resource="ICSharpCode.PythonBinding.Resources.Python.xshd"/> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<Path name="/SharpDevelop/Workbench/LanguageBindings"> |
|
|
|
|
<LanguageBinding id="Python" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonLanguageBinding" |
|
|
|
|
extensions=".py" /> |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonLanguageBinding" |
|
|
|
|
extensions=".py" /> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<!-- Add the "Python" entry to the Open File Dialog --> |
|
|
|
|
<Path name="/SharpDevelop/Workbench/FileFilter"> |
|
|
|
|
<FileFilter id="Python" |
|
|
|
|
insertbefore="Resources" |
|
|
|
|
insertafter="Icons" |
|
|
|
|
name="${res:ICSharpCode.PythonBinding.PythonFiles} (*.py)" |
|
|
|
|
extensions="*.py"/> |
|
|
|
|
insertbefore="Resources" |
|
|
|
|
insertafter="Icons" |
|
|
|
|
name="${res:ICSharpCode.PythonBinding.PythonFiles} (*.py)" |
|
|
|
|
extensions="*.py" |
|
|
|
|
mimeType = "text/plain"/> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<!-- Add the "Python" entry to the Open Project Dialog --> |
|
|
|
|
<Path name="/SharpDevelop/Workbench/Combine/FileFilter"> |
|
|
|
|
<FileFilter id="PythonProject" |
|
|
|
|
insertbefore="AllFiles" |
|
|
|
|
name="${res:ICSharpCode.PythonBinding.PythonProjectFiles} (*.pyproj)" |
|
|
|
|
class="ICSharpCode.SharpDevelop.Project.LoadProject" |
|
|
|
|
extensions="*.pyproj"/> |
|
|
|
|
insertbefore="AllFiles" |
|
|
|
|
name="${res:ICSharpCode.PythonBinding.PythonProjectFiles} (*.pyproj)" |
|
|
|
|
class="ICSharpCode.SharpDevelop.Project.LoadProject" |
|
|
|
|
extensions="*.pyproj"/> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<!-- File templates --> |
|
|
|
|
@ -57,36 +58,36 @@
@@ -57,36 +58,36 @@
|
|
|
|
|
<Path name="/SharpDevelop/Workbench/MainMenu"> |
|
|
|
|
<Condition name="ActiveContentExtension" activeextension=".py"> |
|
|
|
|
<MenuItem id="Python" |
|
|
|
|
insertafter="Search" |
|
|
|
|
insertbefore="Tools" |
|
|
|
|
label="&Python" |
|
|
|
|
type="Menu"> |
|
|
|
|
insertafter="Search" |
|
|
|
|
insertbefore="Tools" |
|
|
|
|
label="&Python" |
|
|
|
|
type="Menu"> |
|
|
|
|
<Condition name="IsProcessRunning" isprocessrunning="False" isdebugging="False" action="Disable"> |
|
|
|
|
<MenuItem id="Run" |
|
|
|
|
icon="Icons.16x16.RunProgramIcon" |
|
|
|
|
class="ICSharpCode.PythonBinding.RunDebugPythonCommand" |
|
|
|
|
label="${res:XML.MainMenu.RunMenu.Run}" |
|
|
|
|
shortcut="Control|Shift|R"/> |
|
|
|
|
icon="Icons.16x16.RunProgramIcon" |
|
|
|
|
class="ICSharpCode.PythonBinding.RunDebugPythonCommand" |
|
|
|
|
label="${res:XML.MainMenu.RunMenu.Run}" |
|
|
|
|
shortcut="Control|Shift|R"/> |
|
|
|
|
<MenuItem id="RunWithoutDebugger" |
|
|
|
|
icon="Icons.16x16.Debug.StartWithoutDebugging" |
|
|
|
|
class="ICSharpCode.PythonBinding.RunPythonCommand" |
|
|
|
|
label="${res:XML.MainMenu.DebugMenu.RunWithoutDebug}" |
|
|
|
|
shortcut="Control|Shift|W"/> |
|
|
|
|
icon="Icons.16x16.Debug.StartWithoutDebugging" |
|
|
|
|
class="ICSharpCode.PythonBinding.RunPythonCommand" |
|
|
|
|
label="${res:XML.MainMenu.DebugMenu.RunWithoutDebug}" |
|
|
|
|
shortcut="Control|Shift|W"/> |
|
|
|
|
</Condition> |
|
|
|
|
<Condition name="IsProcessRunning" isdebugging="True" action="Disable"> |
|
|
|
|
<MenuItem id="Stop" |
|
|
|
|
icon="Icons.16x16.StopProcess" |
|
|
|
|
class="ICSharpCode.SharpDevelop.Project.Commands.StopDebuggingCommand" |
|
|
|
|
label="${res:XML.MainMenu.DebugMenu.Stop}"/> |
|
|
|
|
icon="Icons.16x16.StopProcess" |
|
|
|
|
class="ICSharpCode.SharpDevelop.Project.Commands.StopDebuggingCommand" |
|
|
|
|
label="${res:XML.MainMenu.DebugMenu.Stop}"/> |
|
|
|
|
</Condition> |
|
|
|
|
<MenuItem id="SendToPythonConsoleSeparator" type="Separator"/> |
|
|
|
|
<MenuItem id="SendLineToPythonConsole" |
|
|
|
|
class="ICSharpCode.PythonBinding.SendLineToPythonConsoleCommand" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.SendLineToPythonConsole}"/> |
|
|
|
|
class="ICSharpCode.PythonBinding.SendLineToPythonConsoleCommand" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.SendLineToPythonConsole}"/> |
|
|
|
|
<Condition name="IsTextSelected" action="Disable"> |
|
|
|
|
<MenuItem id="SendSelectedTextToPythonConsole" |
|
|
|
|
class="ICSharpCode.PythonBinding.SendSelectedTextToPythonConsoleCommand" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.SendSelectedTextToPythonConsole}"/> |
|
|
|
|
class="ICSharpCode.PythonBinding.SendSelectedTextToPythonConsoleCommand" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.SendSelectedTextToPythonConsole}"/> |
|
|
|
|
</Condition> |
|
|
|
|
</MenuItem> |
|
|
|
|
</Condition> |
|
|
|
|
@ -95,18 +96,18 @@
@@ -95,18 +96,18 @@
|
|
|
|
|
<!-- Python parser --> |
|
|
|
|
<Path name="/Workspace/Parser"> |
|
|
|
|
<Parser id="Python" |
|
|
|
|
supportedextensions=".py" |
|
|
|
|
projectfileextension=".pyproj" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonParser"/> |
|
|
|
|
supportedextensions=".py" |
|
|
|
|
projectfileextension=".pyproj" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonParser"/> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<!-- Register Python MSBuild project (.pyproj) --> |
|
|
|
|
<Path name="/SharpDevelop/Workbench/ProjectBindings"> |
|
|
|
|
<ProjectBinding id="Python" |
|
|
|
|
guid="{FD48973F-F585-4F70-812B-4D0503B36CE9}" |
|
|
|
|
supportedextensions=".py" |
|
|
|
|
projectfileextension=".pyproj" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonProjectBinding" /> |
|
|
|
|
guid="{FD48973F-F585-4F70-812B-4D0503B36CE9}" |
|
|
|
|
supportedextensions=".py" |
|
|
|
|
projectfileextension=".pyproj" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonProjectBinding" /> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<!-- The Python code completion binding --> |
|
|
|
|
@ -127,33 +128,33 @@
@@ -127,33 +128,33 @@
|
|
|
|
|
<!-- Options panel --> |
|
|
|
|
<Path name="/SharpDevelop/Dialogs/OptionsDialog/ToolsOptions"> |
|
|
|
|
<OptionPanel id="PythonOptionsPanel" |
|
|
|
|
label="Python" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonOptionsPanel"/> |
|
|
|
|
label="Python" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonOptionsPanel"/> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<!-- Project options panels --> |
|
|
|
|
<Path path="/SharpDevelop/BackendBindings/ProjectOptions/Python"> |
|
|
|
|
<OptionPanel id="Application" |
|
|
|
|
label="${res:Dialog.ProjectOptions.ApplicationSettings}" |
|
|
|
|
class="ICSharpCode.PythonBinding.ApplicationSettingsPanel"/> |
|
|
|
|
label="${res:Dialog.ProjectOptions.ApplicationSettings}" |
|
|
|
|
class="ICSharpCode.PythonBinding.ApplicationSettingsPanel"/> |
|
|
|
|
<OptionPanel id="BuildEvents" |
|
|
|
|
label="${res:Dialog.ProjectOptions.BuildEvents}" |
|
|
|
|
class="ICSharpCode.SharpDevelop.Gui.OptionPanels.BuildEvents"/> |
|
|
|
|
label="${res:Dialog.ProjectOptions.BuildEvents}" |
|
|
|
|
class="ICSharpCode.SharpDevelop.Gui.OptionPanels.BuildEvents"/> |
|
|
|
|
<OptionPanel id="CompilingOptions" |
|
|
|
|
label="${res:Dialog.ProjectOptions.BuildOptions}" |
|
|
|
|
class="ICSharpCode.PythonBinding.CompilingOptionsPanel"/> |
|
|
|
|
label="${res:Dialog.ProjectOptions.BuildOptions}" |
|
|
|
|
class="ICSharpCode.PythonBinding.CompilingOptionsPanel"/> |
|
|
|
|
<OptionPanel id="DebugOptions" |
|
|
|
|
label="${res:Dialog.ProjectOptions.DebugOptions}" |
|
|
|
|
class="ICSharpCode.SharpDevelop.Gui.OptionPanels.DebugOptions"/> |
|
|
|
|
label="${res:Dialog.ProjectOptions.DebugOptions}" |
|
|
|
|
class="ICSharpCode.SharpDevelop.Gui.OptionPanels.DebugOptions"/> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<!-- Python display binding --> |
|
|
|
|
<Path name="/SharpDevelop/Workbench/DisplayBindings"> |
|
|
|
|
<DisplayBinding id="PythonDisplayBinding" |
|
|
|
|
type="Secondary" |
|
|
|
|
fileNamePattern="\.py$" |
|
|
|
|
languagePattern="^Python$" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonFormsDesignerDisplayBinding" /> |
|
|
|
|
type="Secondary" |
|
|
|
|
fileNamePattern="\.py$" |
|
|
|
|
languagePattern="^Python$" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonFormsDesignerDisplayBinding" /> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<Path name="/SharpDevelop/Workbench/MainMenu/Tools/ConvertCode"> |
|
|
|
|
@ -163,63 +164,63 @@
@@ -163,63 +164,63 @@
|
|
|
|
|
<Condition name="ActiveContentExtension" activeextension=".vb"/> |
|
|
|
|
</Or> |
|
|
|
|
<MenuItem id="ConvertToPython" |
|
|
|
|
insertafter="CSharp" |
|
|
|
|
insertbefore="VBNet" |
|
|
|
|
label="Python" |
|
|
|
|
class="ICSharpCode.PythonBinding.ConvertToPythonMenuCommand"/> |
|
|
|
|
insertafter="CSharp" |
|
|
|
|
insertbefore="VBNet" |
|
|
|
|
label="Python" |
|
|
|
|
class="ICSharpCode.PythonBinding.ConvertToPythonMenuCommand"/> |
|
|
|
|
</ComplexCondition> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<Path name="/SharpDevelop/Pads/ProjectBrowser/ContextMenu/ProjectActions/Convert"> |
|
|
|
|
<Condition name="ProjectActive" activeproject="C#"> |
|
|
|
|
<MenuItem id="CSharpProjectToPythonProjectConverter" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.ConvertCSharpProjectToPythonProject}" |
|
|
|
|
class="ICSharpCode.PythonBinding.ConvertProjectToPythonProjectCommand"/> |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.ConvertCSharpProjectToPythonProject}" |
|
|
|
|
class="ICSharpCode.PythonBinding.ConvertProjectToPythonProjectCommand"/> |
|
|
|
|
</Condition> |
|
|
|
|
<Condition name="ProjectActive" activeproject="VBNet"> |
|
|
|
|
<MenuItem id="VBNetProjectToPythonProjectConverter" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.ConvertVBNetProjectToPythonProject}" |
|
|
|
|
class="ICSharpCode.PythonBinding.ConvertProjectToPythonProjectCommand"/> |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.ConvertVBNetProjectToPythonProject}" |
|
|
|
|
class="ICSharpCode.PythonBinding.ConvertProjectToPythonProjectCommand"/> |
|
|
|
|
</Condition> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<Path name="/SharpDevelop/Workbench/Pads"> |
|
|
|
|
<Pad id="PythonConsole" |
|
|
|
|
category="Tools" |
|
|
|
|
title="${res:ICSharpCode.PythonBinding.PythonConsole}" |
|
|
|
|
insertbefore="DefinitionView" |
|
|
|
|
icon="PadIcons.Output" |
|
|
|
|
defaultPosition="Bottom, Hidden" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonConsolePad"/> |
|
|
|
|
category="Tools" |
|
|
|
|
title="${res:ICSharpCode.PythonBinding.PythonConsole}" |
|
|
|
|
insertbefore="DefinitionView" |
|
|
|
|
icon="PadIcons.Output" |
|
|
|
|
defaultPosition="Bottom, Hidden" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonConsolePad"/> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<Path name="/Workspace/Icons"> |
|
|
|
|
<Icon id="PythonFileIcon" |
|
|
|
|
extensions=".py" |
|
|
|
|
resource="Python.ProjectBrowser.File"/> |
|
|
|
|
extensions=".py" |
|
|
|
|
resource="Python.ProjectBrowser.File"/> |
|
|
|
|
<Icon id="PythonProjectIcon" |
|
|
|
|
language="Python" |
|
|
|
|
resource="Python.ProjectBrowser.Project"/> |
|
|
|
|
language="Python" |
|
|
|
|
resource="Python.ProjectBrowser.Project"/> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
<Path name="/SharpDevelop/UnitTesting/TestFrameworks"> |
|
|
|
|
<TestFramework id="pyunit" |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonTestFramework" |
|
|
|
|
supportedProjects=".pyproj"/> |
|
|
|
|
class="ICSharpCode.PythonBinding.PythonTestFramework" |
|
|
|
|
supportedProjects=".pyproj"/> |
|
|
|
|
</Path> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Path name="/SharpDevelop/ViewContent/TextEditor/ContextMenu"> |
|
|
|
|
<Condition name="ActiveContentExtension" activeextension=".py"> |
|
|
|
|
<MenuItem id="SendToPythonConsoleSeparator" |
|
|
|
|
insertafter="Indent" |
|
|
|
|
type="Separator"/> |
|
|
|
|
insertafter="Indent" |
|
|
|
|
type="Separator"/> |
|
|
|
|
<MenuItem id="SendLineToPythonConsole" |
|
|
|
|
class="ICSharpCode.PythonBinding.SendLineToPythonConsoleCommand" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.SendLineToPythonConsole}"/> |
|
|
|
|
class="ICSharpCode.PythonBinding.SendLineToPythonConsoleCommand" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.SendLineToPythonConsole}"/> |
|
|
|
|
<Condition name="IsTextSelected" action="Disable"> |
|
|
|
|
<MenuItem id="SendSelectedTextToPythonConsole" |
|
|
|
|
class="ICSharpCode.PythonBinding.SendSelectedTextToPythonConsoleCommand" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.SendSelectedTextToPythonConsole}"/> |
|
|
|
|
class="ICSharpCode.PythonBinding.SendSelectedTextToPythonConsoleCommand" |
|
|
|
|
label="${res:ICSharpCode.PythonBinding.SendSelectedTextToPythonConsole}"/> |
|
|
|
|
</Condition> |
|
|
|
|
</Condition> |
|
|
|
|
</Path> |
|
|
|
|
|