*
* @param doc
*/
private void editHotlink(final IDocument doc) {
final IHotlink hotlinkDoc = (IHotlink) doc;
final String attributeName = hotlinkDoc.getAttributeName();
final Map<String, Object> values = new HashMap<String, Object>();
if (!doc.isEmpty()) {
values.put(DocumentDialog.V_INFO, doc.getContent().toString());
}
values.put(DocumentDialog.V_CONTENT_TYPE, doc.getContentType());
values.put(DocumentDialog.V_ATTRIBUTE, attributeName);
values.put(DocumentDialog.V_LABEL, doc.getLabel());
values.put(DocumentDialog.V_DESCRIPTION, doc.getDescription());
if (ContentType.ACTION == doc.getContentType()) {
values.put(DocumentDialog.V_ACTIONS, hotlinkDoc.getDescriptors());
}
final Map<String, Object> params = new HashMap<String, Object>();
params.put(DocumentDialog.P_TYPE, Type.HOTLINK);
params.put(DocumentDialog.P_MODE, Mode.EDIT);