本文整理汇总了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());
}
示例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);
}
示例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
);
}
示例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
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例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"));
}
示例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"));
}
示例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);
}
示例12: getPresentation
import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation() {
throw new IllegalStateException();
}
示例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);
}
示例14: getPresentation
import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation() {
throw new IllegalStateException();
}
示例15: getPresentation
import com.intellij.ide.util.treeView.smartTree.ActionPresentation; //导入依赖的package包/类
@Override
@NotNull
public ActionPresentation getPresentation() {
return PRESENTATION;
}