Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GMF Guide
Previous Page Home Next Page

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


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire