Class SourceEditorController
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.app.AbstractController
-
- net.sourceforge.pmd.util.fxdesigner.SourceEditorController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
,ApplicationComponent
,SettingsOwner
public class SourceEditorController extends AbstractController
One editor, i.e. source editor and ast tree view. TheNodeEditionCodeArea
handles the presentation of different types of nodes in separate layers. This class handles configuration, language selection and such.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description SourceEditorController(DesignerRoot designerRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterParentInit()
Executed after the parent's initialization (so afterAbstractController.afterChildrenInit()
).protected void
beforeParentInit()
Executed before the parent's initialization.org.reactfx.value.Var<java.util.List<net.sourceforge.pmd.lang.ast.Node>>
currentErrorNodesProperty()
org.reactfx.value.Var<java.util.List<net.sourceforge.pmd.lang.ast.Node>>
currentRuleResultsProperty()
java.util.List<java.io.File>
getAuxclasspathFiles()
java.util.List<? extends SettingsOwner>
getChildrenSettingsNodes()
Gets the children of this node in order.java.lang.String
getDebugName()
A debug name for this component, used in developer mode to e.g.net.sourceforge.pmd.lang.LanguageVersion
getLanguageVersion()
java.lang.String
getText()
org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion>
languageVersionProperty()
void
setAuxclasspathFiles(java.util.List<java.io.File> files)
void
setLanguageVersion(net.sourceforge.pmd.lang.LanguageVersion version)
void
setText(java.lang.String expression)
void
showAuxclasspathSetupPopup()
org.reactfx.value.Val<java.lang.String>
textProperty()
-
Methods inherited from class net.sourceforge.pmd.util.fxdesigner.app.AbstractController
afterChildrenInit, getChildren, getDesignerRoot, initialize, shutdown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.util.fxdesigner.app.ApplicationComponent
getGlobalLanguageVersion, getLogCategory, getLogger, getMainStage, getService, globalLanguageProperty, isDeveloperMode, logInternalDebugInfo, logInternalDebugInfo, logInternalException, logUserException, raiseParsableSourceFlag, raiseParsableXPathFlag
-
-
-
-
Constructor Detail
-
SourceEditorController
public SourceEditorController(DesignerRoot designerRoot)
-
-
Method Detail
-
beforeParentInit
protected void beforeParentInit()
Description copied from class:AbstractController
Executed before the parent's initialization. Always executed once at the start of the initialization of this controller.- Overrides:
beforeParentInit
in classAbstractController
-
afterParentInit
public void afterParentInit()
Description copied from class:AbstractController
Executed after the parent's initialization (so afterAbstractController.afterChildrenInit()
). This also means, after persistent settings restoration. If this node has no parent, then this is never executed.- Overrides:
afterParentInit
in classAbstractController
-
showAuxclasspathSetupPopup
public void showAuxclasspathSetupPopup()
-
currentRuleResultsProperty
public org.reactfx.value.Var<java.util.List<net.sourceforge.pmd.lang.ast.Node>> currentRuleResultsProperty()
-
currentErrorNodesProperty
public org.reactfx.value.Var<java.util.List<net.sourceforge.pmd.lang.ast.Node>> currentErrorNodesProperty()
-
getLanguageVersion
public net.sourceforge.pmd.lang.LanguageVersion getLanguageVersion()
-
setLanguageVersion
public void setLanguageVersion(net.sourceforge.pmd.lang.LanguageVersion version)
-
languageVersionProperty
public org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion> languageVersionProperty()
-
getText
public java.lang.String getText()
-
setText
public void setText(java.lang.String expression)
-
textProperty
public org.reactfx.value.Val<java.lang.String> textProperty()
-
getAuxclasspathFiles
public java.util.List<java.io.File> getAuxclasspathFiles()
-
setAuxclasspathFiles
public void setAuxclasspathFiles(java.util.List<java.io.File> files)
-
getChildrenSettingsNodes
public java.util.List<? extends SettingsOwner> getChildrenSettingsNodes()
Description copied from interface:SettingsOwner
Gets the children of this node in order.- Specified by:
getChildrenSettingsNodes
in interfaceSettingsOwner
- Overrides:
getChildrenSettingsNodes
in classAbstractController
-
getDebugName
public java.lang.String getDebugName()
Description copied from interface:ApplicationComponent
A debug name for this component, used in developer mode to e.g. trace events handling paths.
-
-