mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
introduce AnimatedIcon.Default.INSTANCE
This commit is contained in:
@@ -4,14 +4,10 @@ package com.intellij.execution.services;
|
||||
import com.intellij.openapi.components.ServiceManager;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Key;
|
||||
import com.intellij.ui.AnimatedIcon;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
@ApiStatus.Experimental
|
||||
public interface ServiceViewManager {
|
||||
Icon RUNNING_ICON = new AnimatedIcon.Default();
|
||||
Key<Boolean> SERVICE_VIEW_MASTER_COMPONENT = Key.create("SERVICE_VIEW_MASTER_COMPONENT");
|
||||
|
||||
void selectNode(Object node);
|
||||
|
||||
@@ -45,6 +45,7 @@ public class AnimatedIcon implements Icon {
|
||||
}
|
||||
|
||||
public static class Default extends AnimatedIcon {
|
||||
|
||||
public Default() {
|
||||
super(DELAY, ICONS.toArray(new Icon[0]));
|
||||
}
|
||||
@@ -59,6 +60,8 @@ public class AnimatedIcon implements Icon {
|
||||
AllIcons.Process.Step_6,
|
||||
AllIcons.Process.Step_7,
|
||||
AllIcons.Process.Step_8);
|
||||
|
||||
public static final AnimatedIcon INSTANCE = new Default();
|
||||
}
|
||||
|
||||
public static class Big extends AnimatedIcon {
|
||||
|
||||
Reference in New Issue
Block a user