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


Java ActionPresentation类代码示例

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


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

示例1: update

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
public void update(AnActionEvent e) {
  super.update(e);
  Presentation presentation = e.getPresentation();
  ActionPresentation actionPresentation = myAction.getPresentation();
  if (presentation.getClientProperty(MenuItemPresentationFactory.HIDE_ICON) == null) {
    presentation.setIcon(actionPresentation.getIcon());
  }
  presentation.setText(actionPresentation.getText());
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:TreeActionWrapper.java

示例2: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@NotNull
@Override
public ActionPresentation getPresentation() {
  return new ActionPresentationData(IdeBundle.message("action.structureview.show.inherited"),
                                    null,
                                    AllIcons.Hierarchy.Supertypes);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:PyInheritedMembersFilter.java

示例3: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@NotNull
public ActionPresentation getPresentation() {
  return new ActionPresentationData(
    IdeBundle.message("action.structureview.show.fields"),
    null,
    PlatformIcons.FIELD_ICON
  );
}
 
开发者ID:consulo,项目名称:consulo-haxe,代码行数:9,代码来源:HaxeStructureViewModel.java

示例4: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Nonnull
@Override
public ActionPresentation getPresentation() {
  return new ActionPresentationData(ExecutionBundle.message("run.dashboard.group.by.status.action.name"),
                                    ExecutionBundle.message("run.dashboard.group.by.status.action.name"),
                                    AllIcons.Actions.GroupByPrefix); // TODO [konstantin.aleev] provide new icon
}
 
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:StatusDashboardGroupingRule.java

示例5: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Nonnull
@Override
public ActionPresentation getPresentation() {
  return new ActionPresentationData(ExecutionBundle.message("run.dashboard.group.by.folder.action.name"),
                                    ExecutionBundle.message("run.dashboard.group.by.folder.action.name"),
                                    AllIcons.Actions.GroupByPackage);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:FolderDashboardGroupingRule.java

示例6: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Nonnull
@Override
public ActionPresentation getPresentation() {
  return new ActionPresentationData(ExecutionBundle.message("run.dashboard.group.by.type.action.name"),
                                    ExecutionBundle.message("run.dashboard.group.by.type.action.name"),
                                    AllIcons.Actions.GroupByFile);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:ConfigurationTypeDashboardGroupingRule.java

示例7: update

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
public void update(@Nonnull AnActionEvent e) {
  super.update(e);
  Presentation presentation = e.getPresentation();
  ActionPresentation actionPresentation = myGrouper.getRule().getPresentation();
  presentation.setText(actionPresentation.getText());
  presentation.setDescription(actionPresentation.getDescription());
  presentation.setIcon(actionPresentation.getIcon());
}
 
开发者ID:consulo,项目名称:consulo,代码行数:10,代码来源:RunDashboardContent.java

示例8: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation()
{
	return new ActionPresentationData(IdeBundle.message("action.sort.alphabetically"), IdeBundle.message("action.sort.alphabetically"),
			AllIcons.ObjectBrowser.Sorted);
}
 
开发者ID:consulo,项目名称:consulo-xml,代码行数:8,代码来源:HtmlStructureViewTreeModel.java

示例9: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation()
{
	return new ActionPresentationData(IdeBundle.message("action.structureview.group.methods.by.defining.type"), null,
			IconLoader.getIcon("/general/implementingMethod.png"));
}
 
开发者ID:consulo,项目名称:consulo-javascript,代码行数:8,代码来源:JSSuperGrouper.java

示例10: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation()
{
	return new ActionPresentationData(IdeBundle.message("action.structureview.show.inherited"), null, IconLoader.getIcon("/hierarchy/supertypes" +
			".png"));
}
 
开发者ID:consulo,项目名称:consulo-javascript,代码行数:8,代码来源:JSStructureViewModel.java

示例11: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@NotNull
@Override
public ActionPresentation getPresentation() {
    return new ActionPresentationData("Sort by type", "Sorts the elements by type", AllIcons.ObjectBrowser.SortByType);
}
 
开发者ID:datathings,项目名称:greycat-idea-plugin,代码行数:6,代码来源:GCMStructureViewModel.java

示例12: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation() {
    throw new IllegalStateException();
}
 
开发者ID:protostuff,项目名称:protobuf-jetbrains-plugin,代码行数:6,代码来源:KindSorter.java

示例13: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation() {
    String message = ProtostuffBundle.message("action.structureview.show.fields");
    return new ActionPresentationData(message, null, Icons.FIELD);
}
 
开发者ID:protostuff,项目名称:protobuf-jetbrains-plugin,代码行数:7,代码来源:ProtoFieldsNodeProvider.java

示例14: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation() {
  throw new IllegalStateException();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:KindSorter.java

示例15: getPresentation

import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation() {
  return PRESENTATION;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:VisibilitySorter.java


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