|
|
|
@ -202,8 +202,8 @@ public class VcsNewPane extends RecyclePane {
|
|
|
|
|
@Override |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
JTable table = tableContentPane.getEditTable(); |
|
|
|
|
int row = table.getEditingColumn(); |
|
|
|
|
Object o = table.getValueAt(table.getEditingRow(), row); |
|
|
|
|
int row = table.getEditingRow(); |
|
|
|
|
Object o = table.getValueAt(row, table.getEditingColumn()); |
|
|
|
|
if (o instanceof VcsTableEntity) { |
|
|
|
|
VcsEntity entity = ((VcsTableEntity) o).getEntity(); |
|
|
|
|
int selVal = FineJOptionPane.showConfirmDialog( |
|
|
|
@ -213,7 +213,8 @@ public class VcsNewPane extends RecyclePane {
|
|
|
|
|
JOptionPane.OK_CANCEL_OPTION, |
|
|
|
|
JOptionPane.QUESTION_MESSAGE); |
|
|
|
|
if (selVal == JOptionPane.YES_OPTION) { |
|
|
|
|
model.getList().remove(o); |
|
|
|
|
model.fireTableRowsDeleted(row, row); |
|
|
|
|
model.removeRow(row); |
|
|
|
|
model.fireTableDataChanged(); |
|
|
|
|
VcsOperatorWorker.createDeleteWorker().deleteTargetVersion(entity); |
|
|
|
|
fireVcsListener(model.getList()); |
|
|
|
|