Class ReplaceWithAction

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      private void copyStreamToWriter​(java.io.InputStream stream, java.io.Writer writer)  
      protected abstract java.io.InputStream createInputStream()  
      java.lang.Object execute​(org.eclipse.core.commands.ExecutionEvent event)  
      private java.lang.String getChangedCompareText​(java.io.InputStream stream)  
      private void replace​(ContentWrapper content, java.io.InputStream stream)  
      private void replace​(java.io.InputStream stream)  
      void run​(org.eclipse.jface.action.IAction action)  
      private void saveExternalFile​(ContentWrapper content, java.io.InputStream stream)  
      void selectionChanged​(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)  
      void setActivePart​(org.eclipse.jface.action.IAction action, org.eclipse.ui.IWorkbenchPart targetPart)  
      • Methods inherited from class org.eclipse.core.commands.AbstractHandler

        addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplaceWithAction

        public ReplaceWithAction()
    • Method Detail

      • execute

        public java.lang.Object execute​(org.eclipse.core.commands.ExecutionEvent event)
                                 throws org.eclipse.core.commands.ExecutionException
        Specified by:
        execute in interface org.eclipse.core.commands.IHandler
        Throws:
        org.eclipse.core.commands.ExecutionException
      • setActivePart

        public void setActivePart​(org.eclipse.jface.action.IAction action,
                                  org.eclipse.ui.IWorkbenchPart targetPart)
        Specified by:
        setActivePart in interface org.eclipse.ui.IObjectActionDelegate
      • run

        public void run​(org.eclipse.jface.action.IAction action)
        Specified by:
        run in interface org.eclipse.ui.IActionDelegate
      • replace

        private void replace​(java.io.InputStream stream)
      • getChangedCompareText

        private java.lang.String getChangedCompareText​(java.io.InputStream stream)
      • replace

        private void replace​(ContentWrapper content,
                             java.io.InputStream stream)
      • copyStreamToWriter

        private void copyStreamToWriter​(java.io.InputStream stream,
                                        java.io.Writer writer)
      • saveExternalFile

        private void saveExternalFile​(ContentWrapper content,
                                      java.io.InputStream stream)
      • createInputStream

        protected abstract java.io.InputStream createInputStream()
      • selectionChanged

        public void selectionChanged​(org.eclipse.jface.action.IAction action,
                                     org.eclipse.jface.viewers.ISelection selection)
        Specified by:
        selectionChanged in interface org.eclipse.ui.IActionDelegate