Skip to content

Commit

Permalink
clean and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mukoki authored and edeso committed Sep 3, 2024
1 parent 1a528cf commit 37d26c3
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/com/vividsolutions/jump/workbench/ui/LayerTableModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,10 @@ public int getRowCount() {
}

public boolean isCellEditable(int rowIndex, int columnIndex) {
// if (!layer.isEditable()) {
// return false;
// }

// All columns use a CellEditor except fid and geometry so that text can be selected,
// Underlying JTextField can still be made editable or not editable
// depending on attributes (see also JTable.prepareEditor in AttributeTablePanel)

if (getColumn(columnIndex) == fidColumn) {
return false;
Expand All @@ -249,12 +250,6 @@ public boolean isCellEditable(int rowIndex, int columnIndex) {
return false;
}

// FeatureSchema schema =
// layer.getFeatureCollectionWrapper().getFeatureSchema();
// if (schema.isAttributeReadOnly(schema.getAttributeIndex(getColumn(
// columnIndex).getName())))
// return false;

return true;
}

Expand Down

0 comments on commit 37d26c3

Please sign in to comment.