mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
YouTrack icons are back
This commit is contained in:
@@ -254,7 +254,11 @@ public class LocalTaskImpl extends LocalTask {
|
||||
if (customIcon != null) {
|
||||
return IconLoader.getIcon(customIcon, LocalTask.class);
|
||||
}
|
||||
switch (myType) {
|
||||
return getIconFromType(myType, isIssue());
|
||||
}
|
||||
|
||||
public static Icon getIconFromType(TaskType type, boolean issue) {
|
||||
switch (type) {
|
||||
case BUG:
|
||||
return TasksIcons.Bug;
|
||||
case EXCEPTION:
|
||||
@@ -263,7 +267,7 @@ public class LocalTaskImpl extends LocalTask {
|
||||
return TasksIcons.Feature;
|
||||
default:
|
||||
case OTHER:
|
||||
return isIssue() ? TasksIcons.Other : TasksIcons.Unknown;
|
||||
return issue ? TasksIcons.Other : TasksIcons.Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@ import com.intellij.openapi.util.io.StreamUtil;
|
||||
import com.intellij.tasks.*;
|
||||
import com.intellij.tasks.impl.BaseRepository;
|
||||
import com.intellij.tasks.impl.BaseRepositoryImpl;
|
||||
import com.intellij.tasks.impl.LocalTaskImpl;
|
||||
import com.intellij.util.NullableFunction;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import com.intellij.util.text.VersionComparatorUtil;
|
||||
import com.intellij.util.xmlb.annotations.Tag;
|
||||
import icons.TasksIcons;
|
||||
import org.apache.axis.utils.XMLChar;
|
||||
import org.apache.commons.httpclient.HttpClient;
|
||||
import org.apache.commons.httpclient.HttpMethod;
|
||||
@@ -243,7 +243,7 @@ public class YouTrackRepository extends BaseRepositoryImpl {
|
||||
@NotNull
|
||||
@Override
|
||||
public Icon getIcon() {
|
||||
return TasksIcons.Youtrack;
|
||||
return LocalTaskImpl.getIconFromType(getType(), isIssue());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user