ontents status type SVNStatusType contentsStatus = event.getContentsStatus();
if(contentsStatus != SVNStatusType.INAPPLICABLE){
if(contentsStatus == SVNStatusType.CONFLICTED){ ... } } SVNStatusType propertiesStatus = event.getPropertiesStatus();
if(propertiesStatus != SVNStatusType.INAPPLICABLE){
if(contentsStatus == SVNStatusType.CONFLICTED){ ... } } } ... } ... }
or in a status handler (implementing
ISVNStatusHandler) registered for an
SVNStatusClient like this:
import org.tmatesoft.svn.core.wc.ISVNStatusHandler; import org.tmatesoft.svn.core.wc.SVNStatus; import org.tmatesoft.svn.core.wc.SVNStatusType; ... public class MyCustomStatusHandler implements ISVNStatusHandler { public void handleStatus(SVNStatus status){ ... SVNStatusType contentsStatus = status.getContentsStatus(); if(contentsStatus == SVNStatusType.STATUS_MODIFIED){ ... }else if(contentsStatus == SVNStatusType.STATUS_CONFLICTED){ ... } ... SVNStatusType propertiesStatus = status.getPropertiesStatus(); if(contentsStatus == SVNStatusType.STATUS_MODIFIED){ ... }else if(contentsStatus == SVNStatusType.STATUS_CONFLICTED){ ... } ... } ... }
@version 1.3
@author TMate Software Ltd.
@since 1.2
@see SVNEvent
@see SVNStatus