MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
connect2vishal
Post subject: unable to do things in uml2  PostPosted: Apr 27, 2010 - 06:50 AM



Joined: Jul 05, 2009
Posts: 30

Its hard to do anything in uml to as i cant defined the string or int type property......
where is thats....>?

even the uml 2 tutorial is missing......
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
support-chakri
Post subject: RE: unable to do things in uml2  PostPosted: Apr 27, 2010 - 12:04 PM
Registered Member
Registered Member


Joined: Apr 05, 2010
Posts: 68

Hi connect2vishal,

In UML2, If you need to define a property in a class to be String, first of all you need to define String some where in the class diagram. The steps are given below to create a Sample Class and define a property as String.
1) Create a Web project
2) Create a UML2 model
3) Select MyEclipse UML perspective
4) In the uml model, you'll have a left panel with Objects, Connections and Comments
5) Select "Data Type" from "Objects" section, Drag and drop in the model area
6) Now, Select "Class" from the "Objects" section, drag and drop into the model area.
7) Right click on the class and select "Add Property"
8) If you select the property and see the property view, you'll have a Type option and a button adjacent to it. Click on the button to see the "String" data type option.

Please let me know whether this resolved your problem.

Thanks,
Chakri.
 
 View user's profile Send private message  
Reply with quote Back to top
connect2vishal
Post subject: Re: RE: unable to do things in uml2  PostPosted: Apr 28, 2010 - 04:16 AM



Joined: Jul 05, 2009
Posts: 30

Like the first thing how to define the default value of the variables defined in the interfaces and how to make them final..

support-chakri wrote:
Hi connect2vishal,

In UML2, If you need to define a property in a class to be String, first of all you need to define String some where in the class diagram. The steps are given below to create a Sample Class and define a property as String.
1) Create a Web project
2) Create a UML2 model
3) Select MyEclipse UML perspective
4) In the uml model, you'll have a left panel with Objects, Connections and Comments
5) Select "Data Type" from "Objects" section, Drag and drop in the model area
6) Now, Select "Class" from the "Objects" section, drag and drop into the model area.
7) Right click on the class and select "Add Property"
8) If you select the property and see the property view, you'll have a Type option and a button adjacent to it. Click on the button to see the "String" data type option.

Please let me know whether this resolved your problem.

Thanks,
Chakri.



like the
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
jarome
Post subject: Re: RE: unable to do things in uml2  PostPosted: Jul 14, 2010 - 01:44 AM
Registered Member
Registered Member


Joined: Sep 18, 2006
Posts: 24

support-chakri wrote:
Hi connect2vishal,

In UML2, If you need to define a property in a class to be String, first of all you need to define String some where in the class diagram. The steps are given below to create a Sample Class and define a property as String.
1) Create a Web project
2) Create a UML2 model
3) Select MyEclipse UML perspective
4) In the uml model, you'll have a left panel with Objects, Connections and Comments
5) Select "Data Type" from "Objects" section, Drag and drop in the model area
6) Now, Select "Class" from the "Objects" section, drag and drop into the model area.
7) Right click on the class and select "Add Property"
8) If you select the property and see the property view, you'll have a Type option and a button adjacent to it. Click on the button to see the "String" data type option.

Please let me know whether this resolved your problem.

Thanks,
Chakri.

That got me started. Thanks.
But how do I make things like Case Diagrams and Sequence diagrams? I do not see their icons anywhere.
Jim
 
 View user's profile Send private message  
Reply with quote Back to top
jarome
Post subject: RE: Re: RE: unable to do things in uml2  PostPosted: Jul 14, 2010 - 01:48 AM
Registered Member
Registered Member


Joined: Sep 18, 2006
Posts: 24

This is very non-intuitive. How do I delete an object? Clicking it and doing delete, or right-clicking and looking for a delete item do not work.
Jim
 
 View user's profile Send private message  
Reply with quote Back to top
support-ram
Post subject: RE: Re: RE: unable to do things in uml2  PostPosted: Jul 14, 2010 - 12:57 PM
Registered Member
Registered Member


Joined: Apr 05, 2010
Posts: 58

connect2vishal,
Quote:

how to define the default value of the variables defined in the interfaces


You can define the default value of the variables defined in the interfaces in 2 ways.
Please follow the steps.
1)
    a)Select property in interface from diagram
    b) Go to "Advanced" tab in Properties window.
    c) Enter required value against "Default" property.

2)
    a) Go to Outline view
    b) Go to the required property under interface
    c) Right click on the property and select create child option
    d) From the list select the required type
    e) Select the newly created child under property.
    f) Go to advanced tab in properties view.
    g) Enter required value against "Default" property.

Quote:

and how to make them final..



Let me clarify that declaring a variable in interface is final by default, no need to specify final explicitly.
========================================================================

Jim,
Quote:

how do I make things like Case Diagrams and Sequence diagrams?

You can create Case Diagrams and Sequence diagrams in 2 ways.
1) From Outline
    a) Select Model and right click on it.
    b) Select Add Diagram

which will list the available Diagrams.

2) From Toolbar,Select drop-down "Add UML2 Diagram" button and select the required Diagram to create. Please refer the below screen shot for toolbar button.

Quote:

How do I delete an object?

You can delete the objects in 2 ways.
1) Select the required object to delete and press "Delete" button from keyboard which will delete the object from Diagram only.
2) Right click on the required object
    a) if select "remove from Diagram" which will delete the object from Diagram and not from Model.
    b) if select "remove from Model" which will delete the object from Model.

_________________
Ram
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits