Difference between revisions of "PrF UG inst moving an instance"
Line 2: | Line 2: | ||
== Changing the Class of an Instance == | == Changing the Class of an Instance == | ||
− | {{PrF_UG_TOC_inst}}<div id='prf_ug'> | + | <noinclude>{{PrF_UG_TOC_inst}}<div id='prf_ug'></noinclude> |
You can change the class of an instance, | You can change the class of an instance, | ||
Line 66: | Line 66: | ||
− | </div> | + | <noinclude></div></noinclude> |
Latest revision as of 17:13, November 13, 2008
Changing the Class of an Instance
You can change the class of an instance, using drag-and-drop in the Instances tab. To change the class of an instance:
Select the instance you wish to move:
Display the Instances tab
Select the class that contains the instance in the Class Browser.
Select the instance you want to move in the Instance Browser.
Hold down the mouse button and drag the instance from the Instance Browser to the Class Browser, until it is on top of the desired class.
Release the mouse. The instance will now have the selected class as its direct type. Note that the slots of the dragged instance will automatically change to reflect the inheritance from the new class.
When you drag an instance to a new class, the fields in the instance will change to match the slots in the class. If you drag an instance, you may lose some of the information in your instance. This loss is permanent. You cannot restore the information by dragging the instance back to the original class. Therefore, you should be sure that you want to make these changes before you drag an instance to a new class. You may also wish to archive the project before you move instances.
In addition, any changes you make will be evident wherever that instance is referenced - for example, if that instance appears as the value of a field, the change will also occur in the field. You can use the View References to Instance () button to see where this instance is referenced, before changing its class.