Nice done-editing

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8200 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Logneon
2008-02-05 15:49:57 +00:00
parent 5ce3cb1f0b
commit 5360af75da
2 changed files with 42 additions and 25 deletions

View File

@@ -21,7 +21,8 @@ public class CCDoneEditingDialog extends CheckinCheckoutDialog
{
private final static String MSG_DONE = "done";
private final static String MSG_TITLE = "done_editing_title";
private final static String MSG_TITLE_VERSIONABLE = "done_editing_title_versionable";
private final static String MSG_TITLE_NOT_VERSIONABLE = "done_editing_title_not_versionable";
/**
* @return Returns label for new version with major changes
@@ -58,7 +59,14 @@ public class CCDoneEditingDialog extends CheckinCheckoutDialog
@Override
public String getContainerTitle()
{
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_TITLE) + " '" + property.getDocument().getName() + "'";
if (property.getDocument().hasAspect(ContentModel.ASPECT_VERSIONABLE))
{
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_TITLE_VERSIONABLE) + " '" + property.getDocument().getName() + "'";
}
else
{
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_TITLE_NOT_VERSIONABLE) + " '" + property.getDocument().getName() + "'";
}
}
@Override