How many Partitioners to an IDocument [message #141622] |
Fri, 13 February 2004 01:26 |
Eclipse User |
|
|
|
Originally posted by: dacosta.xs4all.nl
Hi,
3.0M5
I'm curious to learn whether one should be able to add more than 1
*Partitioners* to an IDocument (1 for language a and another for language b
which always resides on the same page as a).
And IF this is allowed (since i do not get any errors) how and where is it
decided which one is used?
A question that lies behind this issue is:
If a partition (of *any* Partitioner) is to contain a partition itself how
does one go about this esp since the nested partition can only exist within
the normally defined partition in the Partitioner.
Example:
JavaCodePartitioner contains
default java code
multiline_comment partition
javadoc partition
language B partition
*nested lan B* partition
The *nested lan B* partition should only become active/ relevant when the
language B partition is. It is *never* allowed to even exist without being
nested in the language B partition.
Any thoughts,
TIA
Fermin DCG
|
|
|
Re: How many Partitioners to an IDocument [message #141643 is a reply to message #141622] |
Fri, 13 February 2004 02:39 |
Eclipse User |
|
|
|
Originally posted by: dacosta.xs4all.nl
F. Da Costa wrote:
> Hi,
>
> 3.0M5
>
> I'm curious to learn whether one should be able to add more than 1
> *Partitioners* to an IDocument (1 for language a and another for
> language b which always resides on the same page as a).
>
According to IDocumentExtension3 it is indeed possible
> And IF this is allowed (since i do not get any errors) how and where is
> it decided which one is used?
>
But, the sourceConfiguration only gets 1 version and does not allow for a
specific request in the getConfiguredDocumentPartitioning method.
Does this have something to do with the fluid nature of the 3M versions?
> A question that lies behind this issue is:
> If a partition (of *any* Partitioner) is to contain a partition itself
> how does one go about this esp since the nested partition can only exist
> within the normally defined partition in the Partitioner.
>
> Example:
> JavaCodePartitioner contains
> default java code
> multiline_comment partition
> javadoc partition
>
> language B partition
> *nested lan B* partition
>
> The *nested lan B* partition should only become active/ relevant when
> the language B partition is. It is *never* allowed to even exist without
> being nested in the language B partition.
>
> Any thoughts,
>
> TIA
> Fermin DCG
|
|
|
Powered by
FUDForum. Page generated in 0.02687 seconds