01: package com.vividsolutions.jump.workbench.ui.plugin.imagery;
02:
03: import com.vividsolutions.jump.workbench.imagery.ReferencedImageFactory;
04: import com.vividsolutions.jump.workbench.imagery.ecw.ECWImageFactory;
05: import com.vividsolutions.jump.workbench.imagery.geotiff.GeoTIFFImageFactory;
06: import com.vividsolutions.jump.workbench.imagery.graphic.GraphicImageFactory;
07: import com.vividsolutions.jump.workbench.imagery.mrsid.MrSIDImageFactory;
08: import com.vividsolutions.jump.workbench.plugin.AbstractPlugIn;
09: import com.vividsolutions.jump.workbench.plugin.PlugInContext;
10: import com.vividsolutions.jump.workbench.registry.Registry;
11:
12: public class InstallReferencedImageFactoriesPlugin extends
13: AbstractPlugIn {
14: public void initialize(final PlugInContext context)
15: throws Exception {
16: Registry registry = context.getWorkbenchContext().getRegistry();
17:
18: registry.createEntry(
19: ReferencedImageFactory.REGISTRY_CLASSIFICATION,
20: new GraphicImageFactory());
21: registry.createEntry(
22: ReferencedImageFactory.REGISTRY_CLASSIFICATION,
23: new ECWImageFactory());
24: registry.createEntry(
25: ReferencedImageFactory.REGISTRY_CLASSIFICATION,
26: new GeoTIFFImageFactory());
27: registry.createEntry(
28: ReferencedImageFactory.REGISTRY_CLASSIFICATION,
29: new MrSIDImageFactory());
30: }
31:
32: }
|