Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Outline View and Document Partitioning
Outline View and Document Partitioning [message #263522] Fri, 23 July 2004 11:29 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:IAutoIndentStrategy -> IAutoEditStrategy?
Next Topic:Linewrap with comments.
Goto Forum:
  


Current Time: Wed May 14 07:15:39 EDT 2025

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

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

Back to the top