Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Update to the Latest Revision of Selected Package

When you are part of a team working in a Distributed Model environment, from time to time, you will want to update your model with the changes that other team members have committed into version control.  The Get Latest command allows you to bring in updates made by other users, for the package currently selected in the Project Browser.

Use to:

  • Update a single package to the latest revision retrieved from version control

How to:

Step

Action

See also

1

In the Project Browser, right-click on the package that is to be updated and select Package Control | Get Latest.

The local XMI file associated with the package is updated to the latest revision from version control.  The XMI file is imported into your model database, updating the package in your model.

Update All Packages

2

When working in a Private Model, if Enterprise Architect determines that the package content in the model is already up to date with the latest revision of the package file retrieved from version control, then the Import Package dialog displays.  This dialog is not displayed for Shared Models.

The following options are offered;

  • Force reload From XMI
  • Accept current package

Choose Accept current package to skip the process of re-importing the package from XMI.

The option Refresh model view allows you to specify whether or not to refresh the Project Browser and diagrams, by reloading the package content from the project database.

The Import Package dialog also has an option Always use these settings.  When selected, if you subsequently check out a package that is found to be up to date, the same settings are applied again without displaying the dialog.

  • To display the dialog if, for example, you want to change the settings, press a Ctrl key while you select the Package Control | Get Package menu option.

 

The package file is imported into your model, in accordance with your selection.

 

Notes:

  • The Get Latest command is disabled for any package that is checked-out (to anybody) in the currently loaded project.
  • When using a Shared Model environment, where all users are connected to a single model database, you should reload the package from the database, rather than using the Get Latest command.