Using the override view
If you would like to derive a new class or package from an existing one you perform the following three steps:
- Click the "New class" button or "New package" button , respectively, on the declaration bar and fill in the little form that is popped up then. You may in particular specify one or several parent classes or packages whose features and virtual types your new class or package shall inherit.
- Subsequently you may override the inherited features or virtual types: Select the new class/package in the declaration tree and click the "Show overridables" button . This opens the "override view" in the right-hand part of the tree view window. The override view depicts the entire heritage of the new Interface/package and indicates from which base class/package the respective feature or VT originates. You may then select individual features or virtual types (or several at once, using the Shift or Control buttons in the usual way) and cause them to be overridden in the new class or package by clicking the "Override" button . The overridden features/VTs appear as parts of the new class/package thereafter, and you may open their respective property sheets (using double-click or ) in order to actually modify their properties.
Since LavaPE release 0.9.1 a VT may be declared
"final". This means that it cannot be overridden in a derived class or package.
The "Override" button
is disabled for "final" VTs.
- Add new features or VTs to the new class, or new VTs, classes, or nested packages to the new package, if required.
(The order in which you add and override features, VTs, etc. doesn't matter, of course.)