Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » GenModel bug with empty package?
GenModel bug with empty package? [message #394101] Mon, 04 July 2005 08:57 Go to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
hi,

i tried to create an empty package, but the genmodel seems to link the ecore package instead of include it.
this is my ecore file "com.sympedia.ccc.ecore":

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="ccc"
nsURI="http://www.sympedia.com/2005/com.sympedia.ccc.ecore" nsPrefix="com.sympedia.ccc"/>

inserting a dummy class fixes it...
any idea?

cheers
/eike


Re: GenModel bug with empty package? [message #394135 is a reply to message #394101] Tue, 05 July 2005 14:54 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050205080602020604010600
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Eike,

The icon is chosen like this:

public Object getImage(Object object)
{
GenPackage genPackage = (GenPackage)object;
String imageName = genPackage.eContainer() instanceof GenPackage
|| *genPackage.canGenerate()* ?
"full/obj16/EPackage" : "full/obj16/UsedGenPackage";
return new
UnderlayedImage(getResourceLocator().getImage(imageName));
}

And an empty package can't be generated so it looks like a link.


Eike Stepper wrote:

> hi,
>
> i tried to create an empty package, but the genmodel seems to link the
> ecore package instead of include it.
> this is my ecore file "com.sympedia.ccc.ecore":
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ecore:EPackage xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="ccc"
> nsURI="http://www.sympedia.com/2005/com.sympedia.ccc.ecore"
> nsPrefix="com.sympedia.ccc"/>
>
> inserting a dummy class fixes it...
> any idea?
>
> cheers
> /eike



--------------050205080602020604010600
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">
</head>
<body bgcolor="#ffffff" text="#000000">
Eike,<br>
<br>
The icon is chosen like this:<br>
<blockquote>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:NullPointerException for handleDanglingHREF
Next Topic:Aggregation in SDO
Goto Forum:
  


Current Time: Thu Apr 25 15:40:15 GMT 2024

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

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

Back to the top