Class Base64UnEncode

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2, org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate, org.eclipse.ui.IViewActionDelegate, org.eclipse.ui.IWorkbenchWindowActionDelegate

    public class Base64UnEncode
    extends AbstractReplaceAction
    • Constructor Detail

      • Base64UnEncode

        public Base64UnEncode()
    • Method Detail

      • getActionKey

        protected int getActionKey​(java.lang.String actionID)
        Description copied from class: AbstractReplaceAction
        Mapping between String actions and "smarter" custom int's for inernal (in performReplace() method) use only!
        Specified by:
        getActionKey in class AbstractReplaceAction
        Parameters:
        actionID - action id starts with one of AbstractTextAction.ACTION_ID_ constants (it starts with the constant cause we have multiple actions there which are used once for key bindings and once for editor actions).
        Returns:
        any one int value for given action
      • doTextOperation

        protected void doTextOperation​(org.eclipse.jface.text.IDocument doc,
                                       java.lang.String actionID,
                                       TextReplaceResultSet resultSet)
                                throws org.eclipse.jface.text.BadLocationException
        Description copied from class: AbstractTextAction
        Should be invoked always after estimateActionRange() to ensure that operaton is possible
        Overrides:
        doTextOperation in class AbstractReplaceAction
        Parameters:
        doc - cannot be null
        actionID - desired text action id
        resultSet - cannot be null
        Throws:
        org.eclipse.jface.text.BadLocationException
      • splitLinesEnabled

        private boolean splitLinesEnabled()
      • performReplace

        protected java.lang.String performReplace​(java.lang.String line,
                                                  int actionKey)
        Description copied from class: AbstractReplaceAction
        Does custom replace operation.
        Specified by:
        performReplace in class AbstractReplaceAction
        Parameters:
        line - text to "replace"
        actionKey - any one action key as delivered by getActionKey(String) method
        Returns:
        "replace" result or old unchanged string, if replace was not performed