public static class EcorePlugin.Implementation extends EMFPlugin.EclipsePlugin
#startup()helper| Constructor and Description |
|---|
EcorePlugin.Implementation()
Creates the singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start(BundleContext context)
Starts up this plugin by reading some extensions and populating the relevant registries.
|
doGetImage, getBaseURL, getImage, getString, getString, getString, getString, getSymbolicName, logpublic EcorePlugin.Implementation()
public void start(BundleContext context)
throws java.lang.Exception
The global package registry
is populated by plugin registration of the form:
<extension point="org.eclipse.emf.ecore.generated_package" >
<package uri="http://www.example.org/abc/Abc.ecore" class="org.example.abc.AbcPackage"/>
<extension>
The URI is arbitrary but an absolute URI is recommended.
Provision for access to the serialized model via "http:" is encouraged.
The global resource factory registry's
extension map
is populated by plugin registration of the form:
<extension point="org.eclipse.emf.ecore.extension_parser">
<parser type="abc" class="org.example.abc.util.AbcResourceFactoryImpl"/>
<extension>
The global resource factory registry's
protocol map
is populated by plugin registration of the form:
<extension point="org.eclipse.emf.ecore.protocol_parser" >
<parser protocolName="abc" class="org.example.abc.util.AbcResourceFactoryImpl"/>
<extension>
The global URI map
is populated by plugin registration of the form:
<extension point="org.eclipse.emf.ecore.uri_mapping" >
<mapping source="//special/" target="special/"/>
<extension>
If the target is relative, it is resolved against the plugin's installed location,
resulting in a URI of the form:
platform:/plugin/plugin-name_1.2.3/...The above registration would map
//special/a/b.cto
platform:/plugin/plugin-name_1.2.3/special/a/b.c
java.lang.Exception - if there is a show stopping problem.