Difference between revisions of "PrF UG inst moving an instance"
(Automated import of articles) |
|||
(4 intermediate revisions by the same user not shown) | |||
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, | ||
− | using drag-and-drop in the | + | using drag-and-drop |
− | [[PrF_UG_inst_instances_tab|Instances | + | in the [[PrF_UG_inst_instances_tab|Instances tab]]. |
To change the class of an instance: | To change the class of an instance: | ||
Line 16: | Line 16: | ||
<ul> | <ul> | ||
<li><p> | <li><p> | ||
− | Display the | + | Display the [[PrF_UG_inst_instances_tab|Instances tab]] |
− | |||
</p> | </p> | ||
<li><p> | <li><p> | ||
− | Select the class that contains the instance in the | + | Select the class that contains the instance |
− | + | in the [[PrF_UG_inst_class_browser_at_instances|Class Browser]]. | |
</p> | </p> | ||
<li><p> | <li><p> | ||
− | Select the instance you want to move in the | + | Select the instance you want to move |
− | + | in the [[PrF_UG_inst_instance_browser|Instance Browser]]. | |
</p> | </p> | ||
</ul> | </ul> | ||
<li><p> | <li><p> | ||
− | Hold down the mouse button and drag the instance from the | + | Hold down the mouse button and drag the instance |
− | + | from the [[PrF_UG_inst_instance_browser|Instance Browser]] | |
− | to the | + | to the [[PrF_UG_inst_class_browser_at_instances|Class Browser]], |
− | |||
until it is on top of the desired class. | until it is on top of the desired class. | ||
</p> | </p> | ||
Line 42: | Line 40: | ||
Release the mouse. | Release the mouse. | ||
The instance will now have the selected class as its direct type. | 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. | + | Note that the slots of the dragged instance will automatically change |
+ | to reflect the inheritance from the new class. | ||
</p> | </p> | ||
</ol> | </ol> | ||
Line 48: | Line 47: | ||
When you drag an instance to a 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. | the fields in the instance will change to match the slots in the class. | ||
− | If you drag an instance, | + | If you drag an instance, you may lose some of the information in your instance. |
− | you may lose some of the information in your instance. | ||
This loss is permanent. | This loss is permanent. | ||
− | You <i>cannot</i> restore the information by dragging the instance back to the original class. | + | You <i>cannot</i> restore the information |
− | Therefore, | + | by dragging the instance back to the original class. |
− | you should be sure that you want to make these changes before you drag an instance to a new class. | + | Therefore, you should be sure that you want to make these changes |
− | You may also wish to | + | before you drag an instance to a new class. |
− | [[PrF_UG_projects_archive_project|archive]] | + | You may also wish to [[PrF_UG_projects_archive_project|archive]] the project |
− | the project before you move instances. | + | before you move instances. |
− | In addition, | + | In addition, any changes you make will be evident |
− | any changes you make will be evident wherever that instance is | + | wherever that instance is [[PrF_UG_classes_view_references|referenced]] - |
− | [[PrF_UG_classes_view_references|referenced]] | + | for example, if that instance appears as the value of a field, |
− | |||
− | if that instance appears as the value of a field, | ||
the change will also occur in the field. | the change will also occur in the field. | ||
You can use the <b>View References to Instance</b> | You can use the <b>View References to Instance</b> | ||
− | + | ([[Image:PrF_UG_inst_instance.view_references.gif|instances_instance.view_references]]) button | |
− | + | to see where this instance is referenced, | |
before changing its class. | before changing its class. | ||
− | </div> | + | |
+ | <noinclude></div></noinclude> |
Latest revision as of 18: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.