本文整理匯總了Java中com.intellij.debugger.ui.impl.DebuggerTreePanel.getContext方法的典型用法代碼示例。如果您正苦於以下問題:Java DebuggerTreePanel.getContext方法的具體用法?Java DebuggerTreePanel.getContext怎麽用?Java DebuggerTreePanel.getContext使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.intellij.debugger.ui.impl.DebuggerTreePanel
的用法示例。
在下文中一共展示了DebuggerTreePanel.getContext方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getDebuggerContext
import com.intellij.debugger.ui.impl.DebuggerTreePanel; //導入方法依賴的package包/類
public static DebuggerContextImpl getDebuggerContext(DataContext dataContext) {
DebuggerTreePanel panel = getPanel(dataContext);
if(panel != null) {
return panel.getContext();
} else {
Project project = CommonDataKeys.PROJECT.getData(dataContext);
return project != null ? (DebuggerManagerEx.getInstanceEx(project)).getContext() : DebuggerContextImpl.EMPTY_CONTEXT;
}
}
示例2: getDebuggerContext
import com.intellij.debugger.ui.impl.DebuggerTreePanel; //導入方法依賴的package包/類
public static DebuggerContextImpl getDebuggerContext(DataContext dataContext) {
DebuggerTreePanel panel = getPanel(dataContext);
if(panel != null) {
return panel.getContext();
} else {
Project project = PlatformDataKeys.PROJECT.getData(dataContext);
return project != null ? (DebuggerManagerEx.getInstanceEx(project)).getContext() : DebuggerContextImpl.EMPTY_CONTEXT;
}
}
示例3: getDebuggerContext
import com.intellij.debugger.ui.impl.DebuggerTreePanel; //導入方法依賴的package包/類
public static DebuggerContextImpl getDebuggerContext(DataContext dataContext)
{
DebuggerTreePanel panel = getPanel(dataContext);
if(panel != null)
{
return panel.getContext();
}
else
{
Project project = dataContext.getData(CommonDataKeys.PROJECT);
return project != null ? (DebuggerManagerEx.getInstanceEx(project)).getContext() : DebuggerContextImpl.EMPTY_CONTEXT;
}
}