當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。