This section describes how to add and remove targets, and to specify properties in a workspace.
Although you can have only one workspace open at a time, you can add as many targets to the workspace as you want and open and edit objects in multiple targets.
Working with targets that share PBLs
If a target shares PBLs with another target in the same workspace, as is the case when you create a .NET target based on an existing application target, you should work on only one target at a time. Objects are always opened in the context of a specific target. When you open an object in a PBL that is used in multiple targets, PowerBuilder needs to set global properties for the specific target you are working on.
To add an existing target to a workspace
-
Right-click on the workspace displayed in the System Tree and select Add Target from the pop-up menu.
The Add Target to Workspace dialog box displays.
-
Navigate to the directory containing the target you want to add and select the target (.pbt) file.
-
Click Open.
The target is added to your current workspace.
When you remove a target from the workspace, the .pbt file is not deleted.
You specify workspace properties in the Properties of Workspace dialog box.
To specify workspace properties
-
In the Workspace tab of the System Tree, select Properties from the pop-up menu for the workspace.
-
Select the Targets, Deploy Preview, or Source Control tab page.
-
Specify the properties as described in the following sections.
Specifying target order. You can specify the targets and the order in which those targets are built or deployed on the Targets tab page. All the targets identified with the workspace are listed. Check the targets you want to include in the workspace build or deploy. Use the arrows to change a target's position in the target order list.
Previewing deployment. You can verify the targets and the order in which those targets' projects are built or deployed on the Deploy Preview tab page. To make changes, you need to use the Targets page of the Workspace dialog box.
Specifying source control properties. You can specify which source control system, if any, is used for this workspace, as well as other source control properties. For more information, see Using Source Control.