本文整理汇总了Java中com.sun.glass.ui.Application.reportException方法的典型用法代码示例。如果您正苦于以下问题:Java Application.reportException方法的具体用法?Java Application.reportException怎么用?Java Application.reportException使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.glass.ui.Application
的用法示例。
在下文中一共展示了Application.reportException方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: run
import com.sun.glass.ui.Application; //导入方法依赖的package包/类
public void run() {
buffer.startIteration();
// Do not lock the buffer while processing events. We still want to be
// able to add incoming events to it.
try {
inputProcessor.processEvents(LinuxInputDevice.this);
} catch (RuntimeException e) {
Application.reportException(e);
}
synchronized (buffer) {
if (buffer.hasNextEvent()) {
// a new event came in after the call to processEvents
runnableProcessor.invokeLater(processor);
} else {
processor.scheduled = false;
}
buffer.compact();
}
}
示例2: runLoop
import com.sun.glass.ui.Application; //导入方法依赖的package包/类
private Object runLoop() {
final RunLoopControl control = new RunLoopControl();
//push this new instance on the stack
activeRunLoops.push(control);
control.active = true;
while (control.active) {
try {
queue.getNextRunnable().run();
} catch (Throwable e) {
Application.reportException(e);
}
}
return control.release;
}
示例3: _setEnabled
import com.sun.glass.ui.Application; //导入方法依赖的package包/类
@Override
protected void _setEnabled(long ptr, boolean enabled){
if (!enabled &&
(this == MonocleWindowManager.getInstance().getFocusedWindow())) {
MonocleView view = (MonocleView)getView();
try {
view.notifyMouse(MouseEvent.EXIT, MouseEvent.BUTTON_NONE,
0, 0, 0, 0, 0, false, false);
} catch (RuntimeException e) {
Application.reportException(e);
}
}
}