Importing Blocks

From within Reactive Blocks, you can directly import libraries and example projects to work with. Since importing new libraries may also update and replace existing ones, all open blocks editors will be closed.

There are two ways to start the import wizard:

  • Use the import icon

  • Select File → Import… from the Eclipse menu and choose Reactive Blocks

There are three types of import wizard to choose:

  • All Libraries and Projects will show all available libraries and projects
  • Reference Applications is a filter to show reference application projects only
  • Tutorials and Examples is a filter to show tutorials and example projects only

If you have not signed in, you will be asked to do so. If you are new, you will be asked to create a new account.

Choose the login provider you used when you signed up, and click button Sign in…. Supported providers are Google and Facebook.

A web browser opens, sign in with your account (if you haven’t done so) and give authorization to the Reactive Blocks.

After a successful signed in, switch back to Eclipse.

Select the project/libraries you want to import. Dependencies (other libraries or projects used by the selected items) will be imported automatically.

  • Libraries () are provided as archives, and are imported read-only into a local directory, which means that you can just read them, and everything is kept consistent.
  • Projects () usually contain examples or tutorials. These are imported as normal Eclipse projects, in your default workspace.

You can also filter the list of libraries and projects by teams.

Click Next to review licenses and then Finish button.

Teams

Libraries and projects are shared via teams. Hence, to get access to libraries/projects within a team, you need to be a member of the team.

Every user is a member of at least team Tutorial. You can check teams you are a member of by selecting Manage your teams link in the import wizard (see the previous figure). The link is only shown when you choose all libraries and projects import wizard type.

A web page opens and shows information about your teams.

Updating Imported Libraries

Whenever you open the import wizard, it will show you which library updates are available. The figure below shows that an update for the Buffering library is available. If your current version of the library is 3.10.0, then the newest version is 3.11.2.

Just continue by selecting Next. Updates will automatically be imported.

Currently, libraries are always updated to the newest version. Older versions are deleted automatically when new ones are downloaded.

Updating Imported Projects

Examples provided as editable projects may also be updated over time. By default, the import wizard does not replace your local projects, since you may want to keep some changes.

To get another new version of projects that were imported, you have to rename (or delete) the old version from the Package Explorer view. Then, start the import wizard again.

Troubleshooting

Server

In case you are not able to contact the server and import any libraries, check the following:

  • Are you running the newest version of Reactive Blocks? If not, please update
  • Check out Twitter stream for status of our servers.
  • Try to test you connection with a ping. Open the Preferences.

Open the Eclipse Preferences:

  • On Windows, choose Window → Preferences… from the Eclipse menu
  • On Mac, choose Eclipse → Preferences… from the Eclipse menu

Find Reactive Blocks → Login in the Preferences window.

Classpath Problem

You might see errors in Java source files due to some import statements cannot be resolved, although the referred libraries are available. This is a known Eclipse problem.

To resolve it, try cleaning the effected projects. Choose Project → Clean… from the Eclipse menu.