PL/SQL Developer Version Control Plug-In 1.2 User's Guide
PL/SQL Developer Version Control Plug-In 1.2 User's Guide
PL/SQL Developer Version Control Plug-In 1.2 User's Guide
Introduction
This document describes the PL/SQL Developer integration Plug-In for Version Control Systems. This
Plug-In is the interface between PL/SQL Developer and any Version Control System that supports the
Microsoft SCC Interface Specification. The Plug-In itself does not have any built-in Version Control
capabilities, it relies solely on the Version Control System that you are using.
Benefits
The benefits of the VCS Plug-In come from the tight integration between the PL/SQL Developer IDE
and the Version Control System:
Improve productivity - You can quickly perform any VCS operation on the currently opened file
in the PL/SQL Developer IDE, like check out, check in, get, add, view differences, and so on.
Operations on multiple files will immediately be reflected in PL/SQL Developer’s IDE.
Minimize errors – Because you can work from one single IDE, the chance is minimized that you
operate on the wrong file or that you forget a file.
Integration
When the VCS Plug-In is installed, you will see a new VCS item in the main menu. This menu item
contains all VCS related functions:
The Program Window, SQL Window, Test Window and Command Window also have several new
VCS related items in their context menu. You can check in, check out, undo check out, get, add and
remove the corresponding file, if appropriate.
Furthermore you can use the Preferences item of the Tools menu to add buttons to the toolbar for
frequently used VCS functions.
PL/SQL Developer – Version Control Plug-In User’s Guide 3
If you have enabled the Allow version control over DB objects preference (see chapter 2.10), you will
additionally see corresponding popup menu items when right-clicking on a database object in the Object
Browser:
This allows you to work directly with the source of a database object in the Oracle Dictionary instead of
a source file on the file system. See chapter 2.9 for more information.
PL/SQL Developer – Version Control Plug-In User’s Guide 4
The System list allows you to select the Version Control System of the project. This is only relevant if
you are using more than one system on your PC. It is possible to have different projects in different
systems. As you switch between projects, you will also automatically switch between Version Control
Systems. Note that you can set several preferences for each system, as described in chapter 2.10.
In the Project list you can enter the name of the project. For some Version Control Systems (like PVCS
or Microsoft SourceSafe) this will be a logical name, for others (like MKS Source Integrity) this will be
the full path to a project file. The list contains a history of previously opened projects. Selecting an item
from this list will enter the appropriate information in the other fields of the Open Project dialog box, so
that it can quickly be reopened.
The Browse button on the right side of the list will display a system specific Select Project dialog. If
you select a project this way, all other fields will automatically be filled in. Not all systems support this
feature. For example, MKS Source Integrity will display a Create Sandbox dialog, which forces you to
create a new work area. In this situation you need to know the necessary information to open a project.
In the User field you can specify the username by which you want to login to the Version Control
Project. You can usually leave this field empty.
The Local Path field specifies the base directory where the Version Control System should place files
that are retrieved from the project, or where files can be found that are added or checked in to the
project. Some Version Control Systems use the term Work Area for such a directory. Note that this
information is very important for a proper integration, as both PL/SQL Developer and the Version
Control System assume that you edit and store your work files here.
The Auxiliary Path has a different meaning for different Version Control Systems. This meaning is
displayed below the field. Leave it empty if its meaning is unknown to you.
PL/SQL Developer – Version Control Plug-In User’s Guide 6
After selecting the appropriate files, press the Check Out button to check them out. The Project Files
dialog has the following functions:
Select project – This button allows you to select a different project, as described in chapter 2.1.
Refresh – This button refreshes the contents of the file dialog. If you hold down the Ctrl key
when pressing this button, the project will be closed and reopened.
PL/SQL Developer – Version Control Plug-In User’s Guide 7
Status – Select the status of the files that will be visible in the dialog. You can view all files, all
unlocked files, all files that are checked out, all files that are checked out by you, or all files that
are checked out by others.
Mask – Enter the filename mask of the files that will be visible in the dialog.
Options – Pressing this button will bring up a Check Out Options dialog of the Version Control
System, if supported. Some systems automatically display these options when checking out files.
Open files in IDE – If this checkbox is checked, the files that are checked out will automatically
be opened if PL/SQL Developer’s IDE.
A lock icon visualizes the status of each file. When it is opened and gray, the file is unlocked. If it is
closed and green, you have checked it out. If it is closed and red, another project member has checked it
out.
If you right click on a file, this will bring up a context menu that allows you to view the properties of
the file, the differences between the file and the work file, and the history of the file. You can also
rename or delete a file, if the Version Control System supports it.
This dialog also allows you to set some Check In Options, if the Version Control System supports it.
Some systems will provide their own dialog to specify the change comment and options. In this case
you may want to disable the dialog above through the preferences described in chapter 2.10.
If the current file was changed in the IDE and not yet saved, it will be saved it to disk before it is
checked in. After being checked in, you will typically be left with a read only copy of the work file. In
that case the file will also be read only in the IDE.
bring up the Project Files dialog that displays all files that were checked out by you. This dialog now
also has a Comment field where you can enter the change comment:
If any of these files is opened and changed in PL/SQL Developer’s IDE and not yet saved, it will be
saved it to disk before they are checked in. After being checked in, you will typically be left with a read
only copy of these work files. Any file that was open in the IDE will now also be read only.
2.10 Preferences
You can specify several preferences that affect the behavior of the VCS Plug-In: