// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) deadcode 
// Source File Name:   DocHistoryActionDelegate.java

package com.ptc.windchill.pdmlink.doc.server.processors;

import wt.audit.AuditHelper;
import wt.audit.AuditService;
import wt.templateutil.processor.DefaultNavBarActionDelegate;
import wt.util.WTException;

public class DocHistoryActionDelegate extends DefaultNavBarActionDelegate
{

    public DocHistoryActionDelegate()
    {
    }

    public Boolean enableable(Object object)
        throws WTException
    {
        Boolean enabled = super.enableable(object);
        if(enabled.booleanValue())
        {
            boolean auditEnabled = AuditHelper.service.isAuditEnabled();
            if(auditEnabled)
                return Boolean.TRUE;
            else
                return Boolean.FALSE;
        } else
        {
            return enabled;
        }
    }
}
