Path Maps
Identifier:
org.eclipse.gmf.runtime.emf.core.Pathmaps
Since:
6.0
Description:
Extension point for the definition of path map variables. Path map variables allow for portability of URIs, in similar fashion to path Eclipse's core path variables. The actual location indicated by a URI depends on the run-time binding of the path variable. Thus, different environments can work with the same resource URIs even though the resources are stored in different physical locations.
Configuration Markup:
<!ELEMENT extension (
pathmap)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT pathmap EMPTY>
<!ATTLIST pathmap
name CDATA #REQUIRED
plugin CDATA #IMPLIED
path CDATA #REQUIRED
>
Specifies a path map variable to be registered with the MSL.
-
name - The variable name.
-
plugin - The plugin containing the path, if different from the plug-in defining the extension.
-
path - The path, relative to the plug-in location (as indicated by the plugin attribute if specified, or the current plug-in if not).
Examples:
This example illustrates the definition of a path map to locate libraries
in the org.eclipse.uml2. Using this path map, URIs such as "pathmap://UML2_LIBRARIES/Ecore.library.uml2" can be used to reference UML2 library resources.
<extension
id=
"UML2Libraries"
name=
"UML2 Libraries"
point=
"org.eclipse.gmf.runtime.emf.core.Pathmaps"
>
<pathmap
name=
"UML2_LIBRARIES"
plugin=
"org.eclipse.uml2.resources"
path=
"libraries"
>
</pathmap>
</extension>
Copyright (c) 2003, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-v10.html