Class CommonTextActions

  • All Implemented Interfaces:
    java.util.EventListener, org.eclipse.swt.custom.CaretListener, org.eclipse.swt.internal.SWTEventListener

    public class CommonTextActions
    extends java.lang.Object
    implements org.eclipse.swt.custom.CaretListener
    Common text actions in the KString editors.
    Christopher Mindus
    • Field Detail

      • showRichText

        public final PartAction showRichText
        The common actions.
      • insertImage

        public final PartAction insertImage
        The common actions.
      • insertHyperlink

        public final PartAction insertHyperlink
        The common actions.
      • insertTextIDTag

        public final PartAction insertTextIDTag
        The common actions.
      • insertTextVSTag

        public final PartAction insertTextVSTag
        The common actions.
      • entryText

        public final PartAction entryText
        The common actions.
      • entryTextTag

        public final PartAction entryTextTag
        The common actions.
      • entryHTML

        public final PartAction entryHTML
        The common actions.
      • entryHTMLTag

        public final PartAction entryHTMLTag
        The common actions.
    • Constructor Detail

      • CommonTextActions

        public CommonTextActions​(org.eclipse.swt.widgets.Shell shell,
                                 ModuleModel model,
                                 TextTableEditor editor,
                                 IVSAccessor vsAccessor,
                                 EditorTextTable defaultTextTable,
                                 IPropUndoRedo undoRedo,
                                 java.lang.Boolean useTags)
        shell - The shell.
        model - The Module model.
        editor - The editor for table direct editing, can be null.
        vsAccessor - The VirtualSpace participant, null for none.
        defaultTextTable - The default text table to expand for new items, null for none.
        undoRedo - The undo/redo instance.
    • Method Detail

      • dispose

        public void dispose()
        Disposes of the instance.
      • assignTextControl

        public void assignTextControl​(KStringStyledText styledText)
        Assigns the StyledText instance for form editing.
      • assignTextControl

        public void assignTextControl​(org.eclipse.swt.widgets.Text text,
                                      org.eclipse.jface.viewers.ViewerCell cell)
        Assigns the Text instance for direct editing in tables.
      • getCurrentNonErroredKString

        public KString getCurrentNonErroredKString()
        Gets the current KString from current cell.
        The KString, null for none (or KStringProp entry in error).
      • updateStates

        public void updateStates​(KStringProp prop,
                                 boolean doUpdateTagsFromProp)
        Updates the states for the specified KString.
        prop - The current KStringProp, can be null for none.
      • openRichTextDialog

        public void openRichTextDialog()
        Shows the rich text dialog box.
      • caretMoved

        public void caretMoved​(org.eclipse.swt.custom.CaretEvent event)
        This method is called after the caret offset is changed. The following event fields are used:
        • event.caretOffset the new caret offset (input)
        Specified by:
        caretMoved in interface org.eclipse.swt.custom.CaretListener
        event - the given event
        See Also: