Import and and export projects

You can import projects into your workspace from a filesystem, archive file, or version-control system. When you import a project, the Momentics IDE for BlackBerry builds the project. The indexer needs a successful build before it can populate the index.

Import a sample

Sample apps and tutorial code are packaged as projects that are compatible with the Momentics IDE. You can import sample apps directly from the IDE.
  1. On the Welcome page in the IDE, click Sample apps.
  2. Click a sample app to read more about it.
  3. Click Download and import on the sample of your choice. The project folder for the sample is added to the Project Explorer view.

Import an existing project

You can copy an existing project to your workspace.

  1. On the File menu, click Import.
  2. Expand General and select Existing Projects into Workspace. Click Next.
  3. Select the Select root directory option, and then click Browse.
  4. Select the project that you want to import, and then click OK.
  5. In the Projects section, select the project that you want to import, and then click Finish.

    The Momentics IDE builds the project, and then the project appears in the Project Explorer view.

Import code as a BlackBerry C/C++ Makefile project

You can create a BlackBerry C/C++ Makefile project from the code and Makefiles in an existing folder.

  1. On the File menu, click Import.
  2. In the Import wizard, expand BlackBerry and select Existing Code as BlackBerry C/C++ Makefile Project. Click Next.
  3. In the Code location field, click Browse, and then select the project.
  4. Click Finish.

    The Momentics IDE builds the project, and then the project appears in the Project Explorer view.

Import from a filesystem

You can copy files and folders from your filesystem into an existing, empty project in your workspace.

  1. On the File menu, click New > BlackBerry Project.
  2. In the New Project wizard, click Core Native, and then click Next.
  3. In the Templates screen, click Empty, and then click Next.
  4. Complete the rest of the wizard.

    To create a project for a Makefile, in the Builds section, select Makefile.

  5. In the Project Explorer, right-click the project, and select Import.
  6. Expand General, select File System, and then click Next.
  7. In the From directory field, click Browse and navigate to the folder where the source code is located.
  8. Select the files to import. Use the Filter Types, Select All, and Deselect All buttons to select the files.
  9. Click Finish.

    The Momentics IDE builds the project, and then the files appear in your project.

Import a team project set

Team project sets are a convenient way of sharing a collection of projects stored in a version-control system among members of your development team. Create them with the Export wizard.

  1. On the File menu, click Import.
  2. In the Import wizard, expand Team and select Team Project Set. Click Next.
  3. In the File field, click Browse, and select the project.
  4. Click Finish.

    The Momentics IDE builds the project, and then the project appears in the Project Explorer view.

Import an archive file

You can copy files and folders from a ZIP archive into an existing project in your workspace.

  1. On the File menu, click Import.
  2. In the Import wizard, expand General and select Archive File. Click Next.
  3. In the From archive file field, click Browse and select the archive file.
  4. In the Into folder field, click Browse and select the project or folder.

    This project or folder must exist before you open the Import wizard.

  5. Click Finish.

    The Momentics IDE builds the project, and then the project appears in the Project Explorer view.

Export projects

You can export files, folders, or entire projects to your file system or to an archive file.

Export files or folders to your file system

  • To export a file or folder, do one of the following:
    • Drag a file or folder from a project to your file system. To copy the file or folder instead of moving it, press Alt while you drag.
    • Right-click the file or folder, and select Copy or Cut, and then paste it in your file system.

Export files or projects to a file system or an archive file

  1. Choose File > Export. The Export wizard appears.
  2. You can export a project to the file system or to an archive file:
    • To export your project to the file system, choose General File System.
    • To export your project to an archive file, choose General > Archive File.
  3. Click Next.
  4. Select the projects that you want to export. You can also select or clear specific files in each project.
  5. Do one of the following:
    • If you are exporting to the file system, in the To directory field, click Browse, and then select the directory.
    • If you are exporting to an archive file, in the To archive file field, click Browse, and then select the archive file.
  6. Click Finish.

    If you export more than one project, and then import from the resulting folder or archive file, you get one project that contains all of the exported projects.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus