13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.2 NetBeans: The Open Source IDE245is running. When you next touch the file from within the IDE, NetBeans willrecognize the fact that the file has been modified and load the new versi<strong>on</strong>.If you haven’t yet learned vi, you may find yourself quite comfortable usingthe NetBeans editor. If you dig deeper into NetBeans you can find how tomap certain keystrokes to make it even more editor-like. However, mousingand cut-and-paste may suffice for beginners for quite some time.10.2.4 Integrati<strong>on</strong> with CVSNetBeans comes with a built-in CVS client, which means that you d<strong>on</strong>’t needto install any additi<strong>on</strong>al 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 c<strong>on</strong>figured to use external (i.e., outside of NetBeans) CVScommands, but you likely w<strong>on</strong>’t need to do that.What you will need to do, however, is tell NetBeans that the files you areusing are under CVS c<strong>on</strong>trol. You do this by mounting the filesystem not asjust a regular filesystem, but as a CVS filesystem. In the Explorer window, goto the Filesystem tab if you are not already there. On the Filesystem ic<strong>on</strong>,right-click your mouse, and from the pulldown menu choose Mount, thenVersi<strong>on</strong> C<strong>on</strong>trol, then CVS (Figure 10.6). What follows will be a wizard-likeseries of dialogs which you will fill in to describe the type and locati<strong>on</strong> of theCVS repository with which you want to work. Those choices and values arespecific to your installati<strong>on</strong>, so we’ll leave that for you to figure out with yournetwork administrator or whoever has set up your repository.Once mounted, the CVS filesystem’s files will look much like any otherfilesystem you have mounted—except that the files will show, via their ic<strong>on</strong>,when they have been modified and need to be committed, and will show theversi<strong>on</strong> number in parentheses after the filename. The other difference is thatthere is now a CVS command <strong>on</strong> the pulldown menu (Figure 10.7) thatappears when you right-click <strong>on</strong> <strong>on</strong>e of the filenames (or <strong>on</strong> its tab in theEdit view).Move your mouse over the CVS command; an additi<strong>on</strong>al pulldown menuappears (Figure 10.8). If you’ve used CVS at all, then you’ll recognize the listof commands in the cascaded menu. There are the Commit, Update, Diff,Log, Status, and Checkout commands that you are familiar with. The firstitem, Refresh, is likely unfamiliar, though. Not being a CVS command (it’snot part of the command-line syntax), it is a way for you to tell the IDE to

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!