Class CodeSelectorPresentation


  • public class CodeSelectorPresentation
    extends java.lang.Object
    Presentation model for CodeSelector.
    • Constructor Detail

      • CodeSelectorPresentation

        public CodeSelectorPresentation​(DetailAST ast,
                                        java.util.List<java.lang.Integer> lines2position)
        Constructor.
        Parameters:
        ast - ast node.
        lines2position - list to map lines.
      • CodeSelectorPresentation

        public CodeSelectorPresentation​(DetailNode node,
                                        java.util.List<java.lang.Integer> lines2position)
        Constructor.
        Parameters:
        node - DetailNode node.
        lines2position - list to map lines.
    • 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.