com.bonevich.eclipse.logging.popups
Class AddInfoLoggingAction

java.lang.Object
  extended bycom.bonevich.eclipse.logging.popups.AddLoggingAction
      extended bycom.bonevich.eclipse.logging.popups.AddInfoLoggingAction
All Implemented Interfaces:
org.eclipse.ui.IActionDelegate, org.eclipse.ui.IEditorActionDelegate, LoggingPluginResources

public class AddInfoLoggingAction
extends AddLoggingAction

Action to add an informational logging statement to the current JavaEditor.

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
AddInfoLoggingAction()
           
 
Method Summary
protected  java.lang.String getConditionalLoggingStatement(java.lang.String loggingImpl)
          Retrieve an implementation-specific logging statement wrapped in a conditional log-level check to be inserted into code.
protected  java.lang.String getLoggingStatement(java.lang.String loggingImpl)
          Retrieve an implementation-specific logging statement to be inserted into code.
protected  boolean isConditionalUsed()
          Indicate whether to use a conditional-wrapped logging statement.
 
Methods inherited from class com.bonevich.eclipse.logging.popups.AddLoggingAction
run, selectionChanged, setActiveEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddInfoLoggingAction

public AddInfoLoggingAction()
Method Detail

isConditionalUsed

protected boolean isConditionalUsed()
Description copied from class: AddLoggingAction
Indicate whether to use a conditional-wrapped logging statement.

Specified by:
isConditionalUsed in class AddLoggingAction
Returns:
conditionalUsed

getLoggingStatement

protected java.lang.String getLoggingStatement(java.lang.String loggingImpl)
Description copied from class: AddLoggingAction
Retrieve an implementation-specific logging statement to be inserted into code. Tied to logging-levels, so each action provides its own.

Specified by:
getLoggingStatement in class AddLoggingAction
Returns:
loggingStatement
See Also:
AddLoggingAction.getLoggingStatement(String)

getConditionalLoggingStatement

protected java.lang.String getConditionalLoggingStatement(java.lang.String loggingImpl)
Description copied from class: AddLoggingAction
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.

Specified by:
getConditionalLoggingStatement in class AddLoggingAction
Returns:
loggingStatement


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