本文整理汇总了Java中org.eclipse.debug.core.DebugPlugin.getDefault方法的典型用法代码示例。如果您正苦于以下问题:Java DebugPlugin.getDefault方法的具体用法?Java DebugPlugin.getDefault怎么用?Java DebugPlugin.getDefault使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.debug.core.DebugPlugin
的用法示例。
在下文中一共展示了DebugPlugin.getDefault方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: interpreterFinished
import org.eclipse.debug.core.DebugPlugin; //导入方法依赖的package包/类
@Override
public void interpreterFinished(InterpreterState state, List<EventReason> reasons) {
this.isStopped = true;
this.isSuspended = false;
IDebugTarget target = null;
if (DebugPlugin.getDefault() != null) {
synchronized (this.debugElements) {
for (DebugElement element : this.debugElements) {
element.fireTerminateEvent();
target = element.getDebugTarget();
}
}
DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[]{new DebugEvent(BfProcess.this, DebugEvent.TERMINATE)});
if (target != null && target instanceof BfDebugTarget) {
((BfDebugTarget) target).fireTerminateEvent();
}
}
}
示例2: fireTerminateEvent
import org.eclipse.debug.core.DebugPlugin; //导入方法依赖的package包/类
/**
* Fires a terminate event.
*/
protected void fireTerminateEvent() {
DebugPlugin manager= DebugPlugin.getDefault();
if (manager != null) {
manager.fireDebugEventSet(new DebugEvent[]{new DebugEvent(this, DebugEvent.TERMINATE)});
}
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:10,代码来源:SocketListenMultiConnectorProcess.java
示例3: fireReadyToAcceptEvent
import org.eclipse.debug.core.DebugPlugin; //导入方法依赖的package包/类
/**
* Fires a custom model specific event when this connector is ready to accept incoming
* connections from a remote VM.
*/
protected void fireReadyToAcceptEvent(){
DebugPlugin manager= DebugPlugin.getDefault();
if (manager != null) {
manager.fireDebugEventSet(new DebugEvent[]{new DebugEvent(this, DebugEvent.MODEL_SPECIFIC, IJavaLaunchConfigurationConstants.DETAIL_CONFIG_READY_TO_ACCEPT_REMOTE_VM_CONNECTION)});
}
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:11,代码来源:SocketListenMultiConnectorProcess.java
示例4: fireEvent
import org.eclipse.debug.core.DebugPlugin; //导入方法依赖的package包/类
/**
* Fires the given debug event.
*
* @param event debug event to fire
*/
protected void fireEvent(DebugEvent event) {
DebugPlugin manager= DebugPlugin.getDefault();
if (manager != null) {
manager.fireDebugEventSet(new DebugEvent[]{event});
}
}
示例5: fireDebugEvent
import org.eclipse.debug.core.DebugPlugin; //导入方法依赖的package包/类
/**
* Fires a debug event
*
* @param event to be fired
*/
public static void fireDebugEvent(DebugEvent event) {
DebugPlugin debugPlugin = DebugPlugin.getDefault();
if (debugPlugin != null) {
debugPlugin.fireDebugEventSet(new DebugEvent[] { event });
}
}
示例6: DumpExecutionDataHandler
import org.eclipse.debug.core.DebugPlugin; //导入方法依赖的package包/类
public DumpExecutionDataHandler() {
final DebugPlugin debug = DebugPlugin.getDefault();
debug.getLaunchManager().addLaunchListener(launchListener);
debug.addDebugEventListener(debugListener);
}
示例7: dispose
import org.eclipse.debug.core.DebugPlugin; //导入方法依赖的package包/类
@Override
public void dispose() {
final DebugPlugin debug = DebugPlugin.getDefault();
debug.getLaunchManager().removeLaunchListener(launchListener);
DebugPlugin.getDefault().addDebugEventListener(debugListener);
}
示例8: fireEvent
import org.eclipse.debug.core.DebugPlugin; //导入方法依赖的package包/类
private void fireEvent(DebugEvent event) {
DebugPlugin manager = DebugPlugin.getDefault();
if (manager != null) {
manager.fireDebugEventSet(new DebugEvent[] { event });
}
}