mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
VCSに変更履歴を登録するように WIP
This commit is contained in:
parent
98c3820679
commit
d6a0dbeaa2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user