This may be two bugs, or it may be one bug with two
parts. I can't analyze them separately, so I'm
reporting them together. First, I had trouble
installing 2.2-b2. Second, the module often fails to
appear in the Tools contextual menu.
This is all under Forte 3.0 (NetBeans 3.2) with JDK
1.4 under Windows 2000 SP 2.
2.2-b2 Install Problem:
I already had 2.2-B1 installed. I tried to use the
Update Center to manually install the .nbm from 2.2-
b2. At step 2 in the Update Center Wizard, "Select
Modules to Install," no module was shown. I believe
2.2-b2 has the same internal version as 2.2-B1, so
Update Center decided there was nothing new to update
to. At least, they both say 'release="-1"
specversion="0.2.1"' in the module entry created in
~/modules/installedModules.xml. To be honest, I don't
know the details of how Update Center decides what is
Workaround: Manually uninstall 2.2-B1. To do so, I
first disabled nbCheckStyle
module") and closed Forte. Then, I removed the module
entry from ~/modules/installedModules.xml, and deleted
the files ~/modules/checkstyle.jar and
~/modules/ext/checkstyle-all-2.2.jar. I then started
Forte again and was able to install 2.2-b2 using the
Update Center Wizard as usual.
I based this workaround on notes at
Once I had 2.2-b2 installed as above, the CheckStyle
menu item in the Tools contextual (right-click) menu
often fails to appear when I expect it to be there.
Here's a scenario.
I right-click a file (either a plain .java or a GUI
form .java/.form file pair) in the "Explorer
[Filesystems]" window, and "CheckStyle" is missing
from the Tools menu. I then open the file in the
editor and right-click the editor window -
the "CheckStyle" choice is still missing from the
Tools menu. I return the to the "Explorer
[Filesystems]" window and expand the file name one
level, exposing the class object. I left-click once
on the class object to select it, then return to the
editor window. In the editor window I then right-
click and "CheckStyle" now appears OK in the Tools
menu. I return to the "Explorer [Filesystems]" window
and select something unrelated to the GUI form.
Finally, I return to the editor window and a right-
click still shows "CheckStyle" fine under the Tools
It appears that, once the "CheckStyle" menu somehow
gets associated with the .java file, it remains
available. But only as long the file remains open in
the editor. Once I close the file, I have to go
throught the routine above to get to the CheckStyle
menu again - I can't simply right-click the file in
the Explorer window.
I know you're focused on newer versions of NetBeans,
so if there's anything I can do to help debug this or
other old-platform problems, please let me know. I'm
finding CheckStyle to be useful from the command line,
but I'd really like to integrate it into Forte if at
Log in to post a comment.