com.bonevich.eclipse.logging.popups
Class AddLoggingOperation

java.lang.Object
  extended byorg.eclipse.ui.actions.WorkspaceModifyOperation
      extended bycom.bonevich.eclipse.logging.popups.AddLoggingOperation
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress, LoggingPluginResources

public class AddLoggingOperation
extends org.eclipse.ui.actions.WorkspaceModifyOperation
implements LoggingPluginResources

Workhorse for adding logging statements to a given source code editor.

Author:
jbonevic

Field Summary
 
Fields inherited from interface com.bonevich.eclipse.logging.LoggingPluginResources
ACTION_LOGGING_CONDITIONAL_CLOSE, ACTION_LOGGING_DEBUG, ACTION_LOGGING_DEBUG_CONDITIONAL, ACTION_LOGGING_ERROR, ACTION_LOGGING_ERROR_CONDITIONAL, ACTION_LOGGING_FATAL, ACTION_LOGGING_FATAL_CONDITIONAL, ACTION_LOGGING_INFO, ACTION_LOGGING_INFO_CONDITIONAL, ACTION_LOGGING_TRACE, ACTION_LOGGING_TRACE_CONDITIONAL, ACTION_LOGGING_WARN, ACTION_LOGGING_WARN_CONDITIONAL, ADD_LOGGING_DIALOG, ADD_LOGGING_ERROR, LOGGING_FIELD_DECLARATION, LOGGING_IMPORT_CLASS, LOGGING_LIB_PATHVAR, LOGGING_PREFS_API_AVALON_LABEL, LOGGING_PREFS_API_COMMONS_LABEL, LOGGING_PREFS_API_JDK_1_4_LABEL, LOGGING_PREFS_API_LABEL, LOGGING_PREFS_API_LOG4J_LABEL, LOGGING_PREFS_AUTOSAVE_LABEL, LOGGING_PREFS_CONDITIONALS_LABEL, LOGGING_PREFS_DEBUG_CONDITIONALS_LABEL, LOGGING_PREFS_ERROR_CONDITIONALS_LABEL, LOGGING_PREFS_FATAL_CONDITIONALS_LABEL, LOGGING_PREFS_FIELD_LABEL, LOGGING_PREFS_GENERAL, LOGGING_PREFS_INFO_CONDITIONALS_LABEL, LOGGING_PREFS_TRACE_CONDITIONALS_LABEL, LOGGING_PREFS_WARN_CONDITIONALS_LABEL, RESOURCE_BUNDLE
 
Constructor Summary
AddLoggingOperation(org.eclipse.ui.texteditor.ITextEditor editor, org.eclipse.jdt.core.ICompilationUnit cu, AddLoggingAction action, boolean saveWork)
           
 
Method Summary
protected  void execute(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.ui.actions.WorkspaceModifyOperation
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddLoggingOperation

public AddLoggingOperation(org.eclipse.ui.texteditor.ITextEditor editor,
                           org.eclipse.jdt.core.ICompilationUnit cu,
                           AddLoggingAction action,
                           boolean saveWork)
Method Detail

execute

protected void execute(org.eclipse.core.runtime.IProgressMonitor monitor)
                throws org.eclipse.core.runtime.CoreException,
                       java.lang.reflect.InvocationTargetException,
                       java.lang.InterruptedException
Throws:
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
See Also:
WorkspaceModifyOperation.execute(IProgressMonitor)


Copyright © 2003-2004 bonevich.com. All Rights Reserved.