if ( editor.isAutoSave() )
{
if ( !autoSaveSharedReferenceCopies.containsKey( originalEntry ) )
{
autoSaveSharedReferenceCopies
.put( originalEntry, new CompoundModification().cloneEntry( originalEntry ) );
}
if ( !autoSaveSharedWorkingCopies.containsKey( originalEntry ) )
{
IEntry referenceCopy = autoSaveSharedReferenceCopies.get( originalEntry );
autoSaveSharedWorkingCopies.put( originalEntry, new CompoundModification().cloneEntry( referenceCopy ) );
}
return autoSaveSharedWorkingCopies.get( originalEntry );
}
else
{
if ( !oscSharedReferenceCopies.containsKey( originalEntry ) )
{
oscSharedReferenceCopies.put( originalEntry, new CompoundModification().cloneEntry( originalEntry ) );
}
if ( !oscSharedWorkingCopies.containsKey( originalEntry ) )
{
IEntry referenceCopy = oscSharedReferenceCopies.get( originalEntry );
oscSharedWorkingCopies.put( originalEntry, new CompoundModification().cloneEntry( referenceCopy ) );
}
return oscSharedWorkingCopies.get( originalEntry );
}
}