Plugin Editors...RuleBasedPartitionScanner or RuleBasedScanner... [message #201736] |
Wed, 25 February 2004 15:09  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03033 seconds