本文整理汇总了Java中com.intellij.openapi.diagnostic.IdeaLoggingEvent.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java IdeaLoggingEvent.getMessage方法的具体用法?Java IdeaLoggingEvent.getMessage怎么用?Java IdeaLoggingEvent.getMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.diagnostic.IdeaLoggingEvent
的用法示例。
在下文中一共展示了IdeaLoggingEvent.getMessage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LogMessage
import com.intellij.openapi.diagnostic.IdeaLoggingEvent; //导入方法依赖的package包/类
public LogMessage(IdeaLoggingEvent aEvent) {
super();
myThrowable = aEvent.getThrowable();
if (StringUtil.isNotEmpty(aEvent.getMessage())) {
myHeader = aEvent.getMessage();
}
if (myThrowable != null && StringUtil.isNotEmpty(myThrowable.getMessage())) {
if (!myHeader.equals(NO_MESSAGE)) {
if (!myHeader.endsWith(": ") && !myHeader.endsWith(":")) {
myHeader += ": ";
}
myHeader += myThrowable.getMessage();
}
else {
myHeader = myThrowable.getMessage();
}
}
}
示例2: LogMessage
import com.intellij.openapi.diagnostic.IdeaLoggingEvent; //导入方法依赖的package包/类
public LogMessage(IdeaLoggingEvent aEvent) {
super();
myThrowable = aEvent.getThrowable();
String header = null;
if (!StringUtil.isEmptyOrSpaces(aEvent.getMessage())) {
header = aEvent.getMessage();
}
if (myThrowable != null) {
String message = myThrowable.getMessage();
if (StringUtil.isNotEmpty(message) && (header == null || !header.startsWith(message))) {
if (header != null) {
if (header.endsWith(":")) header += " ";
else if (!header.endsWith(": ")) header += ": ";
header += message;
}
else {
header = message;
}
}
}
if (header == null) {
header = "No message";
}
myHeader = header;
}
示例3: LogEventException
import com.intellij.openapi.diagnostic.IdeaLoggingEvent; //导入方法依赖的package包/类
public LogEventException(IdeaLoggingEvent logMessage) {
super(logMessage.getMessage());
myLogMessage = logMessage;
}