|
|
|
@ -5,13 +5,81 @@
@@ -5,13 +5,81 @@
|
|
|
|
|
</head><body> |
|
|
|
|
<h1>Condition List</h1> |
|
|
|
|
<p class="notice">This file was generated by the tool 'BuildAddinDocumentation'. |
|
|
|
|
It is based on SharpDevelop 2.0.0.589.</p> |
|
|
|
|
It is based on SharpDevelop 2.0.0.590.</p> |
|
|
|
|
<ul> |
|
|
|
|
<li><a href="#ActiveContentExtension">ActiveContentExtension</a> |
|
|
|
|
<li><a href="#ActiveViewContentUntitled">ActiveViewContentUntitled</a> |
|
|
|
|
<li><a href="#ActiveWindowState">ActiveWindowState</a> |
|
|
|
|
<li><a href="#BrowserLocation">BrowserLocation</a> |
|
|
|
|
<li><a href="#Compare">Compare</a> |
|
|
|
|
<li><a href="#DebuggerSupports">DebuggerSupports</a> |
|
|
|
|
<li><a href="#IsProcessRunning">IsProcessRunning</a> |
|
|
|
|
<li><a href="#OpenWindowState">OpenWindowState</a> |
|
|
|
|
<li><a href="#OwnerState">OwnerState</a> |
|
|
|
|
<li><a href="#ProjectActive">ProjectActive</a> |
|
|
|
|
<li><a href="#SolutionOpen">SolutionOpen</a> |
|
|
|
|
<li><a href="#TextContent">TextContent</a> |
|
|
|
|
<li><a href="#WindowActive">WindowActive</a> |
|
|
|
|
<li><a href="#WindowOpen">WindowOpen</a> |
|
|
|
|
</ul> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="ActiveContentExtension">ActiveContentExtension</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests the file extension of the file edited in the active window content. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.ActiveContentExtensionConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr><td colspan=2><hr><h3>Attributes:</h3></td></tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>activeextension:</td> |
|
|
|
|
<td> |
|
|
|
|
The file extension the file should have. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if a C# file is being edited</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "ActiveContentExtension" activeextension=".cs"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="ActiveViewContentUntitled">ActiveViewContentUntitled</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests if the active view content is untitled. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.ActiveViewContentUntitledConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>Attributes:</td> |
|
|
|
|
<td>Boolean value to test against.</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the active view content is untitled</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "ActiveViewContentUntitled" activewindowuntitled="True"> |
|
|
|
|
- or - |
|
|
|
|
<Condition name = "ActiveViewContentUntitled"></pre></p> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the active view content has a title</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "ActiveViewContentUntitled" activewindowuntitled="False"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="ActiveWindowState">ActiveWindowState</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests the window state of the active workbench window. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.ActiveWindowStateConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="BrowserLocation">BrowserLocation</a></h2> |
|
|
|
|
<p> |
|
|
|
@ -23,12 +91,31 @@ It is based on SharpDevelop 2.0.0.589.</p>
@@ -23,12 +91,31 @@ It is based on SharpDevelop 2.0.0.589.</p>
|
|
|
|
|
<td>ICSharpCode.SharpDevelop.BrowserDisplayBinding.BrowserLocationConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr><td colspan=2><hr><h3>Attributes:</h3></td></tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>urlRegex:</td> |
|
|
|
|
<td> |
|
|
|
|
The regular expression that must match the URL. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>options:</td> |
|
|
|
|
<td> |
|
|
|
|
Optional; options that are passed as <see cref="T:System.Text.RegularExpressions.RegexOptions" />. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the browser is showing a HtmlHelp page</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "BrowserLocation" urlRegex = "^ms-help:\/\/"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="Compare">Compare</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Condition evaluator that compares two strings. |
|
|
|
|
Compares two strings (case sensitive). |
|
|
|
|
The strings are passed through the StringParser, so it is possible to compare |
|
|
|
|
SharpDevelop properties.<br /> |
|
|
|
|
Useful if you want to run a command only when a setting is active to prevent |
|
|
|
|
loading your addin if that setting isn't set. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
@ -36,19 +123,97 @@ It is based on SharpDevelop 2.0.0.589.</p>
@@ -36,19 +123,97 @@ It is based on SharpDevelop 2.0.0.589.</p>
|
|
|
|
|
<td>ICSharpCode.Core.CompareConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr><td colspan=2><hr><h3>Attributes:</h3></td></tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>string:</td> |
|
|
|
|
<td> |
|
|
|
|
The first string. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>equals:</td> |
|
|
|
|
<td> |
|
|
|
|
The second string. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the browser is showing a HtmlHelp page</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "Compare" string = "${property:SharpDevelop.FiletypesRegisterStartup}" equals = "True"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="DebuggerSupports">DebuggerSupports</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests if the debugger supports a certain feature. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.DebuggerSupportsConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr><td colspan=2><hr><h3>Attributes:</h3></td></tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>debuggersupports:</td> |
|
|
|
|
<td> |
|
|
|
|
The name of the feature the debugger must support. |
|
|
|
|
Possible feature names: "Start", "StartWithoutDebugging", "Stop", |
|
|
|
|
"ExecutionControl", "Stepping". |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the debugger supports stepping</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "DebuggerSupports" debuggersupports="Stepping"></pre></p> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the debugger supports killing the running application</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "DebuggerSupports" debuggersupports="Stop"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="IsProcessRunning">IsProcessRunning</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests the values of DebuggerService.CurrentDebugger.IsDebugging (debugger attached to a process) |
|
|
|
|
and DebuggerService.CurrentDebugger.IsProcessRunning (process is running and not in break mode). |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.IsProcessRunningConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>Attributes:</td> |
|
|
|
|
<td> |
|
|
|
|
Optional; boolean value IsDebugging should have. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>Attributes:</td> |
|
|
|
|
<td> |
|
|
|
|
Optional; boolean value IsProcessRunning should have. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if currently no process is running</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "IsProcessRunning" isdebugging="False"></pre></p> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the debugger is attached to anything</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "IsProcessRunning" isdebugging="True"></pre></p> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the debugger is attached and we are in break mode</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "IsProcessRunning" isdebugging="True" isprocessrunning="False"></pre></p> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the debugger is attached and the process is running</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "IsProcessRunning" isdebugging="True" isprocessrunning="True"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="OpenWindowState">OpenWindowState</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Description of WindowStateCondition. |
|
|
|
|
Tests if any open window has a specified window state. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.OpenWindowStateConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr><td colspan=2><hr><h3>Attributes:</h3></td></tr> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
@ -62,7 +227,124 @@ It is based on SharpDevelop 2.0.0.589.</p>
@@ -62,7 +227,124 @@ It is based on SharpDevelop 2.0.0.589.</p>
|
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.OwnerStateConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="ProjectActive">ProjectActive</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests if any project is active or if a project of a specific language is active. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.ProjectActiveConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr><td colspan=2><hr><h3>Attributes:</h3></td></tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>activeproject:</td> |
|
|
|
|
<td> |
|
|
|
|
The language name the project should have. |
|
|
|
|
"*" to test if any project is active. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if any project is active</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "ProjectActive" activeproject="*"></pre></p> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if a C# project is active</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "ProjectActive" activeproject="C#"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="SolutionOpen">SolutionOpen</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests if a solution is open. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.SolutionOpenConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if a solution is opened</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "SolutionOpen"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="TextContent">TextContent</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests the name of the highlighting strategy of the text editor. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.SharpDevelop.DefaultEditor.Conditions.TextContentConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr><td colspan=2><hr><h3>Attributes:</h3></td></tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>textcontent:</td> |
|
|
|
|
<td> |
|
|
|
|
The name of the highlighting strategy that should be active. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if any XML file is being edited</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name = "TextContent" textcontent="XML"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="WindowActive">WindowActive</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests if the current workbench window is a specified type or implements an interface. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.WindowActiveConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr><td colspan=2><hr><h3>Attributes:</h3></td></tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>activewindow:</td> |
|
|
|
|
<td> |
|
|
|
|
The fully qualified name of the type the active window should be or the |
|
|
|
|
interface name it should implement. |
|
|
|
|
"*" to test if any window is active. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if the current window is a text editor</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name="WindowActive" activewindow="ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.ITextEditorControlProvider"></pre></p> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if any window is active</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name="WindowActive" activewindow="*"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<h2><a name="WindowOpen">WindowOpen</a></h2> |
|
|
|
|
<p> |
|
|
|
|
Tests if a window of a specified type or implementing an interface is open. |
|
|
|
|
The window does not need to be the active window. |
|
|
|
|
</p> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Condition name:</td> |
|
|
|
|
<td>ICSharpCode.Core.WindowOpenConditionEvaluator</td> |
|
|
|
|
</tr> |
|
|
|
|
<tr><td colspan=2><hr><h3>Attributes:</h3></td></tr> |
|
|
|
|
<tr> |
|
|
|
|
<th>openwindow:</td> |
|
|
|
|
<td> |
|
|
|
|
The fully qualified name of the type the window should be or the |
|
|
|
|
interface name it should implement. |
|
|
|
|
"*" to test if any window is open. |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if a text editor is opened</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name="WindowOpen" openwindow="ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.ITextEditorControlProvider"></pre></p> |
|
|
|
|
<p><span class="exampleTitle">Example: Test if any window is open</span> |
|
|
|
|
<br><pre> |
|
|
|
|
<Condition name="WindowOpen" openwindow="*"></pre></p> |
|
|
|
|
</div> |
|
|
|
|
</body></html> |
|
|
|
|