Class IWysiwygChangeListener.WysiwygHtmlSelection

  • All Implemented Interfaces:
    org.eclipse.jface.text.ITextSelection, ISelection
    Enclosing interface:
    IWysiwygChangeListener

    public static class IWysiwygChangeListener.WysiwygHtmlSelection
    extends org.eclipse.jface.text.TextSelection

    Wysiwyg html page selection info

    Contain immutable fields of Wysiwyg page selection state

    • Constructor Detail

      • WysiwygHtmlSelection

        public WysiwygHtmlSelection​(int offset,
                                    int length,
                                    List<String> tags,
                                    List<String> mods)
        Parameters:
        offset - of selection caret
        length - of selection
        tags - the list of parents tag names, cannot be null
        mods - the list of modification of selected text, cannot be null. The first two elements must contain valid font name and font size
    • Method Detail

      • getTags

        public List<String> getTags()
        List of common parents tag names for selection nodes
        Returns:
        the list of parents tag names, cannot be null
      • getMods

        public List<String> getMods()
        List of modification of selected text
        Returns:
        the list of modification of selected text, never null
      • getFontFamily

        public String getFontFamily()
        Font family of selected text
        Returns:
        the fontFamily of selected text, return the value that was given in constructor
      • getFontSize

        public int getFontSize()
        Font size of selected text
        Returns:
        the fontSize of selected text, return the value that was given in constructor