emf

Free Windows based .EMF editor?

Does anybody have any first hand experience using a free windows based graphics editor that can handle EMF files? ...

GDI+ / C#: How to save an image as EMF?

If you use Image.Save Method to save an image to a EMF/WMF, you got an exceptoin (http://msdn.microsoft.com/en-us/library/ktx83wah.aspx) Is there another way to save the image to an EMF/WMF? Are there any encoders available? Thanks Eric ...

Vector graphics clipboard format for Qt.

I want my Qt application to be able to save simple vector graphics to clipboard in a compatible way. On windows I want to be able to paste the graphics into Microsoft Word or Powerpoint. On Linux I want to be compatible with the Open Office. Which format would you recommend? Can Qt generate EMF in an easy way? Is SVG an option? Update...

Meta-model evolution in the Eclipse Modeling Framework

I am making an attempt to evaluate EMF for use within a project. One of the things i am looking at is some kind of versioning support at the metamodel (M2 or the .ecore model) level. In terms of metamodel evolution, i have read certain discussions and have come across this paper. However, i wanted to know if there is anything concrete ...

Analyzing XML schemas using org.eclipse.xsd and Maven2

I'm trying to implement the sample code to this article from 2002 (I know..), but cannot get the schema to load. import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.resource.ResourceSet; import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; import org.eclipse.xsd.uti...

Does WPF support reading/writing WMF/EMF files natively?

Can Windows Presentation Foundation read/write WMF/EMF files without having to use WinForms Interop or Win32. If it does not, what is the reason? ...

How to convert xsd to ecore (EMF)

What is the best way to convert .xsd-files into .ecore-files? Is there an eclipse plugin for that? ...

Save metafile in C#

If I have a wmf or emf image in System.Drawing.Image, is there a way to save the metafile data with c# without rendering it as a bitmap? Calling Image.Save will render it to a bitmap and I want to keep the original data so that it would still be a valid .wmf or .emf format file. ...

Print EMF (WMF) from the Command Line using SHIMGVW.DLL

For Windows XP / Windows Server 2003 I'm trying to print an EMF(or WMF) file format to the virtual printer "Microsoft XPS Document Writer" using Windows Picture and Fax Viewer (shimgvw.dll) from the command line. I want the resulting XPS to be in vector format, like the WMF/EMF is. It works with all image formats except WMF and EMF...

how to use web service using EMF classes??

I want to create a web service by using classes created by EMF, as those classes are not in standard bean format, is there any wrapper or some tool available to create web service? ...

How to create Genmodel and model code from ecore programmatically using EMF API?

Hello, are there any tutorials available for doing so? ...

How to generate only one editor for more models in EMF ?

I have more EMF genmodels. It is pretty lame to create new editor for each model. After generation (right click - generateAll) old editor is always overridden. ...

Generate method returning EMF Unmodifiable list

Hi, I am using EMF through annotated Java code as following /** * Adds the given type to this filter. Has no effect if the given type * already belongs to this filter. * * @param type * the type to add * @model */ public void addEntityType(String type); /** * Returns the list of types belonging to this filter. ...

How to get started with MDA?

Hey all, I've been wanting to have a dabble with Model Driven Architecture for a while now. Could anyone give me any hints on how to start. I'd love to be able to define a domain model in UML then be able to transform it to say java classes with JPA/hibernate annotations defining the data mappings. I'd really love to get my hands dir...

What is the best way to serialize an EMF model instance?

I have an Eclipse RCP application with an instance of an EMF model populated in memory. What is the best way to store that model for external systems to access? Access may occur during and after run time. Reads and writes of the model are pretty balanced and can occur several times a second. I think a database populated using Hiberna...

How to read EMF - Enhanced metafiles?

Does anybody know of a library or a piece of code that can read EMF (Enhanced Metafiles). Ideally it would convert an EMF to a list of drawing commands and objects? ...

ResourceSet.createResource(URI) - what if 'uri' is not enough to create certain resource?

There is a method in ResourceSet which can create resource: public Resource createResource(URI uri) The problem: 'uri' is not enough to create valid type of resource. For example, if the uri is like this: "http://host/file.wsdl" then createResource will understand that WSDLResource should be created. But what if I have a wsdl with, say...

Dynamically Loading EMF Models

I have a backend system which i access via a REST based API and i am returned a resource. This is an EMF resource (an XMI representation). The problem is that i cannot, at design time, assume the metamodel for this resource - as the metamodel in the backend system can change without notice. I am wondering if i can, first, read the metam...

change type of fields in emf editor

Hello, I'm using EMF to let the user create a model using a generated editor. In the editor properties, in one of the properties of the model I want the user to click on "..." button instead of using string value. after he clicks the "..." button i will open a dialog that I created for him to pick from a list. How do I change the proper...

How to programmatically generate an EMF model (.ecore, .genmodel) from XSD schema?

I have been trying to do this as the last stage in a standalone application to convert from the file format used by a modeling program to an EMF model. I am able to convert the original format to XSD, which I can manually convert to an EMF model using the Eclipse importer, but I do not know how to do this programmatically to automate the...