You can exchange the class of a top-level component.
Note:
This task only describes exchanging a component class to another one, without any features. If you want to work with changing components to classes that fulfil certain criteria, see Working with Replaceable Components.
Right-click the component and select Change Class > Replace Class .
Tips:
You can also perform this command by doing any of the following:
Right-click, in the Component Browser, the component you want to replace the class of and select Change Class > Replace Class .
From any browser containing classes, for example, the main Package Browser, drag the class you want to use for replacing to the Component Browser and drop it on top of the component you want to replace the class of.
Notes:
When you have done this, a dialog box may appear where you must select Change class of component to complete the action.
The result of this step and Step 2 below does not apply when using this alternative since you already selected the class by dragging it.
You can only exchange class of one component at a time, multiselecting a number of components and applying the command only works on the first selected component.