diff --git a/src/org/ntlab/traceDebugger/BreakPointView.java b/src/org/ntlab/traceDebugger/BreakPointView.java index a7729c0..fff2771 100644 --- a/src/org/ntlab/traceDebugger/BreakPointView.java +++ b/src/org/ntlab/traceDebugger/BreakPointView.java @@ -1,5 +1,7 @@ package org.ntlab.traceDebugger; +import java.util.ArrayList; + import org.eclipse.debug.internal.ui.IInternalDebugUIConstants; import org.eclipse.debug.ui.DebugUITools; import org.eclipse.debug.ui.IDebugUIConstants; @@ -16,6 +18,7 @@ import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.SelectionChangedEvent; import org.eclipse.jface.viewers.TableViewer; +import org.eclipse.jface.viewers.Viewer; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Menu; @@ -96,6 +99,10 @@ TraceDebuggerPlugin.setActiveView(ID, this); } + public Viewer getViewer() { + return viewer; + } + @Override public void setFocus() { // TODO Auto-generated method stub @@ -267,6 +274,11 @@ viewer.getControl().setMenu(menu); getSite().registerContextMenu(menuMgr, viewer); } + + public void reset() { + viewer.setInput(new ArrayList()); + viewer.refresh(); + } public void updateTraceBreakPoints(TraceBreakPoints traceBreakPoints) { viewer.setInput(traceBreakPoints.getAllTraceBreakPoints());