On Sat, Sep 29, 2001 at 10:44:28AM -0400, Kenrick Drew wrote:
> Hmmm... w/o looking at the tag file (/home/slava/jEdit/tags) I'm not sure what
> the problem is. Currently I open whatever file is associated with the tag in
> the tags file. Either take a look at the tag line in /home/slava/jEdit/tags for
> jEdit.setProperty, or send me the tags file to take a look at. Perhaps the path
> you gave to the ctags program was a relative path and not an absolute one (i.e
> "org/gjt/sp/jedit/jEdit.java" instead of "/org/gjt/sp/jedit/jEdit.java").
You can fix the problem easily by passing the directory of the
appropriate tags file as the 'parent' parameter to
> The listing of possible tag names uses a pretty dumb method. It really only
> searches the current source file for things like "class *" and "extends *" and
> possibly the variable name (tagging on varName.method()). The tags file isn't
> even looked at for listing purposes. This leads to entries in the list that may
> not exist. The listing is only meant to resolve tagging on "varName.method()",
> and "SuperClass.method()" w/o having to remember what class the method or field
> belongs to. Once I get the other kinks out I'll look into making it smarter.
> Suggestions welcolm. So there is not problem with your ctags program (although
> you may want to upgrade to 5.0.1)
I have upgraded to version 5.0.1, thanks for the tip. Why don't
you just scan through the tags file and list all tags with the
name of that under the cursor? Since tags are sorted by their
name, without a class prefix or anything, this should not result
in a performance loss.
> I needed to be able to have the "Open new view" check box in the "Enter Tag"
> dialog. I'll look at GUIUtilities to see if I can subclass/extend or add the
> check box component with some addComponent() method.
You can't use GUIUtilities.message() for this purpose, but you
can use the JOptionPane Swing class. message() is just a
wrapper around this class that fetches the title and message
text from jEdit's properties.