Modelers

org.topcased.modeler.export
Class ExporterManager

java.lang.Object
  extended by AbstractExtensionManager
      extended by org.topcased.modeler.export.ExporterManager

public final class ExporterManager
extends AbstractExtensionManager

This class manages the extension point org.topcased.modeler.export.exporters. It creates a cache of all the registered exporters and handles dynamic plugins (update the cache).


Field Summary
static java.lang.String EXTENSION_POINT
          Id of the extension point
 
Method Summary
protected  void addExtension(org.eclipse.core.runtime.IExtension extension)
           
 ExporterDescriptor getExporter(java.lang.String format)
          Returns the exporter for the given format
 ExporterDescriptor[] getExporters()
          Returns the registered Exporter descriptors
 java.lang.String[] getFormats()
          Returns the available export formats
static ExporterManager getInstance()
          Returns the shared instance
protected  void removeExtension(org.eclipse.core.runtime.IExtension extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTENSION_POINT

public static final java.lang.String EXTENSION_POINT
Id of the extension point

See Also:
Constant Field Values
Method Detail

getInstance

public static ExporterManager getInstance()
Returns the shared instance

Returns:
the singleton

addExtension

protected void addExtension(org.eclipse.core.runtime.IExtension extension)
See Also:
org.topcased.facilities.extensions.AbstractExtensionManager#addExtension(org.eclipse.core.runtime.IExtension)

removeExtension

protected void removeExtension(org.eclipse.core.runtime.IExtension extension)
See Also:
org.topcased.facilities.extensions.AbstractExtensionManager#removeExtension(org.eclipse.core.runtime.IExtension)

getExporter

public ExporterDescriptor getExporter(java.lang.String format)
Returns the exporter for the given format

Parameters:
format - the format
Returns:
the image exporter

getFormats

public java.lang.String[] getFormats()
Returns the available export formats

Returns:
the formats

getExporters

public ExporterDescriptor[] getExporters()
Returns the registered Exporter descriptors

Returns:
the descriptors

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.