Creating a Fragment

To create a fragment:

  1. Right-click on the package that you wish to create a controlled fragment from.
  2. Select Refactor, and then Create Fragment.
  3. You will be prompted to name the fragment and select the location where you wish to save the fragment.
  4. Once the fragment is saved, another dialog appears in which you must ensure that you have the 'Update references to elements in new fragment' option set. If not set you risk breaking references to child elements contained in this fragment.

Once the fragment has been created, the icon for the package changes to signify that it is a controlled fragment.