mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -37,7 +37,7 @@ import java.util.List;
|
||||
* @author Dmitry Avdeev
|
||||
*/
|
||||
public class ExecutorAction extends AnAction {
|
||||
|
||||
@NotNull
|
||||
public static AnAction[] getActions(final int order) {
|
||||
return ContainerUtil.map2Array(ExecutorRegistry.getInstance().getRegisteredExecutors(), AnAction.class, new Function<Executor, AnAction>() {
|
||||
@Override
|
||||
@@ -51,8 +51,8 @@ public class ExecutorAction extends AnAction {
|
||||
private final Executor myExecutor;
|
||||
private final int myOrder;
|
||||
|
||||
private ExecutorAction(AnAction origin,
|
||||
Executor executor,
|
||||
private ExecutorAction(@NotNull AnAction origin,
|
||||
@NotNull Executor executor,
|
||||
int order) {
|
||||
myOrigin = origin;
|
||||
myExecutor = executor;
|
||||
|
||||
+20
-5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,11 +29,26 @@ public class GutterActionRenderer extends GutterIconRenderer implements DumbAwar
|
||||
myAction = action;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public Icon getIcon() { return myAction.getTemplatePresentation().getIcon(); }
|
||||
public AnAction getClickAction() { return myAction; }
|
||||
public String getTooltipText() { return myAction.getTemplatePresentation().getText(); }
|
||||
public boolean isNavigateAction() { return true; }
|
||||
public Icon getIcon() {
|
||||
return myAction.getTemplatePresentation().getIcon();
|
||||
}
|
||||
|
||||
@Override
|
||||
public AnAction getClickAction() {
|
||||
return myAction;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTooltipText() {
|
||||
return myAction.getTemplatePresentation().getText();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isNavigateAction() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
|
||||
Reference in New Issue
Block a user