try { String handleId= type.getType().getHandleIdentifier(); typeElement.setAttribute(NODE_HANDLE, handleId); typeElement.setAttribute(NODE_MODIFIERS, Integer.toString(type.getModifiers())); Long timestamp= (Long) fTimestampMapping.get(type); if (timestamp == null) { typeElement.setAttribute(NODE_TIMESTAMP, Long.toString(IResource.NULL_STAMP)); } else { typeElement.setAttribute(NODE_TIMESTAMP, timestamp.toString()); } } catch (JavaModelException e) { typeElement.setAttribute(NODE_HANDLE, null);
String handleId= type.getType().getHandleIdentifier(); typeElement.setAttribute(NODE_HANDLE, handleId); typeElement.setAttribute(NODE_MODIFIERS, Integer.toString(type.getModifiers())); Long timestamp= (Long) fTimestampMapping.get(type); if (timestamp == null) { typeElement.setAttribute(NODE_TIMESTAMP, Long.toString(IResource.NULL_STAMP)); } else { typeElement.setAttribute(NODE_TIMESTAMP, timestamp.toString());
	protected void setAttributes(Object object, Element typeElement) {		TypeNameMatch type= (TypeNameMatch) object;		try {			String handleId= type.getType().getHandleIdentifier();			typeElement.setAttribute(NODE_HANDLE, handleId);			typeElement.setAttribute(NODE_MODIFIERS, Integer.toString(type.getModifiers()));			Long timestamp= (Long) fTimestampMapping.get(type);			if (timestamp == null) {				typeElement.setAttribute(NODE_TIMESTAMP, Long.toString(IResource.NULL_STAMP));						} else {				typeElement.setAttribute(NODE_TIMESTAMP, timestamp.toString()); 			}		} catch (JavaModelException e) {			typeElement.setAttribute(NODE_HANDLE, null); // invalid history entry		}	}