Importing file systems into the workbench

Before you start:

To complete this task, you must have completed the following task:

Before the workbench can use files to create a message definition based on a WSDL definition, an XML schema, XML DTD, C header file, or COBOL copybook, the files must be imported or copied into its file structure. This topic explains the three ways in which you can do this:

Using any of these import methods ensures that an imported file is available for use by your selected message set project. This means that you can select the imported file in the New Message Definition File wizard when you are creating a message definition based on this file.

Using the Import wizard

You use the Import wizard to import all the files or a selection of files from the specified source.

To import files using the Import wizard:

  1. Switch to the Broker Application Development perspective.
  2. In the Resource Navigator click the project folder that you are going to import to.
  3. Open the Import wizard by clicking File > Import on the workbench menu.
  4. On the Select page of the Import wizard, click either File System or Zip file, depending on the type of resource that you are importing.
  5. Click Next.
  6. On the File System page, in the Directory field, specify the import source. To do this, type the source name in the field. Alternatively, click Browse, select the parent directory, or zip file, containing the file or files to import then click OK (directory) or Open (zip file).
    Tip: Recent directories that you have imported from are shown in the drop-down list in the Directory field.
  7. Using the left and right panes that appear under the Directory field, specify which folders or files, or both, you want to import. Note the following points when you are making your selections:
    • To import the entire contents of a folder into the workbench, select the check box for this folder in the left pane. To view any secondary folders within a folder, expand the folder by clicking +.
    • To import a specific file or files within a folder, use the right pane to select the individual files that you want to import. If you select a file or files in the right pane, the check box for the folder containing these files is greyed in the left pane to indicate that only some of the files in the folder will be imported into the workbench.
    • To restrict the type of files that you are going to import, click Filter Types... then, on the Select Types window, select the check boxes for the file types you want to include and click OK. If you want to include files with extensions that are not shown in the list, type these extensions in the Other Extensions field.
    • To select all the folders and files shown on the File System page, click Select All.
    • To deselect all folders and files that are currently selected on the File System page, click Deselect All.
    Note: The Select the destination for imported resources: field should already be filled in with the name of the project folder you selected in step 2.
  8. Optional: To change the destination project or folder click Browse.... This opens the Folder Selection window. Select an alternate project folder to import into by clicking the folder then clicking OK.
  9. Optional: To overwrite existing resources without a warning being displayed select the Overwrite existing resources without warning check box. This applies to both zip files and file systems.
  10. File system import only: Select one of the following, depending on the folder structure that you want to create:
    • Create complete folder structure
    • Create selected folders only
  11. Click Finish.

The files that you selected are imported and are now shown in the Resource Navigator under the project folder that you selected.

Dragging and dropping

You can use dragging and dropping as a method to import files from your file system into the workbench. You must drag the resource(s) that you are importing to the exact location in the Resource Navigator where you want the resources to reside. You cannot simply drag and drop them onto a blank area in the Resource Navigator.

To import files by dragging and dropping:

  1. In your file system, locate the file or folder that you want to import into the workbench.
  2. Drag the file or folder to a specific location in the Resource Navigator. When you are dragging resources into the Resource Navigator, the project or folder that you are trying to drop the resource into is selected.
  3. Ensure that the file or folder is copied into the workbench.

Copying and pasting

You can use your operating system's copy and paste function as a method of importing a file system into the workbench.

To import files by copying and pasting:

  1. Locate the file or directory that you want to import into the workbench.
  2. Using your operating system's copy and paste function, copy the file or directory to your system's clipboard.
  3. Select the destination for the file or directory in the Resource Navigator.
  4. From the workbench menu, click Edit > Paste.

The files or directories are copied into the workbench and placed into the location that you selected.

Related reference
Import formats