Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plugin Editors...RuleBasedPartitionScanner or RuleBasedScanner...
Plugin Editors...RuleBasedPartitionScanner or RuleBasedScanner... [message #201736] Wed, 25 February 2004 15:09 Go to next message
Eclipse UserFriend
Hi all,

New to plugin development. I'm trying to develop and editor (robust one)
that will handle Perl code. I been using the the example Java Editor,
Readme Tool example and the XML Editor that got created using the PDE.
Some utilize RuleBasedScanner, some use RuleBasedPartitionScanner. BUT,
looking at other robust editors (other than the examples), they are all
using RuleBasedPartitionScanner for predicate based rules.

My question is, which is the correct one to utilize? Or more importantly,
whats the advantages/disadvantages of using one over the other?

tia,

adym
Re: Plugin Editors...RuleBasedPartitionScanner or RuleBasedScanner... [message #202814 is a reply to message #201736] Fri, 27 February 2004 02:17 Go to previous message
Eclipse UserFriend
Originally posted by: bob.objfac.com

"alincoln" <alincoln@edgewater.com> wrote in message
news:c1ivd3$jvp$1@eclipse.org...
> Hi all,
>
> New to plugin development. I'm trying to develop and editor (robust one)
> that will handle Perl code. I been using the the example Java Editor,
> Readme Tool example and the XML Editor that got created using the PDE.
> Some utilize RuleBasedScanner, some use RuleBasedPartitionScanner. BUT,
> looking at other robust editors (other than the examples), they are all
> using RuleBasedPartitionScanner for predicate based rules.
>
> My question is, which is the correct one to utilize? Or more importantly,
> whats the advantages/disadvantages of using one over the other?

There is no correct one. RuleBasedPartitionScanner lets you use
IPredicateRule, which has some advantages (an optimization) and
disadvantages (less general) compared to IRule. Figure out what your
scanners have to do, _then_ pick a scanner. In particular, if you do not
have simple resumable rules, you don't want IPredicateRule.

Bob
Previous Topic:plugins don't work in Eclipse 3.0?
Next Topic:Force lazy marker generation?
Goto Forum:
  


Current Time: Sun Jun 08 13:10:03 EDT 2025

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

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

Back to the top