本文整理汇总了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();
}
}
示例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;
}
示例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());
}
示例4: getPresentation
import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
@Nullable
protected abstract TreeNodePresentation getPresentation();
示例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;
}
示例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;
}
示例7: getElementPresentation
import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
public TreeNodePresentation getElementPresentation() {
return myPresentation;
}
示例8: DelegatedSourceItemPresentation
import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
public DelegatedSourceItemPresentation(TreeNodePresentation presentation) {
myPresentation = presentation;
}
示例9: DelegatedPackagingElementPresentation
import com.intellij.packaging.ui.TreeNodePresentation; //导入依赖的package包/类
public DelegatedPackagingElementPresentation(TreeNodePresentation delegate) {
myDelegate = delegate;
}
示例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;
}