Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Howto register an Ecore model for the 'Sample Reflective Ecore Model Editor'?
Howto register an Ecore model for the 'Sample Reflective Ecore Model Editor'? [message #415319] Wed, 12 December 2007 12:34 Go to next message
Eclipse UserFriend
Originally posted by: alexande.schwartzonline.de

The 'Sample Reflective Ecore Model Editor' seems to be a very nice
replacement for the generated editors. I know how to register a file
extension for my custom Ecore model the in the Eclipse UI (via "Window >
Preferences > General > Editors > File Associations).

Is there a change to define this mapping using an Eclipse extension point
in the plugin.xml file of my Ecore model project?
Re: Howto register an Ecore model for the 'Sample Reflective Ecore Model Editor'? [message #415330 is a reply to message #415319] Wed, 12 December 2007 15:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020004000609080405090500
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Alex,

Here's how it's registered for *.xmi in the Ecore editor plugin:

<extension point="org.eclipse.ui.editors">
<editor
id="org.eclipse.emf.ecore.presentation.ReflectiveEditorID"
name="%_UI_ReflectiveEcoreEditor_label"
icon=" platform:/plugin/org.eclipse.emf.edit/icons/full/obj16/Model File.gif "
extensions="xmi"
class="org.eclipse.emf.ecore.presentation.EcoreEditor"
contributorClass=" org.eclipse.emf.ecore.presentation.EcoreActionBarContributor $Reflective ">
</editor>
</extension>


Alex Schwartz wrote:
> The 'Sample Reflective Ecore Model Editor' seems to be a very nice
> replacement for the generated editors. I know how to register a file
> extension for my custom Ecore model the in the Eclipse UI (via "Window
> > Preferences > General > Editors > File Associations).
>
> Is there a change to define this mapping using an Eclipse extension point
> in the plugin.xml file of my Ecore model project?
>


--------------020004000609080405090500
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Alex,<br>
<br>
Here's how it's registered for *.xmi in the Ecore editor plugin:<small><br>
</small>
<blockquote><small>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Reflective evaluation of EOperations
Next Topic:EcoreToXSD transformation into a unique schema file.
Goto Forum:
  


Current Time: Fri Apr 26 11:57:54 GMT 2024

Powered by FUDForum. Page generated in 0.03023 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top