Skip to content

Commit 0cc1938

Browse files
committed
Make update site description read-only
Edits here weren't actually saved anyway. The current mechanism for updating the description is to edit https://imagej.github.io/list-of-update-sites/ Closes imagej/imagej-updater#119
1 parent 7e934c1 commit 0cc1938

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/net/imagej/ui/swing/updater/SitesDialog.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ public void valueChanged(final ListSelectionEvent e) {
130130

131131
@Override
132132
public boolean isCellEditable(final int row, final int column) {
133+
// Make Description column read-only
134+
if ("Description".equals(getColumnName(column))) return false;
133135
return column >= 0 && column < getColumnCount() && row >= 0 && row < getRowCount();
134136
}
135137

0 commit comments

Comments
 (0)