On 24 juin 08, at 22:41, malaka ekanayake wrote:
I have looked at the parser and rendering api. I think we can
integrate with
the jface editor in the following way
We can extract blocks from the XDOM object created by the
parser.Then if we
can find a way to map these blocks with non overlapping partitions
defined
in the jface,then it seems like we can integrate both.As I have
realised
partitions need the offset and the length with respect to the xwiki
document.I think we need to add 2 methods to the Block inteface to
get the
offset and the length.
According to my current undestanding we need to impliment the
IDocumentPartitioner inteface and use the excisting xwiki parser in
thet
implimentation.The main perpose of the implimentation is to map the
blocks
in to partitions.
I think you are right.
I didn't look in detail into this, but we could start by making every
leaf of the XDOM tree as a different partition.
Cheers,
Fabio