Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » How to show functions and attributes inside interface?
How to show functions and attributes inside interface? [message #470358] Thu, 10 May 2007 17:54 Go to next message
Pradeep is currently offline Pradeep
Messages: 54
Registered: July 2009
Member
Most of my interfaces are pretty descriptive. i.e. they have function
definitions and attributes inside them.

The uml diagram editor doesn't seem to display these functions and
attributes. Is there a way to enable these things?

Currently I am generating UML class diagram using the uml ecore editor.


Thanks
Pradeep
Re: How to show functions and attributes inside interface? [message #470364 is a reply to message #470358] Fri, 11 May 2007 00:42 Go to previous messageGo to next message
Pradeep is currently offline Pradeep
Messages: 54
Registered: July 2009
Member
It just displays a circle.


"Pradeep" <eclipseuser123@yahoo.com> wrote in message
news:f204be$p8s$1@build.eclipse.org...
> Most of my interfaces are pretty descriptive. i.e. they have function
> definitions and attributes inside them.
>
> The uml diagram editor doesn't seem to display these functions and
> attributes. Is there a way to enable these things?
>
> Currently I am generating UML class diagram using the uml ecore editor.
>
>
> Thanks
> Pradeep
>
Re: How to show functions and attributes inside interface? [message #470722 is a reply to message #470364] Fri, 11 May 2007 09:47 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
Hi Pradeep!

"Show As Class" action in the context menu of Interface is used to show
Interface as rectangle. Inner Attributes and Operations are shown inside
right as it was done for Classes.

This is very good question as it is not always obvious that Interface may be
shown as Class.
There is bug in bugzilla 182156 [ClassD] beautify diagram: Interface with
class notation should be created by default. It has circle
figure on creation now.
We are going to fix it soon.

Tatiana.


"Pradeep" <eclipseuser123@yahoo.com> wrote in message
news:f20s6q$vqq$1@build.eclipse.org...
> It just displays a circle.
>
>
> "Pradeep" <eclipseuser123@yahoo.com> wrote in message
> news:f204be$p8s$1@build.eclipse.org...
>> Most of my interfaces are pretty descriptive. i.e. they have function
>> definitions and attributes inside them.
>>
>> The uml diagram editor doesn't seem to display these functions and
>> attributes. Is there a way to enable these things?
>>
>> Currently I am generating UML class diagram using the uml ecore editor.
>>
>>
>> Thanks
>> Pradeep
>>
>
>
Re: How to show functions and attributes inside interface? [message #505860 is a reply to message #470722] Tue, 05 January 2010 06:42 Go to previous messageGo to next message
Daniel Rippel is currently offline Daniel Rippel
Messages: 29
Registered: July 2009
Junior Member
Hi everyone,

I'm sorry to dig up an old post, but I have a question related to the interface representation.

Is it somehow possible to programatically set the representation type of an interface to the emf model element?

Actually I introduce several interfaces to a newly created class diagram (using the package.createInterface(name) method). Unfortunately they are still created as cycles but I need them to be represented as classes. Is there any way to do this directly on interface creation?

Thank you in advance,
Daniel
Re: How to show functions and attributes inside interface? [message #592979 is a reply to message #470358] Fri, 11 May 2007 00:42 Go to previous messageGo to next message
Pradeep is currently offline Pradeep
Messages: 54
Registered: July 2009
Member
It just displays a circle.


"Pradeep" <eclipseuser123@yahoo.com> wrote in message
news:f204be$p8s$1@build.eclipse.org...
> Most of my interfaces are pretty descriptive. i.e. they have function
> definitions and attributes inside them.
>
> The uml diagram editor doesn't seem to display these functions and
> attributes. Is there a way to enable these things?
>
> Currently I am generating UML class diagram using the uml ecore editor.
>
>
> Thanks
> Pradeep
>
Re: How to show functions and attributes inside interface? [message #593001 is a reply to message #470364] Fri, 11 May 2007 09:47 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana Fesenko
Messages: 530
Registered: July 2009
Senior Member
Hi Pradeep!

"Show As Class" action in the context menu of Interface is used to show
Interface as rectangle. Inner Attributes and Operations are shown inside
right as it was done for Classes.

This is very good question as it is not always obvious that Interface may be
shown as Class.
There is bug in bugzilla 182156 [ClassD] beautify diagram: Interface with
class notation should be created by default. It has circle
figure on creation now.
We are going to fix it soon.

Tatiana.


"Pradeep" <eclipseuser123@yahoo.com> wrote in message
news:f20s6q$vqq$1@build.eclipse.org...
> It just displays a circle.
>
>
> "Pradeep" <eclipseuser123@yahoo.com> wrote in message
> news:f204be$p8s$1@build.eclipse.org...
>> Most of my interfaces are pretty descriptive. i.e. they have function
>> definitions and attributes inside them.
>>
>> The uml diagram editor doesn't seem to display these functions and
>> attributes. Is there a way to enable these things?
>>
>> Currently I am generating UML class diagram using the uml ecore editor.
>>
>>
>> Thanks
>> Pradeep
>>
>
>
Re: How to show functions and attributes inside interface? [message #625411 is a reply to message #470722] Tue, 05 January 2010 06:42 Go to previous message
Daniel Rippel is currently offline Daniel Rippel
Messages: 29
Registered: July 2009
Junior Member
Hi everyone,

I'm sorry to dig up an old post, but I have a question related to the interface representation.

Is it somehow possible to programatically set the representation type of an interface to the emf model element?

Actually I introduce several interfaces to a newly created class diagram (using the package.createInterface(name) method). Unfortunately they are still created as cycles but I need them to be represented as classes. Is there any way to do this directly on interface creation?

Thank you in advance,
Daniel
Previous Topic:UML diagram corrupted itself (NPE), how to recover?
Next Topic:Can't find XXXDocumentProvider class
Goto Forum:
  


Current Time: Wed Aug 20 02:55:25 EDT 2014

Powered by FUDForum. Page generated in 0.10465 seconds