mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7976 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
35 lines
885 B
Java
35 lines
885 B
Java
package org.alfresco.web.bean.coci;
|
|
|
|
import javax.faces.context.FacesContext;
|
|
|
|
import org.alfresco.web.app.Application;
|
|
|
|
public class CCUpdateFileDialog extends CheckinCheckoutDialog
|
|
{
|
|
private final static String MSG_UPDATE = "update";
|
|
|
|
@Override
|
|
protected String finishImpl(FacesContext context, String outcome) throws Exception
|
|
{
|
|
return updateFileOK(context, outcome);
|
|
}
|
|
|
|
@Override
|
|
public String getContainerTitle()
|
|
{
|
|
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_UPDATE) + " '" + property.getDocument().getName() + "'";
|
|
}
|
|
|
|
@Override
|
|
public boolean getFinishButtonDisabled()
|
|
{
|
|
return getFileName() == null;
|
|
}
|
|
|
|
@Override
|
|
public String getFinishButtonLabel()
|
|
{
|
|
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_UPDATE);
|
|
}
|
|
}
|