1 19 20 package org.netbeans.modules.web.debug; 21 22 import org.netbeans.api.debugger.*; 23 import org.netbeans.api.debugger.jpda.*; 24 import org.netbeans.spi.debugger.ui.Constants; 25 import org.netbeans.spi.viewmodel.*; 26 import org.netbeans.modules.web.debug.breakpoints.*; 27 28 32 public class JspTableModel implements TableModel, Constants { 33 34 35 public Object getValueAt (Object row, String columnID) throws UnknownTypeException { 36 if (row instanceof JspLineBreakpoint) { 37 if (columnID.equals (BREAKPOINT_ENABLED_COLUMN_ID)) 38 return Boolean.valueOf (((JspLineBreakpoint) row).isEnabled ()); 39 } 40 throw new UnknownTypeException (row); 41 } 42 43 public boolean isReadOnly (Object row, String columnID) throws UnknownTypeException { 44 throw new UnknownTypeException (row); 45 } 46 47 public void setValueAt (Object row, String columnID, Object value) throws UnknownTypeException { 48 if (row instanceof JspLineBreakpoint) { 49 if (columnID.equals (BREAKPOINT_ENABLED_COLUMN_ID)) 50 if (((Boolean ) value).equals (Boolean.TRUE)) 51 ((Breakpoint) row).enable (); 52 else 53 ((Breakpoint) row).disable (); 54 } 55 throw new UnknownTypeException (row); 56 } 57 58 59 80 public void addModelListener (ModelListener l) { 81 } 82 83 88 public void removeModelListener (ModelListener l) { 89 } 90 91 } 97 | Popular Tags |