public class LogConsolePreferences extends LogFilterRegistrar
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CUSTOM |
java.lang.String |
CUSTOM_FILTER |
static java.lang.String |
DEBUG |
static java.lang.String |
ERROR |
boolean |
FILTER_DEBUG |
boolean |
FILTER_ERRORS |
boolean |
FILTER_INFO |
boolean |
FILTER_WARNINGS |
static java.lang.String |
INFO |
static java.lang.String |
WARNING |
| Constructor and Description |
|---|
LogConsolePreferences() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilterListener(LogFilterListener l) |
static ConsoleViewContentType |
getContentType(java.lang.String type) |
static LogConsolePreferences |
getInstance(Project project) |
static Key |
getProcessOutputTypes(java.lang.String type) |
java.util.List<LogFilter> |
getRegisteredLogFilters() |
Element |
getState() |
static java.lang.String |
getType(java.lang.String text) |
boolean |
isApplicable(java.lang.String text,
java.lang.String prevType,
boolean checkStandardFilters) |
boolean |
isFilterSelected(LogFilter filter) |
void |
loadState(Element object)
This method is called when new component state is loaded.
|
void |
registerFilter(LogFilter filter) |
void |
removeFilterListener(LogFilterListener l) |
void |
selectOnlyFilter(LogFilter filter) |
void |
setFilterSelected(LogFilter filter,
boolean state) |
void |
updateCustomFilter(java.lang.String customFilter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic boolean FILTER_ERRORS
public boolean FILTER_WARNINGS
public boolean FILTER_INFO
public boolean FILTER_DEBUG
public java.lang.String CUSTOM_FILTER
public static final java.lang.String ERROR
public static final java.lang.String WARNING
public static final java.lang.String INFO
public static final java.lang.String DEBUG
public static final java.lang.String CUSTOM
public static LogConsolePreferences getInstance(Project project)
public void updateCustomFilter(java.lang.String customFilter)
public boolean isApplicable(java.lang.String text,
java.lang.String prevType,
boolean checkStandardFilters)
public static ConsoleViewContentType getContentType(java.lang.String type)
public static java.lang.String getType(java.lang.String text)
public static Key getProcessOutputTypes(java.lang.String type)
public Element getState()
null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void loadState(Element object)
PersistentStateComponentState object should be used directly, defensive copying is not required.
object - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public void registerFilter(LogFilter filter)
registerFilter in class LogFilterRegistrarpublic java.util.List<LogFilter> getRegisteredLogFilters()
getRegisteredLogFilters in class LogFilterRegistrarpublic boolean isFilterSelected(LogFilter filter)
isFilterSelected in class LogFilterRegistrarpublic void setFilterSelected(LogFilter filter, boolean state)
setFilterSelected in class LogFilterRegistrarpublic void selectOnlyFilter(LogFilter filter)
public void addFilterListener(LogFilterListener l)
public void removeFilterListener(LogFilterListener l)