CDT源代碼框架分析改造 breakpoint視圖上若是是跟蹤點則顯示跟蹤點圖標

 

添加poingtype屬性值spa

添加方式跟添加number一致。見以前的分析。code

 

CBreakpointManagerblog

 

    protected Image getLineBreakpointImage(ICLineBreakpoint breakpoint) throws CoreException {
        ImageDescriptor descriptor = null;

        // BUGDB00062849 從圖標上區分全局/局部斷點 modify by liji 2007-11-16
        if (breakpoint.getType() == ICBreakpoint.GLOBAL_BREAKPOINT) {
            if (breakpoint.isEnabled()) {
                //若是是跟蹤點
                if(breakpoint.getPointType().equals(ICBreakpoint.TYPE_TRACEPOINT))
                
                
                descriptor = CDebugImages.DESC_OBJS_BREAKPOINT_ENABLED;
     
            } else {
                descriptor = CDebugImages.DESC_OBJS_BREAKPOINT_DISABLED;
            }
        } else if (breakpoint.getType() == ICBreakpoint.LOCAL_BREAKPOINT) {
            if (breakpoint.isEnabled()) {
                descriptor = CDebugImages.DESE_LCL_LOCAL_BREAK;
            } else {
                descriptor = CDebugImages.DESC_OBJS_BREAKPOINT_DISABLED;
            }
        }
        
        return getImageCache().getImageFor(
                new OverlayImageDescriptor(fDebugImageRegistry.get(descriptor),
                        computeBreakpointOverlays(breakpoint)));
    }
相關文章
相關標籤/搜索