当前位置: 首页>>代码示例>>Java>>正文


Java TreeNodePresentation类代码示例

本文整理汇总了Java中com.intellij.packaging.ui.TreeNodePresentation的典型用法代码示例。如果您正苦于以下问题:Java TreeNodePresentation类的具体用法?Java TreeNodePresentation怎么用?Java TreeNodePresentation使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TreeNodePresentation类属于com.intellij.packaging.ui包,在下文中一共展示了TreeNodePresentation类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: actionPerformed

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
@Override
public void actionPerformed(final AnActionEvent e) {
  final TreeNodePresentation presentation = getPresentation();
  if (presentation != null) {
    presentation.navigateToSource();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:ArtifactEditorNavigateActionBase.java

示例2: getPresentation

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
@Override
protected TreeNodePresentation getPresentation() {
  final List<SourceItemNode> nodes = mySourceItemsTree.getSelectedSourceItemNodes();
  if (nodes.size() == 1) {
    return nodes.get(0).getElementPresentation();
  }
  return null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:SourceItemNavigateAction.java

示例3: update

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
@Override
public void update(final AnActionEvent e) {
  final TreeNodePresentation presentation = getPresentation();
  e.getPresentation().setEnabled(presentation != null && presentation.canNavigateToSource());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ArtifactEditorNavigateActionBase.java

示例4: getPresentation

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
@Nullable
protected abstract TreeNodePresentation getPresentation();
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:ArtifactEditorNavigateActionBase.java

示例5: getPresentation

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
@Override
@Nullable
protected TreeNodePresentation getPresentation() {
  PackagingElementNode<?> node = myLayoutTreeComponent.getSelection().getNodeIfSingle();
  return node != null ? node.getElementPresentation() : null;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:LayoutTreeNavigateAction.java

示例6: ArtifactsTreeNode

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
protected ArtifactsTreeNode(ArtifactEditorContext context, NodeDescriptor parentDescriptor, final TreeNodePresentation presentation) {
  super(context.getProject(), parentDescriptor);
  myContext = context;
  myPresentation = presentation;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:ArtifactsTreeNode.java

示例7: getElementPresentation

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
public TreeNodePresentation getElementPresentation() {
  return myPresentation;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:ArtifactsTreeNode.java

示例8: DelegatedSourceItemPresentation

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
public DelegatedSourceItemPresentation(TreeNodePresentation presentation) {
  myPresentation = presentation;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:DelegatedSourceItemPresentation.java

示例9: DelegatedPackagingElementPresentation

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
public DelegatedPackagingElementPresentation(TreeNodePresentation delegate) {
  myDelegate = delegate;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:DelegatedPackagingElementPresentation.java

示例10: SourceItemNodeBase

import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
public SourceItemNodeBase(ArtifactEditorContext context, NodeDescriptor parentDescriptor, final TreeNodePresentation presentation,
                          ArtifactEditorEx artifactEditor) {
  super(context, parentDescriptor, presentation);
  myArtifact = artifactEditor.getArtifact();
  myArtifactEditor = artifactEditor;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:7,代码来源:SourceItemNodeBase.java


注:本文中的com.intellij.packaging.ui.TreeNodePresentation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。