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. TheNodeEditionCodeAreahandles 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 voidafterParentInit()Executed after the parent's initialization (so afterAbstractController.afterChildrenInit()).protected voidbeforeParentInit()Executed before the parent's initialization.org.reactfx.value.Var<List<net.sourceforge.pmd.lang.ast.Node>>currentErrorNodesProperty()org.reactfx.value.Var<List<net.sourceforge.pmd.lang.ast.Node>>currentRuleResultsProperty()List<File>getAuxclasspathFiles()List<? extends SettingsOwner>getChildrenSettingsNodes()Gets the children of this node in order.StringgetDebugName()A debug name for this component, used in developer mode to e.g.net.sourceforge.pmd.lang.LanguageVersiongetLanguageVersion()StringgetText()org.reactfx.value.Var<net.sourceforge.pmd.lang.LanguageVersion>languageVersionProperty()voidsetAuxclasspathFiles(List<File> files)voidsetLanguageVersion(net.sourceforge.pmd.lang.LanguageVersion version)voidsetText(String expression)voidshowAuxclasspathSetupPopup()org.reactfx.value.Val<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
getLogCategory, getLogger, getMainStage, getService, globalLanguageProperty, isDeveloperMode, languageBindingsProperty, logInternalDebugInfo, logInternalDebugInfo, logInternalException, logUserException, raiseParsableSourceFlag, raiseParsableXPathFlag
-
-
-
-
Constructor Detail
-
SourceEditorController
public SourceEditorController(DesignerRoot designerRoot)
-
-
Method Detail
-
beforeParentInit
protected void beforeParentInit()
Description copied from class:AbstractControllerExecuted before the parent's initialization. Always executed once at the start of the initialization of this controller.- Overrides:
beforeParentInitin classAbstractController
-
afterParentInit
public void afterParentInit()
Description copied from class:AbstractControllerExecuted 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:
afterParentInitin classAbstractController
-
showAuxclasspathSetupPopup
public void showAuxclasspathSetupPopup()
-
currentRuleResultsProperty
public org.reactfx.value.Var<List<net.sourceforge.pmd.lang.ast.Node>> currentRuleResultsProperty()
-
currentErrorNodesProperty
public org.reactfx.value.Var<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 String getText()
-
setText
public void setText(String expression)
-
textProperty
public org.reactfx.value.Val<String> textProperty()
-
getChildrenSettingsNodes
public List<? extends SettingsOwner> getChildrenSettingsNodes()
Description copied from interface:SettingsOwnerGets the children of this node in order.- Specified by:
getChildrenSettingsNodesin interfaceSettingsOwner- Overrides:
getChildrenSettingsNodesin classAbstractController
-
getDebugName
public String getDebugName()
Description copied from interface:ApplicationComponentA debug name for this component, used in developer mode to e.g. trace events handling paths.
-
-