Package com.luciad.lucy.addons.modelcustomizer
Provides the TLcyModelCustomizerAddOn
, which allows the editing of a selected model.
It can be activated by clicking the "File |
New | Table View" menu-item.
When active, it will try to create a ILcyCustomizerPanel
that can show and/or modify the properties of models of the selected layers
and put this in a ILcyApplicationPane
in the Lucy application.
It tries to create such an ILcyCustomizerPanel
by iterating over all registered
ILcyCustomizerPanelFactory
objects with a TLcyModelContext
that
contains the model, layer and view in which the model is contained. In case of multiple
selection, an array of TLcyModelContext
instances is used. When no customizer can be
found for the TLcyModelContext[]
, the add-on will try to create customizer panels
for every TLcyModelContext
instance. This add-on caches the created
ILcyCustomizerPanel
instances so they can be reused when the layer selection
changes. This cache uses SoftReference
to prevent memory issues.
The menu-items and the location of the ILcyApplicationPane
can be configured in
the configuration file of this add-on.
Next to that, this add-on allows to drag a layer from the layer control to an (empty) area in order to show the table. It does so by registering a DropTargetListener. Finally, this ad-don also adds workspace support for the application panes it creates.
Note: The deprecated ILcyModelCustomizerFactory
instances are still
supported.
- Since:
- 11.0
-
ClassDescriptionThis add-on brings up a UI panel to inspect and edit the properties of a selected model.