public interface ToolkitView
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigurationProperty(String name,
String description)
Add a new configuration property to the configuration tab.
|
void |
appendToConsole(String message)
Append the given message to the console view.
|
void |
clearAstSelections()
Clear all the selections in the abstract syntax tree view.
|
void |
clearConsole()
Clear the console.
|
void |
clearSourceCodeHighlights()
Clear all the highlights in the source code editor.
|
void |
disableXPathEvaluateButton()
Disable the XPath evaluate button.
|
void |
displayAst(AstNode astNode)
Display the abstract syntax tree view starting from a given node.
|
void |
displayHighlightedSourceCode(String htmlHighlightedSourceCode)
Display the given HTML highlighted source code in the source code editor.
|
void |
displayXml(String xml)
Display the given string in the XML view.
|
void |
enableXPathEvaluateButton()
Enable the XPath evaluate button.
|
AstNode |
getAstNodeFollowingCurrentSourceCodeTextCursorPosition()
Get the AST node which follows the current source code editor text cursor position.
|
String |
getConfigurationPropertyValue(String name)
Get the value currently entered in the configuration property field identified by the given name.
|
List<AstNode> |
getSelectedAstNodes()
Get the list of nodes currently selected in the abstract syntax tree view.
|
String |
getSourceCode()
Get the source code currently entered in the source code editor.
|
Point |
getSourceCodeScrollbarPosition()
Get the current source code editor scrollbars' position point.
|
String |
getXPath()
Get the text currently entered in the XPath field.
|
void |
highlightSourceCode(AstNode astNode)
Highlight the given AST node in the source code editor.
|
File |
pickFileToParse()
Prompt the user for a file to parse and return it.
|
void |
run()
Launch the application.
|
void |
scrollAstTo(AstNode astNode)
Scroll the abstract syntax tree view in order to make the given AST node visible.
|
void |
scrollSourceCodeTo(AstNode astNode)
Scroll the source code editor in order to make the given AST node visible.
|
void |
scrollSourceCodeTo(Point point)
Scroll the source code editor in order to make the given point visible.
|
void |
selectAstNode(AstNode astNode)
Select the given AST node in the abstract syntax tree view.
|
void |
setConfigurationPropertyErrorMessage(String name,
String errorMessage)
Set the error message of the configuration property identified by the given name.
|
void |
setConfigurationPropertyValue(String name,
String value)
Set the current value of the configuration property field identified by the given name.
|
void |
setFocusOnAbstractSyntaxTreeView()
Set the focus on the abstract syntax tree view.
|
void |
setFocusOnConfigurationPropertyField(String name)
Set the focus on the configuration field identified by the given name.
|
void |
setFocusOnConfigurationView()
Set the focus on the configuration view.
|
void |
setFocusOnConsoleView()
Set the focus on the console view.
|
void |
setTitle(String title)
Set the title of the application.
|
void run()
void setTitle(String title)
title - @Nullable File pickFileToParse()
void displayHighlightedSourceCode(String htmlHighlightedSourceCode)
htmlHighlightedSourceCode - The HTML highlighted source codevoid displayAst(@Nullable AstNode astNode)
astNode - The root AST node or null if no abstract syntax tree must be shownvoid displayXml(String xml)
xml - The string to displayPoint getSourceCodeScrollbarPosition()
void scrollSourceCodeTo(Point point)
point - to make visibleString getSourceCode()
String getXPath()
void selectAstNode(@Nullable AstNode astNode)
astNode - The AST node to select, null will lead to a no operationvoid clearAstSelections()
void scrollAstTo(@Nullable AstNode astNode)
astNode - The AST node to make visible, null will lead to a no operationvoid highlightSourceCode(AstNode astNode)
astNode - The AST node to highlightvoid clearSourceCodeHighlights()
void scrollSourceCodeTo(@Nullable AstNode astNode)
astNode - The AST node to make visible, null will lead to a no operationvoid disableXPathEvaluateButton()
void enableXPathEvaluateButton()
@Nullable AstNode getAstNodeFollowingCurrentSourceCodeTextCursorPosition()
List<AstNode> getSelectedAstNodes()
void appendToConsole(String message)
message - The message to appendvoid setFocusOnConsoleView()
void setFocusOnAbstractSyntaxTreeView()
void clearConsole()
void addConfigurationProperty(String name, String description)
name - description - String getConfigurationPropertyValue(String name)
name - The name of the configuration propertyvoid setConfigurationPropertyValue(String name, String value)
name - The name of the configuration propertyvalue - The value to be setvoid setConfigurationPropertyErrorMessage(String name, String errorMessage)
name - The name of the configuration propertyerrorMessage - The error messagevoid setFocusOnConfigurationPropertyField(String name)
name - void setFocusOnConfigurationView()
Copyright © 2010–2015 SonarSource. All rights reserved.