mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
care about selection
This commit is contained in:
@@ -64,11 +64,13 @@ public class TableRowsDnDSupport {
|
||||
model.exchangeRows(min, min + 1);
|
||||
min++;
|
||||
}
|
||||
table.getSelectionModel().setSelectionInterval(min, min);
|
||||
} else {
|
||||
while (max > min) {
|
||||
model.exchangeRows(max, max - 1);
|
||||
max--;
|
||||
}
|
||||
table.getSelectionModel().setSelectionInterval(max, max);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user