VCSに変更履歴を登録するように WIP

This commit is contained in:
r-ca 2024-01-14 16:58:19 +09:00
parent 98c3820679
commit d6a0dbeaa2
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -76,6 +76,8 @@ public class DocumentProcessorImpl implements DocumentProcessor{
page.setBitmap(bitmap); page.setBitmap(bitmap);
this.documentDetail.getPages().add(page); this.documentDetail.getPages().add(page);
lacertaVcs.insertPage(documentDetail.getPages().size(), filename);
this.fileManager.getNewInstance().createDirectoryIfNotExist(DEFAULT_SAVE_DIR).resolve(DEFAULT_SAVE_DIR).saveBitmap(bitmap, filename); this.fileManager.getNewInstance().createDirectoryIfNotExist(DEFAULT_SAVE_DIR).resolve(DEFAULT_SAVE_DIR).saveBitmap(bitmap, filename);
logger.info("addNewPageToLast", "finished"); logger.info("addNewPageToLast", "finished");
@ -102,6 +104,8 @@ public class DocumentProcessorImpl implements DocumentProcessor{
page.setFileName(filename); page.setFileName(filename);
page.setBitmap(bitmap); page.setBitmap(bitmap);
this.documentDetail.getPages().add(index + 1, page); this.documentDetail.getPages().add(index + 1, page);
lacertaVcs.insertPage(index + 1, filename);
} }
@Override @Override
@ -116,6 +120,8 @@ public class DocumentProcessorImpl implements DocumentProcessor{
page.setBitmap(bitmap); page.setBitmap(bitmap);
this.documentDetail.getPages().add(index, page); this.documentDetail.getPages().add(index, page);
lacertaVcs.insertPage(index, filename);
} }
@Override @Override