added icons
authorliana.bakradze <liana.bakradze@jetbrains.com>
Wed, 19 Aug 2015 12:41:47 +0000 (15:41 +0300)
committerliana.bakradze <liana.bakradze@jetbrains.com>
Wed, 19 Aug 2015 12:41:47 +0000 (15:41 +0300)
python/edu/gen/icons/PythonEducationalIcons.java [new file with mode: 0644]
python/edu/resources/icon-robots.txt [new file with mode: 0644]
python/edu/resources/icons/com/jetbrains/edu/Field.png [new file with mode: 0644]
python/edu/resources/icons/com/jetbrains/edu/Field@2x.png [new file with mode: 0644]
python/edu/src/com/jetbrains/python/edu/debugger/PyEduStackFrame.java

diff --git a/python/edu/gen/icons/PythonEducationalIcons.java b/python/edu/gen/icons/PythonEducationalIcons.java
new file mode 100644 (file)
index 0000000..c8828ed
--- /dev/null
@@ -0,0 +1,17 @@
+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
+}
diff --git a/python/edu/resources/icon-robots.txt b/python/edu/resources/icon-robots.txt
new file mode 100644 (file)
index 0000000..c6ebcdb
--- /dev/null
@@ -0,0 +1 @@
+skip: tips
diff --git a/python/edu/resources/icons/com/jetbrains/edu/Field.png b/python/edu/resources/icons/com/jetbrains/edu/Field.png
new file mode 100644 (file)
index 0000000..f4a6122
Binary files /dev/null and b/python/edu/resources/icons/com/jetbrains/edu/Field.png differ
diff --git a/python/edu/resources/icons/com/jetbrains/edu/Field@2x.png b/python/edu/resources/icons/com/jetbrains/edu/Field@2x.png
new file mode 100644 (file)
index 0000000..8ad521f
Binary files /dev/null and b/python/edu/resources/icons/com/jetbrains/edu/Field@2x.png differ
index f9b3f172cf655ac8e730a70a91e9194f32e9c6dd..f8b557e2b418bbe4adda8b91edff4a8fdf99160c 100644 (file)
@@ -13,6 +13,8 @@ import com.intellij.xdebugger.frame.XValueGroup;
 import com.jetbrains.python.debugger.PyFrameAccessor;
 import com.jetbrains.python.debugger.PyStackFrame;
 import com.jetbrains.python.debugger.PyStackFrameInfo;
 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;
 
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
@@ -46,8 +48,7 @@ public class PyEduStackFrame extends PyStackFrame {
     }
     final VirtualFile file = myPosition.getFile();
     String frameName = myFrameInfo.getName();
     }
     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));
     if (MODULE.equals(frameName)) {
       component.append(GLOBAL_FRAME, SimpleTextAttributes.REGULAR_ATTRIBUTES);
       component.append(" (" + file.getName() + ")", getGrayAttributes(SimpleTextAttributes.REGULAR_ATTRIBUTES));