Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Setting "Root Extends Interface" per class?
Setting "Root Extends Interface" per class? [message #423879] Wed, 08 October 2008 16:39 Go to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6464
Registered: July 2009
Senior Member
Hi,

I need to add a non-model interface to only one of several classes in my
model.
Is there a way?

Cheers
/Eike


Re: Setting "Root Extends Interface" per class? [message #423881 is a reply to message #423879] Wed, 08 October 2008 16:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30806
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070803020103050701070706
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Eike,

You can add it directly like this:

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>EEnum Literal</b></em>'.
* * @extends Enumerator*
* <!-- end-user-doc -->
*/
public interface EEnumLiteral extends ENamedElement, Enumerator

Or you can also define an EClass, set abstract/interface to true, set
the instance type name to a.b.C and add it to the eSuperTypes of other
classes...


Eike Stepper wrote:
> Hi,
>
> I need to add a non-model interface to only one of several classes in
> my model.
> Is there a way?
>
> Cheers
> /Eike
>

--------------070803020103050701070706
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>
You can add it directly like this:<br>
<blockquote><small>/**</small><br>
<small>
Re: Setting "Root Extends Interface" per class? [message #423882 is a reply to message #423881] Wed, 08 October 2008 17:14 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6464
Registered: July 2009
Senior Member
Ed Merks schrieb:
> Eike,
>
> You can add it directly like this:
>
> /**
> * <!-- begin-user-doc -->
> * A representation of the model object '<em><b>EEnum
> Literal</b></em>'.
> * * @extends Enumerator*
> * <!-- end-user-doc -->
> */
> public interface EEnumLiteral extends ENamedElement, Enumerator
>
Ah, I didn't know that the tag needs to go into user-doc!! Now it's
working, thank you ;-)

Cheers
/Eike

> Or you can also define an EClass, set abstract/interface to true, set
> the instance type name to a.b.C and add it to the eSuperTypes of other
> classes...
>
>
> Eike Stepper wrote:
>> Hi,
>>
>> I need to add a non-model interface to only one of several classes in
>> my model.
>> Is there a way?
>>
>> Cheers
>> /Eike
>>


Previous Topic:cdo (derby db) and resource import containing single quotation mark(s) in string
Next Topic:JMerge and Protected Region
Goto Forum:
  


Current Time: Mon Jan 20 16:04:47 GMT 2020

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

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

Back to the top