Class StartupHelper2.PreExecutionHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IExecutionListener
    Enclosing class:
    StartupHelper2

    private static class StartupHelper2.PreExecutionHandler
    extends java.lang.Object
    implements org.eclipse.core.commands.IExecutionListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String commandId  
      (package private) Spaces spacesAction  
      (package private) org.eclipse.jface.action.IAction spacesToTabs  
      (package private) org.eclipse.jface.action.IAction tabsToSpaces  
    • Constructor Summary

      Constructors 
      Constructor Description
      PreExecutionHandler​(java.lang.String commandId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void notHandled​(java.lang.String command, org.eclipse.core.commands.NotHandledException exception)  
      void postExecuteFailure​(java.lang.String command, org.eclipse.core.commands.ExecutionException exception)  
      void postExecuteSuccess​(java.lang.String command, java.lang.Object returnValue)  
      void preExecute​(java.lang.String command, org.eclipse.core.commands.ExecutionEvent event)  
      void runBeforeSave​(org.eclipse.core.commands.ExecutionEvent event)
      Performs the 'convert spaces' action before the editor buffer is saved
      private void runSpecial​(org.eclipse.core.commands.ExecutionEvent event)  
      private void runSpecial2​(org.eclipse.core.commands.ExecutionEvent event)  
      • Methods inherited from class java.lang.Object

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

      • spacesAction

        final Spaces spacesAction
      • spacesToTabs

        final org.eclipse.jface.action.IAction spacesToTabs
      • tabsToSpaces

        final org.eclipse.jface.action.IAction tabsToSpaces
      • commandId

        final java.lang.String commandId
    • Constructor Detail

      • PreExecutionHandler

        PreExecutionHandler​(java.lang.String commandId)
    • Method Detail

      • notHandled

        public void notHandled​(java.lang.String command,
                               org.eclipse.core.commands.NotHandledException exception)
        Specified by:
        notHandled in interface org.eclipse.core.commands.IExecutionListener
      • postExecuteFailure

        public void postExecuteFailure​(java.lang.String command,
                                       org.eclipse.core.commands.ExecutionException exception)
        Specified by:
        postExecuteFailure in interface org.eclipse.core.commands.IExecutionListener
      • postExecuteSuccess

        public void postExecuteSuccess​(java.lang.String command,
                                       java.lang.Object returnValue)
        Specified by:
        postExecuteSuccess in interface org.eclipse.core.commands.IExecutionListener
      • preExecute

        public void preExecute​(java.lang.String command,
                               org.eclipse.core.commands.ExecutionEvent event)
        Specified by:
        preExecute in interface org.eclipse.core.commands.IExecutionListener
      • runBeforeSave

        public void runBeforeSave​(org.eclipse.core.commands.ExecutionEvent event)
        Performs the 'convert spaces' action before the editor buffer is saved
      • runSpecial

        private void runSpecial​(org.eclipse.core.commands.ExecutionEvent event)
      • runSpecial2

        private void runSpecial2​(org.eclipse.core.commands.ExecutionEvent event)