本文整理汇总了Java中com.intellij.xdebugger.frame.XNavigatable类的典型用法代码示例。如果您正苦于以下问题:Java XNavigatable类的具体用法?Java XNavigatable怎么用?Java XNavigatable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XNavigatable类属于com.intellij.xdebugger.frame包,在下文中一共展示了XNavigatable类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: perform
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
@Override
protected void perform(final XValueNodeImpl node, @NotNull final String nodeName, final AnActionEvent e) {
XValue value = node.getValueContainer();
final XDebuggerEvaluationDialog dialog = e.getData(XDebuggerEvaluationDialog.KEY);
XNavigatable navigatable = new XNavigatable() {
@Override
public void setSourcePosition(@Nullable final XSourcePosition sourcePosition) {
if (sourcePosition != null) {
final Project project = node.getTree().getProject();
AppUIUtil.invokeOnEdt(new Runnable() {
@Override
public void run() {
sourcePosition.createNavigatable(project).navigate(true);
if (dialog != null && Registry.is("debugger.close.dialog.on.navigate")) {
dialog.close(DialogWrapper.CANCEL_EXIT_CODE);
}
}
}, project.getDisposed());
}
}
};
startComputingSourcePosition(value, navigatable);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:XJumpToSourceActionBase.java
示例2: perform
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
protected void perform(final XValueNodeImpl node, @NotNull final String nodeName, final AnActionEvent e) {
XValue value = node.getValueContainer();
value.computeSourcePosition(new XNavigatable() {
public void setSourcePosition(@Nullable final XSourcePosition sourcePosition) {
if (sourcePosition != null) {
AppUIUtil.invokeOnEdt(new Runnable() {
public void run() {
Project project = node.getTree().getProject();
if (project.isDisposed()) return;
sourcePosition.createNavigatable(project).navigate(true);
}
});
}
}
});
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:18,代码来源:XJumpToSourceAction.java
示例3: computeTypeSourcePosition
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
@Override
@RequiredDispatchThread
public void computeTypeSourcePosition(@NotNull XNavigatable navigatable)
{
DotNetTypeProxy typeOfVariable = getTypeOfVariable();
assert typeOfVariable != null;
DotNetTypeDeclaration[] types = findTypesByQualifiedName(typeOfVariable);
if(types.length == 0)
{
return;
}
DotNetTypeDeclaration type = types[0];
PsiElement nameIdentifier = type.getNameIdentifier();
if(nameIdentifier == null)
{
return;
}
navigatable.setSourcePosition(XDebuggerUtil.getInstance().createPositionByOffset(type.getContainingFile().getVirtualFile(), nameIdentifier.getTextOffset()));
}
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:20,代码来源:AbstractTypedValueNode.java
示例4: perform
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
protected void perform(final XValueNodeImpl node, @Nonnull final String nodeName, final AnActionEvent e) {
XValue value = node.getValueContainer();
XNavigatable navigatable = new XNavigatable() {
public void setSourcePosition(@Nullable final XSourcePosition sourcePosition) {
if (sourcePosition != null) {
AppUIUtil.invokeOnEdt(new Runnable() {
public void run() {
Project project = node.getTree().getProject();
if (project.isDisposed()) return;
sourcePosition.createNavigatable(project).navigate(true);
}
});
}
}
};
startComputingSourcePosition(value, navigatable);
}
开发者ID:consulo,项目名称:consulo,代码行数:19,代码来源:XJumpToSourceActionBase.java
示例5: computeSourcePosition
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
@Override
@RequiredDispatchThread
public void computeSourcePosition(@NotNull XNavigatable navigatable)
{
PsiElement psiElement = DotNetSourcePositionUtil.resolveTargetPsiElement(myDebugContext, myFrame);
if(psiElement == null)
{
return;
}
DotNetCodeBlockOwner codeBlockOwner = PsiTreeUtil.getParentOfType(psiElement, DotNetCodeBlockOwner.class);
if(codeBlockOwner == null)
{
return;
}
// search parameterlist owner
DotNetParameterListOwner parameterListOwner = PsiTreeUtil.getParentOfType(codeBlockOwner, DotNetParameterListOwner.class, false);
if(parameterListOwner == null)
{
return;
}
DotNetParameter[] psiParameters = parameterListOwner.getParameters();
DotNetSourceLocation sourceLocation = myFrame.getSourceLocation();
if(sourceLocation == null)
{
return;
}
DotNetParameter parameter = psiParameters[myParameter.getIndex()];
PsiElement nameIdentifier = parameter.getNameIdentifier();
if(nameIdentifier == null)
{
return;
}
navigatable.setSourcePosition(XDebuggerUtil.getInstance().createPositionByOffset(parameter.getContainingFile().getVirtualFile(), nameIdentifier.getTextOffset()));
}
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:39,代码来源:DotNetMethodParameterValueNode.java
示例6: startComputingSourcePosition
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
@Override
protected void startComputingSourcePosition(XValue value, XNavigatable navigatable) {
value.computeTypeSourcePosition(navigatable);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:XJumpToTypeSourceAction.java
示例7: startComputingSourcePosition
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
@Override
protected void startComputingSourcePosition(XValue value, XNavigatable navigatable) {
value.computeSourcePosition(navigatable);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:XJumpToSourceAction.java
示例8: computeSourcePosition
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
@Override
public void computeSourcePosition(@NotNull XNavigatable navigatable) {
super.computeSourcePosition(
navigatable);
}
开发者ID:consulo,项目名称:consulo-lua,代码行数:6,代码来源:LuaDebugValue.java
示例9: computeSourcePosition
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
@Override
@RequiredDispatchThread
public void computeSourcePosition(@NotNull XNavigatable navigatable)
{
computeSourcePosition(navigatable, getName(), myDebugContext, myFrameProxy);
}
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:7,代码来源:DotNetLocalVariableValueNode.java
示例10: computeSourcePosition
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
@Override
@RequiredDispatchThread
public void computeSourcePosition(@NotNull XNavigatable navigatable)
{
DotNetLocalVariableValueNode.computeSourcePosition(navigatable, getName(), myDebugContext, myFrameProxy);
}
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:7,代码来源:DotNetLocalVariableValueWrapperNode.java
示例11: computeSourcePosition
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
@Override
public void computeSourcePosition(@NotNull XNavigatable navigatable)
{
navigatable.setSourcePosition(XsltSourcePosition.create(myVariable));
}
开发者ID:consulo,项目名称:consulo-xslt,代码行数:6,代码来源:XsltStackFrame.java
示例12: startComputingSourcePosition
import com.intellij.xdebugger.frame.XNavigatable; //导入依赖的package包/类
protected abstract void startComputingSourcePosition(XValue value, XNavigatable navigatable);
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:2,代码来源:XJumpToSourceActionBase.java
注:本文中的com.intellij.xdebugger.frame.XNavigatable类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论