Class DialogPosition


  • public abstract class DialogPosition
    extends org.eclipse.jface.text.link.LinkedPosition
    Special LinkedPosition which opens dialog for editing text in focus on it. This LinkedPosition works only with CustomLinkedModeModel and CustomLinkedModeUI
    • Field Summary

      • Fields inherited from class org.eclipse.jface.text.Position

        isDeleted, length, offset
    • Constructor Summary

      Constructors 
      Constructor Description
      DialogPosition​(org.eclipse.jface.text.IDocument document, int offset, int length)
      Constructor.
      DialogPosition​(org.eclipse.jface.text.IDocument document, int offset, int length, int sequence)
      Constructor.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract String editInDialog​(org.eclipse.swt.widgets.Shell shell)
      Opens dialog and editing value in current LinkedPosition
      • Methods inherited from class org.eclipse.jface.text.link.LinkedPosition

        equals, getContent, getDocument, getSequenceNumber, hashCode, includes, includes, includes, includes, overlapsWith, setSequenceNumber
      • Methods inherited from class org.eclipse.jface.text.Position

        delete, getLength, getOffset, isDeleted, overlapsWith, setLength, setOffset, toString, undelete
    • Constructor Detail

      • DialogPosition

        public DialogPosition​(org.eclipse.jface.text.IDocument document,
                              int offset,
                              int length,
                              int sequence)
        Constructor. Creates instance for concrete IDocument, offset, lenght and sequence number
        Parameters:
        document - actual document for creating instance, cannot be null
        offset - offset of creating LinkedPosition
        length - lenght of creating LinkedPosition
        sequence - current sequence number in LinkedPositionGroup
      • DialogPosition

        public DialogPosition​(org.eclipse.jface.text.IDocument document,
                              int offset,
                              int length)
        Constructor. Creates instance for concrete IDocument, offset, lenght
        Parameters:
        document - actual document for creating instance, cannot be null
        offset - offset of creating LinkedPosition
        length - lenght of creating LinkedPosition
    • Method Detail

      • editInDialog

        public abstract String editInDialog​(org.eclipse.swt.widgets.Shell shell)
        Opens dialog and editing value in current LinkedPosition
        Parameters:
        shell - actual Shell for open dialog, cannot be null
        Returns:
        new content of the LinkedPosition, can be null if content was not changed