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 from the contextual
menu.
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 what
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
- Right-click a generic VCS filesystem's icon in the Explorer and choose Customize.
You cannot change toolbar commands for built-in CVS client filesystems.
- In the Advanced tab of the customizer, click Edit Commands.
- Select the command you want to add to the Versioning toobar. In the Expert
tab, click the General Command Action Class Name property and enter the class
name of the toolbar button that you want to run the command. The class names
for the Versioning toolbar buttons are as follows:
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 enter the tooltip
description of the command.
- Click OK to exit the Command Editor.
- If you only want to save the change to the filesystem, click OK to exit
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