blob: a72da343c915cd2416174c4a217673f83a057cc2 [file] [log] [blame]
package com.jetbrains.python.console.pydev;
import com.intellij.util.PlatformIcons;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
public class PyCodeCompletionImages {
/**
* Returns an image for the given type
* @param type
* @return
*/
@Nullable
public static Icon getImageForType(int type){
switch (type) {
case IToken.TYPE_CLASS:
return PlatformIcons.CLASS_ICON;
case IToken.TYPE_FUNCTION:
return PlatformIcons.METHOD_ICON;
default:
return null;
}
}
}