本文整理汇总了Java中org.eclipse.debug.core.model.RuntimeProcess类的典型用法代码示例。如果您正苦于以下问题:Java RuntimeProcess类的具体用法?Java RuntimeProcess怎么用?Java RuntimeProcess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RuntimeProcess类属于org.eclipse.debug.core.model包,在下文中一共展示了RuntimeProcess类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: handleDebugEvents
import org.eclipse.debug.core.model.RuntimeProcess; //导入依赖的package包/类
@Override
public void handleDebugEvents(DebugEvent[] events) {
for (int i = 0; i < events.length; i++) {
DebugEvent debugEvent = events[i];
if (debugEvent.getKind() == DebugEvent.TERMINATE) {
// this event is fired for each thread and stuff, but we only want to remove our breakpoints,
// when the JVM process terminates
if (debugEvent.getSource() instanceof RuntimeProcess) {
// remove this debug event listener to release it for garbage collection
DebugPlugin.getDefault().removeDebugEventListener(this);
// remove temporary jimple breakpoints
try {
JimpleBreakpointManager.getInstance().removeTemporaryBreakpoints();
} catch (CoreException e) {
logger.error("Couldn't delete temporary jimple breakpoints after termination", e);
}
// stop the monitoring server
monitoringServer.stop();
// delete the agent jar
if (agentJar != null && agentJar.exists()) {
agentJar.delete();
}
// remove the jimple instruction pointer marker (green debug line highlighting)
removeJimpleInstructionPointerMarker();
}
}
}
}
开发者ID:VisuFlow,项目名称:visuflow-plugin,代码行数:33,代码来源:TerminationListener.java
示例2: connect
import org.eclipse.debug.core.model.RuntimeProcess; //导入依赖的package包/类
public void connect(TextConsole console) {
try {
/*
* Now we have to go digging for the Connect IQ project.
*
* It seems to be rather difficult to find, and we do with the debug
* info file.
*/
Object consoleProcessObj = console
.getAttribute("org.eclipse.debug.ui.ATTR_CONSOLE_PROCESS");
if (!(consoleProcessObj instanceof RuntimeProcess))
return;
RuntimeProcess rp = (RuntimeProcess) consoleProcessObj;
ILaunch launch = rp.getLaunch();
if (launch == null)
return;
ILaunchConfiguration launchConf = launch.getLaunchConfiguration();
if (launchConf == null)
return;
String debugInfoFile = launchConf.getAttribute(
"connectiq.debugInfo", (String) null);
if (debugInfoFile == null)
return;
myDebugInfo = DebugInfoManager.getDebugInfo(debugInfoFile);
myGlobalDebugInfo = getGlobalDebugInfo();
myConsole = console;
} catch (CoreException e) {
}
}
开发者ID:blackdogit,项目名称:connectiq-monkeyc,代码行数:32,代码来源:PCMatcher.java
示例3: handleDebugEvents
import org.eclipse.debug.core.model.RuntimeProcess; //导入依赖的package包/类
public void handleDebugEvents(DebugEvent[] events) {
if(events.length > 0 && runtime != null && !runtime.isTerminated()) {
DebugEvent e = events[0];
PandionJUI.executeUpdate(() -> {
if(e.getKind() == DebugEvent.SUSPEND && e.getDetail() == DebugEvent.STEP_END && exception == null) {
IJavaThread thread = (IJavaThread) e.getSource();
IStackFrame f = thread.getTopStackFrame();
if(f == null)
return;
ISourceLocator sourceLocator = f.getLaunch().getSourceLocator();
Object sourceElement = sourceLocator == null ? null : sourceLocator.getSourceElement(f);
if(sourceElement != null) {
if(sourceElement instanceof IFile)
handleFrames(thread);
else
thread.stepReturn();
if(f != null && f.getLineNumber() == -1)
thread.resume(); // to jump over injected code
}
else {
thread.stepReturn();
}
// Job job = Job.create("Update table", (ICoreRunnable) monitor -> {
// System.out.println("STEP");
// thread.stepInto();
// });
// job.schedule(3000);
}
else if(e.getKind() == DebugEvent.CHANGE && e.getDetail() == DebugEvent.CONTENT) {
runtime = new RuntimeModel();
runtimeView.setInput(runtime);
}
else if(e.getKind() == DebugEvent.TERMINATE && e.getSource() instanceof RuntimeProcess) {
runtime.setTerminated();
}
});
}
}
开发者ID:andre-santos-pt,项目名称:pandionj,代码行数:42,代码来源:PandionJView.java
示例4: newProcess
import org.eclipse.debug.core.model.RuntimeProcess; //导入依赖的package包/类
@Override
public IProcess newProcess(ILaunch launch, Process process, String label, Map attributes) {
return new RuntimeProcess(launch, new ProcessWrapper(process), label, attributes);
}
开发者ID:fabioz,项目名称:Pydev,代码行数:5,代码来源:PyProcessFactory.java
注:本文中的org.eclipse.debug.core.model.RuntimeProcess类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论