本文整理匯總了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;
}