1 19 20 package org.netbeans.modules.debugger.ui.models; 21 22 import org.netbeans.api.debugger.Watch; 23 import org.netbeans.spi.debugger.ui.Constants; 24 import org.netbeans.spi.viewmodel.TableModel; 25 import org.netbeans.spi.viewmodel.ModelListener; 26 import org.netbeans.spi.viewmodel.UnknownTypeException; 27 28 29 33 public class WatchesTableModel implements TableModel, Constants { 35 36 public Object getValueAt (Object row, String columnID) throws 37 UnknownTypeException { 38 if (row instanceof Watch) { 39 if (columnID.equals (WATCH_TO_STRING_COLUMN_ID)) 40 return ""; 41 else 42 if (columnID.equals (WATCH_TYPE_COLUMN_ID)) 43 return ""; 44 else 45 if (columnID.equals (WATCH_VALUE_COLUMN_ID)) 46 return ""; 47 } 48 throw new UnknownTypeException (row); 49 } 50 51 public boolean isReadOnly (Object row, String columnID) throws 52 UnknownTypeException { 53 if (row instanceof Watch) { 54 if (columnID.equals (WATCH_TO_STRING_COLUMN_ID)) 55 return true; 56 else 57 if (columnID.equals (WATCH_TYPE_COLUMN_ID)) 58 return true; 59 else 60 if (columnID.equals (WATCH_VALUE_COLUMN_ID)) 61 return true; 62 } 63 throw new UnknownTypeException (row); 64 } 65 66 public void setValueAt (Object row, String columnID, Object value) 67 throws UnknownTypeException { 68 throw new UnknownTypeException (row); 69 } 70 71 76 public void addModelListener (ModelListener l) { 77 } 78 79 84 public void removeModelListener (ModelListener l) { 85 } 86 } 87 | Popular Tags |