Class CodeSelectorPresentation

    • Method Detail

      • getSelectionStart

        public int getSelectionStart()
        Returns selection start position.
        Returns:
        selection start position.
      • getSelectionEnd

        public int getSelectionEnd()
        Returns selection end position.
        Returns:
        selection end position.
      • findSelectionPositions

        public void findSelectionPositions()
        Find start and end selection positions from AST line and Column.
      • findSelectionPositions

        private void findSelectionPositions​(DetailAST ast)
        Find start and end selection positions from AST line and Column.
        Parameters:
        ast - DetailAST node for which selection finds
      • findSelectionPositions

        private void findSelectionPositions​(DetailNode detailNode)
        Find start and end selection positions from DetailNode line and Column.
        Parameters:
        detailNode - DetailNode node for which selection finds
      • findLastPosition

        private int findLastPosition​(DetailAST astNode)
        Finds the last position of node without children.
        Parameters:
        astNode - DetailAST node.
        Returns:
        Last position of node without children.
      • findLastPosition

        private int findLastPosition​(DetailNode detailNode)
        Finds the last position of node without children.
        Parameters:
        detailNode - DetailNode node.
        Returns:
        Last position of node without children.