--- /dev/null
+package icons;
+
+import com.intellij.openapi.util.IconLoader;
+
+import javax.swing.*;
+
+/**
+ * NOTE THIS FILE IS AUTO-GENERATED
+ * DO NOT EDIT IT BY HAND, run build/scripts/icons.gant instead
+ */
+public class PythonEducationalIcons {
+ private static Icon load(String path) {
+ return IconLoader.getIcon(path, PythonEducationalIcons.class);
+ }
+
+ public static final Icon Field = load("/icons/com/jetbrains/edu/Field.png"); // 16x16
+}
import com.jetbrains.python.debugger.PyFrameAccessor;
import com.jetbrains.python.debugger.PyStackFrame;
import com.jetbrains.python.debugger.PyStackFrameInfo;
+import icons.PythonEducationalIcons;
+import icons.PythonPsiApiIcons;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
}
final VirtualFile file = myPosition.getFile();
String frameName = myFrameInfo.getName();
- //TODO: get icons from designers
- component.setIcon(MODULE.equals(frameName) ? AllIcons.FileTypes.Text : AllIcons.Nodes.Field);
+ component.setIcon(MODULE.equals(frameName) ? PythonPsiApiIcons.PythonFile : PythonEducationalIcons.Field);
if (MODULE.equals(frameName)) {
component.append(GLOBAL_FRAME, SimpleTextAttributes.REGULAR_ATTRIBUTES);
component.append(" (" + file.getName() + ")", getGrayAttributes(SimpleTextAttributes.REGULAR_ATTRIBUTES));