本文整理汇总了Java中org.eclipse.debug.ui.IDebugView类的典型用法代码示例。如果您正苦于以下问题:Java IDebugView类的具体用法?Java IDebugView怎么用?Java IDebugView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IDebugView类属于org.eclipse.debug.ui包,在下文中一共展示了IDebugView类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: selectionChanged
import org.eclipse.debug.ui.IDebugView; //导入依赖的package包/类
@Override
public void selectionChanged(final IWorkbenchPart part, final ISelection selection)
{
// allow views to be selectively enabled/disabled
if (part instanceof IDebugView && selection instanceof IStructuredSelection)
{
Object object = ((IStructuredSelection) selection).getFirstElement();
if (!selection.isEmpty())
{
// Determine if an IJiveDebugTarget is associated with the selection
if (object instanceof IStackFrame)
{
object = ((IStackFrame) object).getThread();
}
if (object instanceof IThread)
{
object = ((IThread) object).getDebugTarget();
}
if (object instanceof IProcess)
{
object = ((IProcess) object).getLaunch();
}
if (object instanceof ILaunch)
{
object = ((ILaunch) object).getDebugTarget();
}
}
// Display the debug target
if (object instanceof IJiveDebugTarget)
{
JiveLaunchManager.INSTANCE.targetSelected((IJiveDebugTarget) object);
}
}
}
示例2: getStructuredViewer
import org.eclipse.debug.ui.IDebugView; //导入依赖的package包/类
protected StructuredViewer getStructuredViewer() {
if (fView == null) {
return null;
}
IDebugView view = (IDebugView) fView.getAdapter(IDebugView.class);
if (view != null) {
Viewer viewer = view.getViewer();
if (viewer instanceof StructuredViewer) {
return (StructuredViewer) viewer;
}
}
return null;
}