本文整理汇总了Java中com.intellij.codeInsight.generation.MemberChooserObject类的典型用法代码示例。如果您正苦于以下问题:Java MemberChooserObject类的具体用法?Java MemberChooserObject怎么用?Java MemberChooserObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MemberChooserObject类属于com.intellij.codeInsight.generation包,在下文中一共展示了MemberChooserObject类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getParentNodeDelegate
import com.intellij.codeInsight.generation.MemberChooserObject; //导入依赖的package包/类
@Override
public MemberChooserObject getParentNodeDelegate()
{
final PsiElement parent = myDeclaration.getParent();
if(parent == null)
{
return null;
}
return new ClassChooseObject((DotNetTypeDeclaration) parent);
}
开发者ID:consulo,项目名称:consulo-csharp,代码行数:11,代码来源:CSharpMemberChooseObject.java
示例2: getParentNodeDelegate
import com.intellij.codeInsight.generation.MemberChooserObject; //导入依赖的package包/类
@Override
public MemberChooserObject getParentNodeDelegate()
{
final PsiElement element = getPsiElement();
PsiElement parent = JSResolveUtil.findParent(element);
return new JSNamedElementNode((JSNamedElement) parent);
}
开发者ID:consulo,项目名称:consulo-javascript,代码行数:8,代码来源:JSNamedElementNode.java
示例3: getParentNodeDelegate
import com.intellij.codeInsight.generation.MemberChooserObject; //导入依赖的package包/类
@Override
public MemberChooserObject getParentNodeDelegate() {
return new PsiMethodMember((PsiMethod)myParameter.getDeclarationScope());
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:ParameterClassMember.java
示例4: getParentNodeDelegate
import com.intellij.codeInsight.generation.MemberChooserObject; //导入依赖的package包/类
public MemberChooserObject getParentNodeDelegate() {
final PyElement element = (PyElement)getPsiElement();
final PyClass parent = PsiTreeUtil.getParentOfType(element, PyClass.class, false);
assert (parent != null);
return new PyMethodMember(parent);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:PyMethodMember.java
示例5: getParentNodeDelegate
import com.intellij.codeInsight.generation.MemberChooserObject; //导入依赖的package包/类
public MemberChooserObject getParentNodeDelegate() {
MavenDomDependency dependency = getDependency();
return new MavenDomProjectModelFileMemberChooserObjectBase(dependency.getXmlTag().getContainingFile(),
getProjectName(dependency));
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:GenerateDependencyUtil.java
示例6: getParentNodeDelegate
import com.intellij.codeInsight.generation.MemberChooserObject; //导入依赖的package包/类
@Nullable
@Override
public MemberChooserObject getParentNodeDelegate() {
final HaxeNamedComponent result = PsiTreeUtil.getParentOfType(getPsiElement(), HaxeNamedComponent.class);
return result == null ? null : new HaxeNamedElementNode(result);
}
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:7,代码来源:HaxeNamedElementNode.java
注:本文中的com.intellij.codeInsight.generation.MemberChooserObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论