Skip to content

Commit 8b8411e

Browse files
committed
fix: return non editable for first row
1 parent 520bb81 commit 8b8411e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/nvs/dialog/NvsCsvEditorPage.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,10 @@ protected CellEditor getCellEditor(Object element)
624624

625625
protected boolean canEdit(Object element)
626626
{
627+
if (tableViewer.getElementAt(0).equals(element))
628+
{
629+
return false;
630+
}
627631
return true;
628632
}
629633

@@ -711,6 +715,10 @@ protected CellEditor getCellEditor(Object element)
711715

712716
protected boolean canEdit(Object element)
713717
{
718+
if (tableViewer.getElementAt(0).equals(element))
719+
{
720+
return false;
721+
}
714722
return true;
715723
}
716724

@@ -788,6 +796,10 @@ protected CellEditor getCellEditor(Object element)
788796

789797
protected boolean canEdit(Object element)
790798
{
799+
if (tableViewer.getElementAt(0).equals(element))
800+
{
801+
return false;
802+
}
791803
return true;
792804
}
793805

0 commit comments

Comments
 (0)