This file was generated by the tool 'BuildAddinDocumentation'. It is based on SharpDevelop 4.0.0.7070.
Tests the file extension of the file edited in the active window content.
Condition name: | ICSharpCode.SharpDevelop.ActiveContentExtensionConditionEvaluator | |
---|---|---|
Attributes: | ||
activeextension: | The file extension the file should have. |
Example: Test if a C# file is being edited
<Condition name = "ActiveContentExtension" activeextension=".cs">
Tests if the active view content is untitled.
Condition name: | ICSharpCode.SharpDevelop.ActiveViewContentUntitledConditionEvaluator | |
---|---|---|
Attributes: | Boolean value to test against. |
Example: Test if the active view content is untitled
<Condition name = "ActiveViewContentUntitled" activewindowuntitled="True"> - or - <Condition name = "ActiveViewContentUntitled">
Example: Test if the active view content has a title
<Condition name = "ActiveViewContentUntitled" activewindowuntitled="False">
Tests the window state of the active workbench window.
Condition name: | ICSharpCode.SharpDevelop.ActiveWindowStateConditionEvaluator |
---|
Conditions that tries to match the URL of a HtmlViewPane with a regex.
Condition name: | ICSharpCode.SharpDevelop.BrowserDisplayBinding.BrowserLocationConditionEvaluator | |
---|---|---|
Attributes: | ||
urlRegex: | The regular expression that must match the URL. | |
options: | Optional; options that are passed as RegexOptions. |
Example: Test if the browser is showing a HtmlHelp page
<Condition name = "BrowserLocation" urlRegex = "^ms-help:\/\/">
Tests the NavigationService for the presence of points to jump back to.
Condition name: | ICSharpCode.SharpDevelop.CanNavigateBackConditionEvaluator |
---|
Example: Test if the NavigationService can jump back.
<Condition name = "CanNavigateBack" >
Tests the NavigationService for the presence of points to jump forward to.
Condition name: | ICSharpCode.SharpDevelop.CanNavigateForwardConditionEvaluator |
---|
Example: Test if the NavigationService can jump forward.
<Condition name = "CanNavigateForward" >
Compares two strings.
The strings are passed through the StringParser, so it is possible to compare
SharpDevelop properties.
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.
Condition name: | ICSharpCode.Core.CompareConditionEvaluator | |
---|---|---|
Attributes: | ||
string: | The first string. | |
equals: | The second string. | |
comparisonType: | The mode of the comparison: a field of the System.StringComparison enumeration. The default is 'OrdinalIgnoreCase'. |
Example: Check the value of a property in the PropertyService
<Condition name = "Compare" string = "${property:SharpDevelop.FiletypesRegisterStartup}" equals = "True">
Compares a project property with a string.
Uses the conditions' caller as project; or the current project, if the caller is not a project.
The property name and string are passed through the StringParser.
Condition name: | ICSharpCode.SharpDevelop.CompareProjectPropertyConditionEvaluator | |
---|---|---|
Attributes: | ||
property: | The name of the MSBuild property to read the value from. | |
equals: | The second string. | |
comparisonType: | The mode of the comparison: a field of the System.StringComparison enumeration. The default is 'OrdinalIgnoreCase'. |
Example: Check if the project output type in the active configuration is a Windows Application
<Condition name = "CompareProjectProperty" property = "OutputType" equals = "WinExe">
Tests if the debugger supports a certain feature.
Condition name: | ICSharpCode.SharpDevelop.Debugging.DebuggerSupportsConditionEvaluator | |
---|---|---|
Attributes: | ||
debuggersupports: | The name of the feature the debugger must support. Possible feature names: "Start", "StartWithoutDebugging", "Stop", "ExecutionControl", "Stepping". |
Example: Test if the debugger supports stepping
<Condition name = "DebuggerSupports" debuggersupports="Stepping">
Example: Test if the debugger supports killing the running application
<Condition name = "DebuggerSupports" debuggersupports="Stop">
Tests the values of DebuggerService.CurrentDebugger.IsDebugging (debugger attached to a process) and DebuggerService.CurrentDebugger.IsProcessRunning (process is running and not in break mode).
Condition name: | ICSharpCode.SharpDevelop.Debugging.IsProcessRunningConditionEvaluator | |
---|---|---|
Attributes: | Optional; boolean value IsDebugging should have. | |
Attributes: | Optional; boolean value IsProcessRunning should have. |
Example: Test if currently no process is running
<Condition name = "IsProcessRunning" isdebugging="False">
Example: Test if the debugger is attached to anything
<Condition name = "IsProcessRunning" isdebugging="True">
Example: Test if the debugger is attached and we are in break mode
<Condition name = "IsProcessRunning" isdebugging="True" isprocessrunning="False">
Example: Test if the debugger is attached and the process is running
<Condition name = "IsProcessRunning" isdebugging="True" isprocessrunning="True">
Tests if any open window has a specified window state.
Condition name: | ICSharpCode.SharpDevelop.OpenWindowStateConditionEvaluator |
---|
Condition evaluator that compares the state of the caller/owner with a specified value. The caller/owner has to implement IOwnerState.
Condition name: | ICSharpCode.Core.OwnerStateConditionEvaluator |
---|
Tests if any project is active or if a project of a specific language is active. Can also be used to test the type of the project passed as caller to the condition - when a project is passed as caller, the language of that project is tested; otherwise the language of the active project is tested.
Condition name: | ICSharpCode.SharpDevelop.ProjectActiveConditionEvaluator | |
---|---|---|
Attributes: | ||
activeproject: | The language name the project should have. "*" to test if any project is active. |
Example: Test if any project is active
<Condition name = "ProjectActive" activeproject="*">
Example: Test if a C# project is active
<Condition name = "ProjectActive" activeproject="C#">
Tests the item type of a project item and/or an MSBuild meta data value.
Condition name: | ICSharpCode.SharpDevelop.Project.ProjectItemConditionEvaluator | |
---|---|---|
Attributes: | ||
itemType: | The type the project item must have. If this attribute is not specified, the type is not tested. | |
property: | The name of the MSBuild meta data to test. If this attribute is not specified, no property is tested. | |
value: | The value that the MSBuild meta data must have. |
Example: Test if a ProjectItem is an embedded resource
<Condition name = "ProjectItem" itemType = "EmbeddedResource">
Tests if the refactoring provider for the current document supports the specified option.
Condition name: | ICSharpCode.SharpDevelop.Refactoring.RefactoringProviderSupportsConditionEvaluator | |
---|---|---|
Attributes: | ||
supports: | Same of the action that should be supported. "*" to test if refactoring is supported at all. |
Example: Test if refactoring is supported
<Condition name="RefactoringProviderSupports" supports="*">
Example: Test if managing imports is supported
<Condition name="RefactoringProviderSupports" supports="FindUnusedUsingDeclarations">
Tests if a solution is open.
Condition name: | ICSharpCode.SharpDevelop.SolutionOpenConditionEvaluator |
---|
Example: Test if a solution is opened
<Condition name = "SolutionOpen">
Tests the name of the highlighting strategy of the text editor.
Condition name: | ICSharpCode.SharpDevelop.Editor.AvalonEdit.TextContentConditionEvaluator | |
---|---|---|
Attributes: | ||
textcontent: | The name of the highlighting strategy that should be active. |
Example: Test if any XML file is being edited
<Condition name = "TextContent" textcontent="XML">
Tests if the current workbench window is a specified type or implements an interface.
Condition name: | ICSharpCode.SharpDevelop.WindowActiveConditionEvaluator | |
---|---|---|
Attributes: | ||
activewindow: | 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. |
Example: Test if the current window is a text editor
<Condition name="WindowActive" activewindow="ICSharpCode.SharpDevelop.Editor.ITextEditorProvider">
Example: Test if any window is active
<Condition name="WindowActive" activewindow="*">
Tests if a window of a specified type or implementing an interface is open. The window does not need to be the active window.
Condition name: | ICSharpCode.SharpDevelop.WindowOpenConditionEvaluator | |
---|---|---|
Attributes: | ||
openwindow: | 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. |
Example: Test if a text editor is opened
<Condition name="WindowOpen" openwindow="ICSharpCode.SharpDevelop.Editor.ITextEditorProvider">
Example: Test if any window is open
<Condition name="WindowOpen" openwindow="*">
Tests if the caller project is writable. If caller is not an IProject it tests Project.CurrentProject.
Condition name: | ICSharpCode.SharpDevelop.WriteableProjectConditionEvaluator |
---|
Description of WriteableSolutionEvaluator.
Condition name: | ICSharpCode.SharpDevelop.WriteableSolutionConditionEvaluator |
---|