Using the Versioning Toolbar
The IDE's version control support includes a Versioning toolbar, which you
can use to run common version control commands.
To view the Versioning toolbar:
- Right-click an empty space in the toolbar area and choose Versioning.
Versioning toolbar buttons execute a different command for each type of version
control system in the IDE. When you select nodes from two filesystems mounted
with different VCS profiles, the toolbar buttons run a separate command for
each profile. You can see which command a button executes by holding the pointer
over the button and reading the tool tip.
The following table lists each Versioning toolbar button's standard command
for each version control profile.
Toolbar
Button |
CVS Command |
PVCS Command |
VSS Command |
 |
Update |
Get |
Check Out |
 |
Commit |
Put |
Check In |
 |
Add |
Add |
Add |
 |
Remove |
Remove |
Remove |
 |
Diff |
Diff |
Diff |
 |
Log |
Status |
History |
Adding Toolbar Buttons for the Built-in CVS Client
The built-in CVS client contains an additional set of buttons, which you can
add to the Versioning toolbar. These buttons do not work for filesystems mounted
using generic VCS support.
To add an action button to the Versioning toolbar:
- Choose Tools
Options
from the main window.
- Expand IDE Configuration
Look
and Feel
Actions
Versioning
CVS
Client.
- Right-click the command you want to add and choose Copy. You can choose
from the following commands:
- Annotate
- Checkout
- List Modules
- Log
- Refresh
- Refresh Recursively
- Status
- Tag
- In the Look and Feel node, expand Toolbars
Versioning.
- Right-click the Versioning node and choose Paste
Copy.
The button appears in the Versioning toolbar.
Changing a Toolbar Button's Command for Generic VCS Filesystems
You can use the command editor to assign any command in a generic VCS profile
to a Versioning toolbar button. You can apply the change to an individual filesystem
or to the VCS profile itself. You cannot change toolbar commands for built-in
CVS client filesystems.
To assign a command to a Versioning toolbar button:
- Right-click a generic VCS filesystem's icon in the Explorer and choose Customize.
- In the Advanced tab of the customizer, click Edit Commands.
- Select the command you want to add to the Versioning toolbar. In the Expert
tab, click the General Command Action Class Name property and type the class
name of the toolbar button that you want to run the command. The class names
for the Versioning toolbar buttons are:
org.netbeans.modules.vcscore.actions.UpdateCommandAction
org.netbeans.modules.vcscore.actions.CommitCommandAction
org.netbeans.modules.vcscore.actions.AddCommandAction
org.netbeans.modules.vcscore.actions.RemoveCommandAction
org.netbeans.modules.vcscore.actions.DiffCommandAction
org.netbeans.modules.vcscore.actions.HistoryCommandAction
- Click the Gereral Command Action Display Name property and type the tool
tip description of the command.
- Click OK to close the command editor.
- If you want to save the change only to the filesystem, click Close to close
the customizer. If you want to save the change to the VCS profile, do so using
the Save As button in the Profile tab of the customizer.
Legal Notices