diff --git a/src/org/ntlab/traceDebugger/BreakPointLabelProvider.java b/src/org/ntlab/traceDebugger/BreakPointLabelProvider.java index 0712e66..c9bf97c 100644 --- a/src/org/ntlab/traceDebugger/BreakPointLabelProvider.java +++ b/src/org/ntlab/traceDebugger/BreakPointLabelProvider.java @@ -1,40 +1,39 @@ -package org.ntlab.traceDebugger; - -import org.eclipse.debug.ui.DebugUITools; -import org.eclipse.debug.ui.IDebugUIConstants; -import org.eclipse.jface.viewers.ITableLabelProvider; -import org.eclipse.jface.viewers.LabelProvider; -import org.eclipse.swt.graphics.Image; - -public class BreakPointLabelProvider extends LabelProvider implements ITableLabelProvider { - - @Override - public String getColumnText(Object element, int columnIndex) { - if (element instanceof TraceBreakPoint) { - TraceBreakPoint tbp = (TraceBreakPoint)element; - switch (columnIndex) { - case 0: -// return tbp.isAvailable() ? "True" : "False"; - return ""; - case 1: - return String.valueOf(tbp.getLineNo()); - case 2: - return tbp.getReadableSignature(); - } - } - return "�e�X�g�p�e�L�X�g" + columnIndex; - } - - @Override - public Image getColumnImage(Object element, int columnIndex) { - if (columnIndex == 0 && element instanceof TraceBreakPoint) { - TraceBreakPoint tbp = (TraceBreakPoint)element; - if (tbp.isAvailable()) { - return DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_BREAKPOINT); - } else { - return DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_BREAKPOINT_DISABLED); - } - } - return null; - } -} +package org.ntlab.traceDebugger; + +import org.eclipse.debug.ui.DebugUITools; +import org.eclipse.debug.ui.IDebugUIConstants; +import org.eclipse.jface.viewers.ITableLabelProvider; +import org.eclipse.jface.viewers.LabelProvider; +import org.eclipse.swt.graphics.Image; + +public class BreakPointLabelProvider extends LabelProvider implements ITableLabelProvider { + + @Override + public String getColumnText(Object element, int columnIndex) { + if (element instanceof TraceBreakPoint) { + TraceBreakPoint tbp = (TraceBreakPoint)element; + switch (columnIndex) { + case 0: + return ""; + case 1: + return String.valueOf(tbp.getLineNo()); + case 2: + return tbp.getReadableSignature(); + } + } + return "�e�X�g�p�e�L�X�g" + columnIndex; + } + + @Override + public Image getColumnImage(Object element, int columnIndex) { + if (columnIndex == 0 && element instanceof TraceBreakPoint) { + TraceBreakPoint tbp = (TraceBreakPoint)element; + if (tbp.isAvailable()) { + return DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_BREAKPOINT); + } else { + return DebugUITools.getImage(IDebugUIConstants.IMG_OBJS_BREAKPOINT_DISABLED); + } + } + return null; + } +}