| Author |
Message |
|
|
Post subject: unable to do things in uml2
Posted: 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...... |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: unable to do things in uml2
Posted: Apr 27, 2010 - 12:04 PM
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: unable to do things in uml2
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: unable to do things in uml2
Posted: Jul 14, 2010 - 01:44 AM
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: unable to do things in uml2
Posted: Jul 14, 2010 - 01:48 AM
|
|
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Re: RE: unable to do things in uml2
Posted: Jul 14, 2010 - 12:57 PM
|
|
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
|
| |
|
|
|
 |
|
|
|