[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Can I get information of sub partition?
|
Partitioning as provided by IDocument, IDocumentPartitioner
does not support nested partitions. Partitions are considered
non-overlapping. Thus, in your example you only see the
"rule" partition.
Assuming that nesting follows particular rules, one possible
solution to your problem could be that your partitioner provides
custom API to compute a second level partitioning for a given
partition. In cases where you are interested in the partitions
embedded in a given partition, you'd have to talk to your custom
made partitioner directly.
Kai
"Soonthorn Ativanichayaphong" <soonthor@xxxxxxxxxx> wrote in message
news:3B67076A.B22A3E08@xxxxxxxxxxxxx
> Hi,
>
> Let say I've set MultiLineRule("<", ">") named as a "rule" partition
> and MultiLineRule("{","}") named as a "tag" partition.
> Then, the content of document look like this.
>
> <xxxxx
> xxxxx
> {
> yyyy
> yyyy
> }
> xxxx
> xxxx
> >
>
> How can I get the region information of "tag" partition once I type in
> yyy area?
> I can get only "rule"'s region information from
> IDocument.getPartition().
>
> Thanks,
> Soonthorn A.
>