Difference between revisions of "PrF UG meta change meta sub"
Line 21: | Line 21: | ||
find the class whose subclasses you want to change. | find the class whose subclasses you want to change. | ||
</p> | </p> | ||
− | <div>[[Image:PrF_UG_meta_select_superclass.png| | + | <div>[[Image:PrF_UG_meta_select_superclass.png|frame|none| |
− | + | Class Browser, White wine selected]]</div> | |
<li><p> | <li><p> | ||
Line 29: | Line 29: | ||
to have the same metaclass as the selected class. | to have the same metaclass as the selected class. | ||
</p> | </p> | ||
− | <div>[[Image:PrF_UG_meta_change_meta_of_subclasses.png| | + | <div>[[Image:PrF_UG_meta_change_meta_of_subclasses.png|frame|none| |
− | + | Change metaclass of subclasses selected]]</div> | |
<li><p> | <li><p> | ||
Line 36: | Line 36: | ||
Click <b>OK</b> to continue. | Click <b>OK</b> to continue. | ||
</p> | </p> | ||
− | <div>[[Image:PrF_UG_meta_verify_change_metaclass.png| | + | <div>[[Image:PrF_UG_meta_verify_change_metaclass.png|frame|none| |
− | + | verification dialog box]]</div> | |
<li><p> | <li><p> |
Revision as of 01:41, October 23, 2008
Changing the Metaclass of Subclasses
When you change the metaclass of a class, all of its subclasses will retain their previous metaclass. This ensures that you do not propagate changes when you do not want to. However, often you will want existing subclasses to have the same metaclass as their superclass. Protege-Frames provides an option to quickly change the metaclasses of all the classes subordinate to a given class. Note that you only have to do this once; by default, new classes use the metaclass of their direct superclass.
To change the metaclass of all existing subclasses of a given class:
In the Class Browser, find the class whose subclasses you want to change.
Click the right mouse button and select "Change metaclass of subclasses". This will change all of the classes below this one to have the same metaclass as the selected class.
A dialog box will ask you for verification. Click OK to continue.
The change will be made: all subordinate classes will now have the metaclass of the selected class.