Java Reference
In-Depth Information
is running. When you next touch the file from within the IDE, NetBeans will
recognize the fact that the file has been modified and load the new version.
If you haven't yet learned vi , you may find yourself quite comfortable us-
ing the NetBeans editor. If you dig deeper into NetBeans you can find how to
map certain keystrokes to make it even more editor-like. However, mousing
and cut-and-paste may suffice for beginners for quite some time.
10.2.4
NetBeans comes with a built-in CVS client, which means that you don't need
to install any additional features in NetBeans to get it to talk with a CVS server.
It has all it needs to check out and commit files from and to a CVS repository.
NetBeans can be configured to use external (i.e., outside of NetBeans) CVS
commands, but you likely won't need to do that.
What you will need to do, however, is tell NetBeans that the files you are
using are under CVS control. You do this by mounting the filesystem not as
just a regular filesystem, but as a CVS filesystem. In the Explorer window, go
to the Filesystem tab if you are not already there. On the Filesystem icon,
right-click your mouse, and from the pulldown menu choose Mount , then
Version Control , then CVS (Figure 10.6). What follows will be a wizard-like
series of dialogs which you will fill in to describe the type and location of the
CVS repository with which you want to work. Those choices and values are
specific to your installation, so we'll leave that for you to figure out with your
network administrator or whoever has set up your repository.
Once mounted, the CVS filesystem's files will look much like any other
filesystem you have mounted—except that the files will show, via their icon,
when they have been modified and need to be committed, and will show the
version number in parentheses after the filename. The other difference is that
there is now a CVS command on the pulldown menu (Figure 10.7) that
appears when you right-click on one of the filenames (or on its tab in the
Edit view).
Move your mouse over the CVS command; an additional pulldown menu
appears (Figure 10.8). If you've used CVS at all, then you'll recognize the list
of commands in the cascaded menu. There are the Commit , Update , Diff ,
Log , Status , and Checkout commands that you are familiar with. The first
item, Refresh , is likely unfamiliar, though. Not being a CVS command (it's
not part of the command-line syntax), it is a way for you to tell the IDE to
Integration with CVS
Search WWH ::




Custom Search