This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 73812 - Tutorial needs query rule example
Summary: Tutorial needs query rule example
Status: RESOLVED WONTFIX
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: _ tball
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 14:48 UTC by Jaroslav Tulach
Modified: 2010-04-27 18:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2006-03-21 14:48:41 UTC
I've tried to write simple query. Something like:

$err.log :: $err instanceof org.openide.ErrorManager

but the only output I can get is "ErrorManagerLog:2: invalid rule format: 
"$err.log" is missing a => expression" fine, but where is an example of 
writing such query? I tried to look at the website or at least open some of 
the queries in the "manager". None of that works. That is not polite.

If there was a way to see the rules files for existing queries I would shut 
up.
Comment 1 Martin Krauskopf 2006-03-21 15:07:44 UTC
One of the first statement in http://jackpot.netbeans.org/docs/rule-language.html

<pattern> => <replacement> ;

> If there was a way to see the rules files for existing queries I would shut up.

You might want to take a look at "StringTokenizer to Scanner" rule (open from
the command manager). Some of tham cannot be opened because they are not written
in the query language but by transforer AFAIK.
Comment 2 _ tball 2006-03-21 15:19:11 UTC
Check out http://jackpot.netbeans.org/docs/src/FindEJBs.rules for an example;
the built-in actions for the rule language are described <a
href="http://jackpot.netbeans.org/docs/rule-language.html#builtinActions">here</a>.
 You are right that the tutorial needs improvement, however.  I hope that now
that Jackpot is public a docs person can spend a little time on it.
Comment 3 Jesse Glick 2010-04-27 18:40:51 UTC
The old Jackpot module is no longer maintained. There is a rewrite in progress at: http://bitbucket.org/jlahoda/jackpot30/wiki/Home