private A_CmsReportThread startThread() {

        //Maximal count of versions for current resources.
        int versions = ((Integer)m_numberVersionsToKeep.getValue()).intValue();

        //Maximal count of versions for deleted resources.
        int versionsDeleted = versions;

        if (m_mode.getValue().equals(CmsFileHistoryApp.MODE_DISABLED)) {
            versionsDeleted = 0;
        }
        if (m_mode.getValue().equals(CmsFileHistoryApp.MODE_WITHOUTVERSIONS)) {
            versionsDeleted = 1;
        }

        long date = m_dateField.getValue() != null ? m_dateField.getDate().getTime() : 0;

        CmsHistoryClearThread thread = new CmsHistoryClearThread(
            A_CmsUI.getCmsObject(),
            versions,
            versionsDeleted,
            date);
        thread.start();
        return thread;
    }
private A_CmsReportThread startThread ( ) { int versions = ( ( Integer ) m_numberVersionsToKeep . getValue ( ) ) . intValue ( ) ; int versionsDeleted = versions ; if ( m_mode . getValue ( ) . equals ( CmsFileHistoryApp . MODE_DISABLED ) ) { versionsDeleted = 0 ; } if ( m_mode . getValue ( ) . equals ( CmsFileHistoryApp . MODE_WITHOUTVERSIONS ) ) { versionsDeleted = 1 ; } long date = m_dateField . getValue ( ) != null ? m_dateField . getDate ( ) . getTime ( ) : 0 ; CmsHistoryClearThread thread = new CmsHistoryClearThread ( A_CmsUI . getCmsObject ( ) , versions , versionsDeleted , date ) ; thread . start ( ) ; return thread ; }
Starts the thread for deleting versions.<p>

@return started thread