本文整理了Java中org.eclipse.core.runtime.Plugin.getLog()
方法的一些代码示例,展示了Plugin.getLog()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plugin.getLog()
方法的具体详情如下:
包路径:org.eclipse.core.runtime.Plugin
类名称:Plugin
方法名:getLog
[英]Returns the log for this plug-in. If no such log exists, one is created.
[中]返回此插件的日志。如果不存在这样的日志,则创建一个日志。
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public static void log(IStatus status) {
JavaCore.getPlugin().getLog().log(status);
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
public static void log(IStatus status) {
Plugin plugin = JavaCore.getPlugin();
if (plugin == null) {
System.err.println(status.toString());
} else {
plugin.getLog().log(status);
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public static void log(IStatus status) {
Plugin plugin = JavaCore.getPlugin();
if (plugin == null) {
System.err.println(status.toString());
} else {
plugin.getLog().log(status);
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public static void log(IStatus status) {
JavaCore.getPlugin().getLog().log(status);
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
public static void log(IStatus status) {
Plugin plugin = JavaCore.getPlugin();
if (plugin == null) {
System.err.println(status.toString());
} else {
plugin.getLog().log(status);
}
}
代码示例来源:origin: org.openl/org.openl.eclipse.ui
/**
* TODO re-think: logging
*/
public void log(IStatus status) {
getLogPlugin().getLog().log(status);
// if (needToShowEddorDialog(status))
// showErrorDialog(status);
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
public static void log(IStatus status) {
Plugin plugin = JavaCore.getPlugin();
if (plugin == null) {
System.err.println(status.toString());
} else {
plugin.getLog().log(status);
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public static void log(IStatus status) {
JavaCore.getPlugin().getLog().log(status);
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public static void log(IStatus status) {
JavaCore.getPlugin().getLog().log(status);
}
}
代码示例来源:origin: org.openl/org.openl.eclipse.ui.wizard
/**
* TODO re-think: logging
*/
public static void log(IStatus status) {
getLogPlugin().getLog().log(status);
// if (needToShowEddorDialog(status))
// showErrorDialog(status);
}
代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps
public static void log(IStatus status) {
Plugin plugin = JavaCore.getPlugin();
if (plugin == null) {
System.err.println(status.toString());
} else {
plugin.getLog().log(status);
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public static void log(IStatus status) {
JavaCore.getPlugin().getLog().log(status);
}
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
public static void log(IStatus status) {
JavaCore.getPlugin().getLog().log(status);
}
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
public static void log(IStatus status) {
JavaCore.getPlugin().getLog().log(status);
}
}
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
public static void log(IStatus status) {
Plugin plugin = JavaCore.getPlugin();
if (plugin == null) {
System.err.println(status.toString());
} else {
plugin.getLog().log(status);
}
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
public static void log(IStatus status) {
JavaCore.getPlugin().getLog().log(status);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.jsf.facesconfig
/**
* Prints message to log if category matches /debug/tracefilter option.
* @param message text to print
* @param category category of the message, to be compared with /debug/tracefilter
*/
protected static void _trace(String category, String message, Throwable exception) {
if (isTracing(category)) {
message = (message != null) ? message : "null"; //$NON-NLS-1$
Status statusObj = new Status(IStatus.OK, getPluginId(), IStatus.OK, message, exception);
getPlugin().getLog().log(statusObj);
}
}
代码示例来源:origin: com.b2international.snowowl/com.b2international.snowowl.core
/**
* Convenience method for handling generic exceptions.
*
* @param exception
* @param errorMessage
*/
public static void handleException(final Plugin plugin, final Throwable exception, final String errorMessage) {
final MultiStatus errorStatus = getServiceInfo(plugin.getBundle(), exception);
final IStatus status = new Status(IStatus.ERROR, plugin.getBundle().getSymbolicName(), IStatus.ERROR, errorMessage, exception);
errorStatus.add(status);
plugin.getLog().log(status);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
@Override
public boolean encloses(IJavaElement element) {
try {
IResource underlyingResource = element.getUnderlyingResource();
if (underlyingResource != null && isJarFile(underlyingResource.getName())) {
return false;
}
} catch (JavaModelException e) {
JavaCore.getPlugin().getLog().log(e.getStatus());
}
return this.searchScope.encloses(element);
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
@Override
public boolean encloses(IJavaElement element) {
try {
IResource underlyingResource = element.getUnderlyingResource();
if (underlyingResource != null && isJarFile(underlyingResource.getName())) {
return false;
}
} catch (JavaModelException e) {
JavaCore.getPlugin().getLog().log(e.getStatus());
}
return this.searchScope.encloses(element);
}
内容来源于网络,如有侵权,请联系作者删除!