Appendix B Managing Projects and Resources : Adding Resources To Your Project

Adding Resources To Your Project
Once you have created or opened a project, you can add resources to your project. To add a resource, you first select it in the palette panel, then drag and drop it into the design panel.
To Add a Resource to Your Project
1.
Select the palette in which the resource can be found. For example, you find an adapter configuration resource in the palette named after the adapter.
 
2.
The resource instance is displayed in the design panel and also added to your project tree. The configuration panel allows you to specify configuration information for the resource.
Figure 11 illustrates adding a resource to a project.
Figure 11 Adding a resource to a project
 
In the palette panel, select the resource and choose Add This To The Project from the right-button menu.
In the design panel, right click on an empty area (not on a resource) and select Add Resource from the right-button menu, then choose the appropriate submenu.
You can enable resources to be added using double-clicks. Go to Edit > Preferences and select the View tab. Under Palettes, select Initiate drag-n-drop through double-clicks.
If Adding a Resource Results in an Error
Whether adding a resource is possible depends on what is currently displayed in the design panel.
If you try to add a resource that cannot be added to the current resource, an error results.
For example, if the root folder is displayed in the design panel, you can add an adapter instance. If any other resource is displayed, you cannot add the adapter instance.
Ideally, all resources that cannot be dragged into the design panel should be greyed out (palette mode) or not visible (non-palette mode). For some custom palettes that may not always be true.