Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How many Partitioners to an IDocument
How many Partitioners to an IDocument [message #141622] Fri, 13 February 2004 01:26 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Add JavaDoc tag and contribute to index
Next Topic:Calculating state takes too long
Goto Forum:
  


Current Time: Thu Apr 25 07:31:28 GMT 2024

Powered by FUDForum. Page generated in 0.02687 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top