mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-12 12:36:25 +07:00
IDEA-86947 Run configuration list should support drag and drop to reorder the run configurations
This commit is contained in:
+5
@@ -256,6 +256,11 @@ public class ChangeClassSignatureDialog extends RefactoringDialog {
|
||||
fireTableDataChanged();
|
||||
//fireTableRowsUpdated(Math.min(index1, index2), Math.max(index1, index2));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExchangeRows(int oldIndex, int newIndex) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
private class MyCellRenderer extends ColoredTableCellRenderer {
|
||||
|
||||
@@ -64,6 +64,11 @@ public class ExceptionsTableModel extends AbstractTableModel implements Editable
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExchangeRows(int oldIndex, int newIndex) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public int getRowCount() {
|
||||
return myTypeCodeFragments.size();
|
||||
}
|
||||
|
||||
@@ -400,6 +400,13 @@ public abstract class ParameterTablePanel extends JPanel {
|
||||
myTable.getSelectionModel().setSelectionInterval(targetRow, targetRow);
|
||||
updateSignature();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canExchangeRows(int row, int targetRow) {
|
||||
if (row < 0 || row >= getVariableData().length) return false;
|
||||
if (targetRow < 0 || targetRow >= getVariableData().length) return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
private class CheckBoxTableCellRenderer extends BooleanTableCellRenderer {
|
||||
|
||||
Reference in New Issue
Block a user