private class MoveAllMenuItemActionListener implements ActionListener {
@Override
public void actionPerformed(ActionEvent event) {
if (Core.isReady()) {
MoveDialog moveDialog = new MoveDialog(view);
moveDialog.setCurrentSubtitleIndex(model.getSubIndex());
moveDialog.setVisible(true);
if (model.getMoveCaptions()) {
try {
Core.moveAllThreaded(view);
} catch (CoreException ex) {
view.error(ex.getMessage());
} catch (Exception ex) {
ToolBox.showException(ex);
view.exit(4);
}
}
model.setSubIndex(moveDialog.getCurrentSubtitleIndex());
view.setLayoutPaneAspectRatio(moveDialog.getTrgRatio());
try {
int subIndex = model.getSubIndex();
Core.convertSup(subIndex, subIndex + 1, Core.getNumFrames());
view.refreshSrcFrame(subIndex);
view.refreshTrgFrame(subIndex);