@Deprecated public class DefaultLayerEditorDescriptor extends Object implements LayerEditorDescriptor, ConfigurableExtension
module.xml
by extending the extension point layerEditors
with layerEditor
elements:
<extension point="beam-ui:layerEditors"> <layerEditor> <editorFactory>org.esa.snap.visat.toolviews.layermanager.editors.VectorDataLayerEditorFactory</editorFactory> <layer>VectorDataLayer</layer> </layerEditor> <layerEditor> <editor>org.esa.snap.visat.toolviews.layermanager.editors.ImageLayerEditor</editor> <layerType>com.bc.ceres.glayer.support.ImageLayer$Type</layerType> </layerEditor> <extension>
Note: This API is not public yet and may significantly change in the future. Use it at your own risk.
Constructor and Description |
---|
DefaultLayerEditorDescriptor()
Deprecated.
Constructor used by Ceres runtime for creating a dedicated
ConfigurationElement for this
LayerEditorDescriptor . |
Modifier and Type | Method and Description |
---|---|
void |
configure(ConfigurationElement config)
Deprecated.
|
protected ExtensionFactory |
createExtensionFactory()
Deprecated.
Creates an extension factory that maps an instances of a
Layer or
a LayerType to an instance of a LayerEditor . |
Class<? extends Layer> |
getLayerClass()
Deprecated.
Gets the
Layer class which is associated directly with a LayerEditor class or indirectly
via a ExtensionFactory class. |
Class<? extends LayerEditor> |
getLayerEditorClass()
Deprecated.
Gets the
LayerEditor class, whose instances serve as suitable editor either
for instances of the Layer class returned by LayerEditorDescriptor.getLayerClass() or
for instances of the LayerType class returned by LayerEditorDescriptor.getLayerTypeClass() . |
Class<? extends ExtensionFactory> |
getLayerEditorFactoryClass()
Deprecated.
Gets the
ExtensionFactory class, whose instances serve as suitable editor factory either
for instances of the Layer class returned by LayerEditorDescriptor.getLayerClass() or
for instances of the LayerType class returned by LayerEditorDescriptor.getLayerTypeClass() . |
Class<? extends LayerType> |
getLayerTypeClass()
Deprecated.
Gets the
LayerType class which is associated directly with a LayerEditor class or indirectly
via a ExtensionFactory class. |
public DefaultLayerEditorDescriptor()
ConfigurationElement
for this
LayerEditorDescriptor
.public Class<? extends Layer> getLayerClass()
LayerEditorDescriptor
Layer
class which is associated directly with a LayerEditor
class or indirectly
via a ExtensionFactory
class.getLayerClass
in interface LayerEditorDescriptor
LayerType
class. May be null
, if the LayerType
class is given.public Class<? extends LayerType> getLayerTypeClass()
LayerEditorDescriptor
LayerType
class which is associated directly with a LayerEditor
class or indirectly
via a ExtensionFactory
class.getLayerTypeClass
in interface LayerEditorDescriptor
LayerType
class. May be null
, if the Layer
class is given.public Class<? extends LayerEditor> getLayerEditorClass()
LayerEditorDescriptor
LayerEditor
class, whose instances serve as suitable editor either
for instances of the Layer
class returned by LayerEditorDescriptor.getLayerClass()
or
for instances of the LayerType
class returned by LayerEditorDescriptor.getLayerTypeClass()
.getLayerEditorClass
in interface LayerEditorDescriptor
LayerEditor
class. May be null
, if the ExtensionFactory
class is given.public Class<? extends ExtensionFactory> getLayerEditorFactoryClass()
LayerEditorDescriptor
ExtensionFactory
class, whose instances serve as suitable editor factory either
for instances of the Layer
class returned by LayerEditorDescriptor.getLayerClass()
or
for instances of the LayerType
class returned by LayerEditorDescriptor.getLayerTypeClass()
.getLayerEditorFactoryClass
in interface LayerEditorDescriptor
LayerEditor
class. May be null
, if the LayerEditor
class is given.public void configure(ConfigurationElement config) throws CoreException
configure
in interface ConfigurableExtension
CoreException
protected ExtensionFactory createExtensionFactory()
Layer
or
a LayerType
to an instance of a LayerEditor
.
Clients may override in order to provide their own ExtensionFactory
.
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.