Class MainDesignerController

    • Field Detail

      • openEventLogMenuItem

        public javafx.scene.control.MenuItem openEventLogMenuItem
    • Constructor Detail

      • MainDesignerController

        public MainDesignerController​(DesignerRoot owner)
    • Method Detail

      • shutdown

        public void shutdown()
      • refreshAST

        public void refreshAST()
        Attempts to refresh the AST with the up-to-date source, also updating XPath results.
      • refreshXPathResults

        public void refreshXPathResults()
        Refreshes the XPath results if the compilation unit is valid. Otherwise does nothing.
      • wrapNode

        public TextAwareNodeWrapper wrapNode​(net.sourceforge.pmd.lang.ast.Node node)
        Returns a wrapper around the given node that gives access to its textual representation in the editor area.
      • runXPathQuery

        public java.util.List<net.sourceforge.pmd.lang.ast.Node> runXPathQuery​(java.lang.String query)
                                                                        throws XPathEvaluationException
        Runs an XPath (2.0) query on the current AST. Performs no side effects.
        Parameters:
        query - the query
        Returns:
        the matched nodes
        Throws:
        XPathEvaluationException - if the query fails
      • invalidateAst

        public void invalidateAst()
        Called when the AST is updated to update all parts of the UI.
      • getLanguageVersion

        public net.sourceforge.pmd.lang.LanguageVersion getLanguageVersion()
      • setLanguageVersion

        public void setLanguageVersion​(net.sourceforge.pmd.lang.LanguageVersion version)
      • languageVersionProperty

        public org.reactfx.value.Val<net.sourceforge.pmd.lang.LanguageVersion> languageVersionProperty()
      • getRecentFiles

        public java.lang.String getRecentFiles()
      • setRecentFiles

        public void setRecentFiles​(java.lang.String files)
      • isMaximized

        public boolean isMaximized()
      • setMaximized

        public void setMaximized​(boolean b)
      • getBottomTabIndex

        public int getBottomTabIndex()
      • setBottomTabIndex

        public void setBottomTabIndex​(int i)
      • 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.