com.bonevich.eclipse.logging.popups
Class AddLoggingAction
java.lang.Object
   com.bonevich.eclipse.logging.popups.AddLoggingAction
com.bonevich.eclipse.logging.popups.AddLoggingAction
- All Implemented Interfaces: 
- org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate, LoggingPluginResources
- Direct Known Subclasses: 
- AddDebugLoggingAction, AddErrorLoggingAction, AddFatalLoggingAction, AddInfoLoggingAction, AddTraceLoggingAction, AddWarnLoggingAction
- public abstract class AddLoggingAction- extends java.lang.Object- implements org.eclipse.ui.IEditorActionDelegate, LoggingPluginResources
Base class for actions that add logging statements to the current JavaEditor.
- Author:
- jbonevic
 
| 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 | 
 
 
| Method Summary | 
| protected abstract  java.lang.String | getConditionalLoggingStatement(java.lang.String impl)Retrieve an implementation-specific logging statement 
 wrapped in a conditional log-level check to be inserted
 into code.
 | 
| protected abstract  java.lang.String | getLoggingStatement(java.lang.String impl)Retrieve an implementation-specific logging statement to be 
 inserted into code.
 | 
| protected abstract  boolean | isConditionalUsed()Indicate whether to use a conditional-wrapped logging statement.
 | 
|  void | run(org.eclipse.jface.action.IAction action)
 | 
|  void | selectionChanged(org.eclipse.jface.action.IAction action,
                 org.eclipse.jface.viewers.ISelection selection)
 | 
|  void | setActiveEditor(org.eclipse.jface.action.IAction action,
                org.eclipse.ui.IEditorPart part)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
AddLoggingAction
public AddLoggingAction()
setActiveEditor
public void setActiveEditor(org.eclipse.jface.action.IAction action,
                            org.eclipse.ui.IEditorPart part)
- 
- Specified by:
- setActiveEditorin interface- org.eclipse.ui.IEditorActionDelegate
 
- 
- See Also:
- IObjectActionDelegate.setActivePart(IAction, IWorkbenchPart)
 
selectionChanged
public void selectionChanged(org.eclipse.jface.action.IAction action,
                             org.eclipse.jface.viewers.ISelection selection)
- 
- Specified by:
- selectionChangedin interface- org.eclipse.ui.IActionDelegate
 
- 
- See Also:
- IActionDelegate.selectionChanged(IAction, ISelection)
 
run
public void run(org.eclipse.jface.action.IAction action)
- 
- Specified by:
- runin interface- org.eclipse.ui.IActionDelegate
 
- 
- See Also:
- IActionDelegate.run(IAction)
 
getLoggingStatement
protected abstract java.lang.String getLoggingStatement(java.lang.String impl)
- Retrieve an implementation-specific logging statement to be 
 inserted into code.  Tied to logging-levels, so each action
 provides its own.
 
- 
 
- 
- Returns:
- loggingStatement
 
getConditionalLoggingStatement
protected abstract java.lang.String getConditionalLoggingStatement(java.lang.String impl)
- Retrieve an implementation-specific logging statement 
 wrapped in a conditional log-level check to be inserted
 into code.  Tied to logging-levels, so each action provides
 its own.
 
- 
 
- 
- Returns:
- loggingStatement
 
isConditionalUsed
protected abstract boolean isConditionalUsed()
- Indicate whether to use a conditional-wrapped logging statement.
 
- 
 
- 
- Returns:
- conditionalUsed
 
Copyright © 2003-2004 bonevich.com. All Rights Reserved.