Outline View and Document Partitioning [message #263522] |
Fri, 23 July 2004 11:29  |
Eclipse User |
|
|
|
Originally posted by: derek.cs.queensu.ca
Hi
I'm trying to build an outline view. Right now, I have a parser which
scans the document given to it by the editor through getAdapter(...).
What I'd like to do, though, is scan for elements (classes, variables,
methods) only within certain partitions in the document. For instance,
my document provider partitions the document into comments, literals
and default. I feed this partitioned document to the content provider
of the outline. From there, I only want to look for source elements
in the default partition. Is there a way that I can parse (using a
RuleBasedScanner) only certain partitions for my outline view? How and
where (which class should declare another scanner for default
partitions) do I do this?
Derek
|
|
|
Re: Outline View and Document Partitioning [message #263763 is a reply to message #263522] |
Mon, 26 July 2004 07:03  |
Eclipse User |
|
|
|
Derek S wrote:
> I'm trying to build an outline view. Right now, I have a parser which
> scans the document given to it by the editor through getAdapter(...).
> What I'd like to do, though, is scan for elements (classes, variables,
> methods) only within certain partitions in the document. For instance,
> my document provider partitions the document into comments, literals
> and default. I feed this partitioned document to the content provider
> of the outline. From there, I only want to look for source elements
> in the default partition. Is there a way that I can parse (using a
> RuleBasedScanner) only certain partitions for my outline view? How and
> where (which class should declare another scanner for default
> partitions) do I do this?
There is no scanner implementation in the eclipse framework that will
skip over certain partitions. Writing one should not be too hard, though.
-tom
|
|
|
Powered by
FUDForum. Page generated in 0.02730 seconds