Class LanguageMerge
java.lang.Object
fr.fuzeblocks.homeplugin.language.LanguageMerge
The type Language merge.
- 
Constructor SummaryConstructorsConstructorDescriptionLanguageMerge(File editedFile, File latestFile) Instantiates a new Language merge.
- 
Method SummaryModifier and TypeMethodDescriptionvoidSimple merge: copies the edited config, adds missing keys from the latest version, without removing any key.voidSynchronized merge: copies the edited config, adds missing keys, removes keys no longer present in the latest version.booleanSaves the merged config to the edited file.booleanPush to boolean.
- 
Constructor Details- 
LanguageMergeInstantiates a new Language merge.- Parameters:
- editedFile- the edited file
- latestFile- the latest file
 
 
- 
- 
Method Details- 
mergeAddOnlypublic void mergeAddOnly()Simple merge: copies the edited config, adds missing keys from the latest version, without removing any key.
- 
mergeSyncpublic void mergeSync()Synchronized merge: copies the edited config, adds missing keys, removes keys no longer present in the latest version.
- 
pushChangespublic boolean pushChanges()Saves the merged config to the edited file.- Returns:
- true if saving succeeded, false otherwise.
 
- 
pushToPush to boolean.- Parameters:
- destinationFile- the destination file
- Returns:
- the boolean
 
 
-