Importing into Studio

This topic describes how to import projects, files, or schemas into StreamBase Studio.

Importing a resource brings it into Studio in a controlled way. If you fail to import a file, but instead simply copy it into your workspace, StreamBase cannot operate on it as a resource of your project. The same is true if you open an EventFlow or StreamSQL module file from a non-workspace file system location directly in StreamBase Studio.

Importing Archived Projects

You can import a StreamBase project into the current Studio workspace if that project that was exported from Studio as described on Exporting Studio Projects. To do this, follow these steps:

  1. Select FileImport from Studio's top-level menu.

  2. In the Import dialog, select GeneralExisting Projects into Workspace and click Next.

  3. In the Import Projects dialog:

    1. Select the Select archive file button, then enter the path to the archive file, or click Browse to navigate to the archive file.

      Note

      You cannot overwrite a Studio project name that already exists in your current workspace. If you select a project archive file that contains a project with the same name as an existing project, the Import Projects wizard forces you make another selection.

    2. The project or projects in the selected archive file appear in the Projects area of the dialog, with all projects in the archive selected by default. Clear the check box for any projects you do not want to import.

    3. Click Finish.

  4. Studio imports the selected project folders from the archive file and copies their contents into your current workspace.

If the archived project file does not include a java-src folder (usually because that folder was empty when the project was archived), Studio automatically creates the required java-src folder in the new project.

Importing Existing Projects from Another Workspace

You can import an existing StreamBase project into the current Studio workspace from another workspace folder. To do this, follow these steps:

  1. Select FileImport from Studio's top-level menu.

  2. In the Import dialog, select GeneralExisting Projects into Workspace and click Next.

  3. In the Import Projects dialog:

    1. Select the Select root directory button, then enter the path to the other workspace directory, or click Browse to navigate to that directory.

    2. The Projects area of the dialog now shows all project directories in the selected workspace, with each project preselected. Any projects with the same name as a project in your current workspace are dimmed and cannot be selected.

    3. Click Deselect All, then individually select the project or projects you want to import.

    4. Leave the Copy projects into workspace check box selected.

    5. Click Finish.

  4. Studio imports the selected project folders and copies their contents into your current workspace.

Importing Resource Files

To import resource files (such as CSV data files or authentication keys) from your local file system to the current Studio project, follow these steps:

  1. In the Package Explorer, select the project that you want to contain the resource files of interest.

  2. Right-click and select Import from the context menu.

  3. In the Import dialog, select GeneralFile System and click Next.

  4. In the File System dialog, use the Browse button to navigate to the directory of interest.

  5. With a resource directory selected, navigate among its subfolders and files.

    1. Select the check boxes next to any of that folder's files that you do want to import.

    2. In the Into folder field, confirm that the Studio project folder you selected in step 1 is shown, or use the Browse button to navigate to a different location.

    3. Select among the Options check boxes as required.

  6. Click Finish.

  7. Studio imports the selected files into the specified project folder in your current workspace.

Back to Top ^