예제 #1
0
        public override object GetIconHandle(bool open)
        {
            if (ProjectMgr == null)
            {
                return(null);
            }

            int index;

            if (!_interpreters.IsAvailable(_factory))
            {
                index = ProjectMgr.GetIconIndex(PythonProjectImageName.MissingInterpreter);
            }
            else if (_interpreters.ActiveInterpreter == _factory)
            {
                index = ProjectMgr.GetIconIndex(PythonProjectImageName.ActiveInterpreter);
            }
            else
            {
                index = ProjectMgr.GetIconIndex(PythonProjectImageName.Interpreter);
            }
            return(this.ProjectMgr.ImageHandler.GetIconHandle(index));
        }