Cannot browse local doccumention
Status: Beta
Brought to you by:
arjaies
When I tried to configure or use the file load option Bruiser to use
my local Java Docs instead of using Sun online docs, kept getting
the error:
You must choose a directory that contains the files "allclasses-
frame.html" ....
The chosen directory was definitely the correct root.
I like this class browser but would like to be able to browse my
local files as well.
One extra option, could the searching also find parital matches in
the class names, eg
typing Document would match
AbstractDocument
AbstractDocument.AttributeContext
AbstractDocument.Content
instead of haveing to type just the prefix of a class
Logged In: YES
user_id=875459
Please let me know what OS and JVM version you are using. I
assume you are using Bruiser 0.1.1.
As the partial matches, would you expect to type 'document'
and see:
AbstractDocument
AbstractDocument.AttributeContext
AbstractDocument.Content
Document
Document
DocumentBuilder
...
Or would it be better to allow regular expressions in the text
field?
Thanks,
Jason
Logged In: YES
user_id=939452
I am using Bruiser 0.1.1 (just re-downloaded from site, as I could not
find the version displayed in the startup splash or from an About
dialouge).
Regular expressions might be good as well. Then all that would be
needed type in my case is:
*Document
But I think that a partial match would be easy for users, my hunch is that
it would be get to the desired API quicker then the current search but
cannot really judge without trying it out.
Regards,
Chris
Logged In: YES
user_id=875459
I noticed on one of the computers that I Bruiser on, the file
chooser behaved in a strange way. If I opened (double-
clicked) the target folder, I got the error message. If I just
selected the target folder, it opened the doc. I can tell you
it seems to be working correctly on Windows 2000 with Java
1.4.2_02 and Windows XP with Java 1.4.0. I don't remember
which OS and JVM version the strange behavior occured on.
If you let me know what you are running it on I may be able
to recreate it and hopefully solve the issue.
Logged In: YES
user_id=875459
I noticed on one of the computers that I Bruiser on, the file
chooser behaved in a strange way. If I opened (double-
clicked) the target folder, I got the error message. If I just
selected the target folder, it opened the doc. I can tell you
it seems to be working correctly on Windows 2000 with Java
1.4.2_02 and Windows XP with Java 1.4.0. I don't remember
which OS and JVM version the strange behavior occured on.
If you let me know what you are running it on I may be able
to recreate it and hopefully solve the issue.
Logged In: YES
user_id=939452
Sorry I forgot to give you my OS and Java version:
OSX 10.3.4
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03
-117.1)
Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode)
-- Chris
Logged In: YES
user_id=875459
I have no experience with OSX, so please forgive any
ignorance I display on the subject. I wonder if Bruiser does
not properly form path and file names for OSX.
Please answer the following questions for me:
1. Was a file name 'bruiser.properties' created in the directory
containing 'bruiser0.1.1.jar'?
2. If it exists, does 'bruiser.properties' contain the following
line?
defaultURL=file\:/C\:/j2sdk1.4.2_04/docs/api
(With a different path, of course.)
3. Is {path to docs} a correctly formed path to your API
documentation?
Let me know what you find out. And if the answer was 'no'
to any of those questions, try editing the file to include the
correct path and start Bruiser. Let me know if that works.
Thanks,
Jason
Logged In: YES
user_id=939452
In answer to your questions:
1) Yes the bruiser.properties has been created
2) defaultURL=http\://java.sun.com/j2se/1.4.2/docs/api/
I have tried chaning the defaultURL path for the last half an hour and
finanlly cracked it:
defaultURL=file\:///Users/chris/Library/Java/docs1.4.2/api/
I had been trying (same format as http)
defaultURL=file\://Users/chris/Library/Java/docs1.4.2/api/
and Bruiser generates from Edit->Options->Browse..
defaultURL=file\:/Users/chris/Library/Java/docs1.4.2/api/
note the subtle difference, the correctly formed URL for a file has three
backslashed whilst the http only has two backslashes.
Sorry for troubling you, when its not really your softwares fault but it
dose explain why when using the browser option to configure the path for
new documentation the config fails.
I also tried another set of docs using Edit->Options->Browse after saving
the defaults the properties file look like:
defaultURL=file\:/Users/chris/Library/Java/jini2_0_002/doc/api
and did not find any docs to browse. I edited the file and added two extra
backslashes:
defaultURL=file\:///Users/chris/Library/Java/jini2_0_002/doc/api
Hay presto it worked.
I don't know if this is a MacOSX 10.3.4 / PC difference.
Over to you.
Ps I'm willing to try any fix to make other users lives a little easier.
Regards, Chris