[josm-dev] deleted vs. visible
    Matthias Julius 
    lists at julius-net.net
       
    Fri Mar  5 22:04:26 GMT 2010
    
    
  
I need to brung up this subject again.  I still can not wrap my head
around why we need to distinguish between deleted and visible state
for primitives and bother the user with it.  AFAICT, isDeleted()==true
is equivalent to isVisible()==false && isModified()==true.
I believe there is currently no way to have primitives with either
isDeleted()==true && isModified()==false or isVisible()==false &&
isModified()==true.  Therefore, I think the two flags can be
consolidated.  IMO, it is enough to have the DELETED flag and to
distinguish between "deleted locally" and "deleted on server" the
MODIFIED flag should be enough.
This would simplify both merging and conflict handling.
Matthias
    
    
More information about the josm-dev
mailing list