@Override public boolean isReadOnly(TableModel original, Object node, String columnID) throws UnknownTypeException { if (node instanceof JSVariable || node instanceof ScopeVariable || node instanceof JSWatchVar) { return true; } return original.isReadOnly(node, columnID); }
@Override public boolean isReadOnly(TableModel original, Object node, String columnID) throws UnknownTypeException { if (node instanceof JSVariable) { return true; } return original.isReadOnly(node, columnID); }
/** * Filters original isReadOnly value from given table model. You should * not throw UnknownTypeException * directly from this method! * * @param original the original table model * @param node a object returned from {@TreeModel#getChildren} for this row * @param columnID a id of column defined by {@link ColumnModel#getID} * @throws UnknownTypeException this exception can be thrown from * <code>original.isReadOnly (...)</code> method call only! * * @return true if variable on given position is read only */ public boolean isReadOnly(TableModel original, Object node, String columnID) throws UnknownTypeException { boolean ro = true; if (node instanceof JSPVariablesFilter.AttributeMap || node instanceof JSPVariablesFilter.ImplicitLocals || node instanceof JSPVariablesFilter.AttributeMap.Attribute) ro = true; else ro = original.isReadOnly(node, columnID); return ro; }
public boolean isReadOnly(TableModel original, Object node, String columnID) throws UnknownTypeException { NativeSession ds = NativeSession.map((Session) node); if (ds != null) { return true; } else { try { return original.isReadOnly(node, columnID); } catch (UnknownTypeException x) { return true; } } }