| Author |
Message |
|
|
Post subject: UML problem
Posted: Jun 22, 2005 - 10:59 PM
|
|
Registered Member


Joined: May 21, 2005
Posts: 6
|
|
I've got problem with UML editor in MyEclipse 4.0M2. When I want to delete some object from model and I click on delete button (or on "Delete form model" in object's context menu) object disappears from diagram, but it stays in Outline (and in the model).
There was no problem in MyEclipse 4.0M1.
Am I doing something wrong or is there a bug in UML editor? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jun 23, 2005 - 02:08 AM
|
|
Moderator


Joined: May 06, 2003
Posts: 6578
|
|
| This looks like a new bug in this version of the editor. We'll get a problem report created for it and get it fixed for the next release. Thanks for reporting it. |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Re: UML problem
Posted: Jun 23, 2005 - 06:26 AM
|
|
Moderator


Joined: Dec 13, 2004
Posts: 340
|
|
| petr5250 wrote: | I've got problem with UML editor in MyEclipse 4.0M2. When I want to delete some object from model and I click on delete button (or on "Delete form model" in object's context menu) object disappears from diagram, but it stays in Outline (and in the model).
There was no problem in MyEclipse 4.0M1.
Am I doing something wrong or is there a bug in UML editor? |
Hi,
Thanks for reporting this. Could you try closing the editor and re-opening it and see if the deleted elements show up in the outline view / model. |
_________________ Kapil
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Re: UML problem
Posted: Jun 23, 2005 - 08:04 AM
|
|
Registered Member


Joined: May 21, 2005
Posts: 6
|
|
| support-kapil wrote: | | petr5250 wrote: | I've got problem with UML editor in MyEclipse 4.0M2. When I want to delete some object from model and I click on delete button (or on "Delete form model" in object's context menu) object disappears from diagram, but it stays in Outline (and in the model).
There was no problem in MyEclipse 4.0M1.
Am I doing something wrong or is there a bug in UML editor? |
Hi,
Thanks for reporting this. Could you try closing the editor and re-opening it and see if the deleted elements show up in the outline view / model. |
Hi,
I tried it and deleted elements are still in outline view |
|
|
| |
|
|
|
 |
|
|
Post subject: Any update on the code generation issue in the UML tool?
Posted: Feb 03, 2006 - 11:56 PM
|
|

Joined: Jan 24, 2006
Posts: 3
|
|
I just wanted to see if this bug has been fixed. I have experienced the same issue (delete elements reappear while generating code) in 4.1 GA release. It is really frustrating so if someone has any update on this bug I would appreciate it.
Thanks
Keshav |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 04, 2006 - 05:56 AM
|
|
Moderator


Joined: Dec 13, 2004
Posts: 340
|
|
Keshav,
There are two kinds of delete, one is delete-from-model which is the permanent remove from the UMR and the other is delete-from-diagram so if you have the same element in multiple diagrams only the current instance is removed. (If you right click an element you can see the two options) To check if you still have remnants set the outline view to show the hierarchy in package-centric mode and see if any unused classes show up. |
_________________ Kapil
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 06, 2006 - 05:17 PM
|
|

Joined: Jan 24, 2006
Posts: 3
|
|
| support-kapil wrote: | Keshav,
There are two kinds of delete, one is delete-from-model which is the permanent remove from the UMR and the other is delete-from-diagram so if you have the same element in multiple diagrams only the current instance is removed. (If you right click an element you can see the two options) To check if you still have remnants set the outline view to show the hierarchy in package-centric mode and see if any unused classes show up. | I have noted that but the problem still exists.
So just to clarify, when I open a diagram in package centric outline view, I notice classes and associations that have been deleted from the diagram. When I right click on a deleted class there is only one option ("remove from model"). After selecting that option, two things are observed
1. The class still remains in the outline view (but when the package view is collapsed and expanded, the class is removed so I guess this could be a refresh bug)
2. When I save the umr and regenerate the java code, the deleted class is still generated. I have tried closing umr ( and/or even shutting down eclipse) and reopening the umr but the deleted class still shows up.
I hope this explains the issue.
Thanks
Keshav |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 06, 2006 - 09:39 PM
|
|
Moderator


Joined: Dec 13, 2004
Posts: 340
|
|
Keshav,
Dou have a step by step way to reproduce this bug? That would help a lot in replicating and getting it fixed. Also if you can mail us your UMR we can get the unwanted elements removed and send the file back to you asap. (email support@myeclipseide.com with ATTN:Kapil as subj)
Sorry for the trouble,
Kapil |
_________________ Kapil
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 13, 2006 - 12:20 AM
|
|
Registered Member


Joined: Feb 04, 2006
Posts: 5
|
|
I have the same problem with MyEclipse 4.1GA
If you need a step by step way to reproduce the problem, I can provide it with a super simple model with just 2 classes:
1. Create a new Java project
2. Create a UML Model Repository
3. Create a class, call it a.
4. Create a class, call it b.
5. Link a to b as a uniAssociation
6. Generate Java code - should be okay
7. Remove the association from the diagram (not delete it from the model)
8. Generate the Java code - still the same even though the uniAssociation has been removed from the model (and from the outline)
9. Link a to b as a uniAssociation
10. Association shows in the outline and a duplicate is generated in the code.
There appears to be no way of getting rid of the 'removed' association since it isn't in the outline to be able to select it and it isn't shown on the diagram. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 13, 2006 - 08:18 AM
|
|
Moderator


Joined: Dec 13, 2004
Posts: 340
|
|
gdr2,
THanks for the replication steps. I was able to reproduce it quite easily. I think since the uni-association edge cannot be dragged back into the diagram the remove from diagram action is unnecessary. For removing the edge, try this: Delete (w/ del key - del from diagram) class a then undo it the uni association is drawn again you can then proceeed to remove it from the model. |
_________________ Kapil
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 13, 2006 - 10:08 PM
|
|

Joined: Jan 24, 2006
Posts: 3
|
|
Hi Kapil,
Apologies for not getting back to you earlier. I think gdr2 described the issue well except that it is also true for any element that is deleted from diagram but your solution has worked fine for me.
I have another question about the UML diagram. When I have a class that implements (or realizes) an interface in an UML diagram, the generated jave code for the class doesn't include the methods from the interface. Is there a way to automatically include these methods?
Thanks
Keshav |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 14, 2006 - 03:13 AM
|
|
Moderator


Joined: Dec 13, 2004
Posts: 340
|
|
| skeshav wrote: | Hi Kapil,
Apologies for not getting back to you earlier. I think gdr2 described the issue well except that it is also true for any element that is deleted from diagram but your solution has worked fine for me.
|
No Problem, I'm glad that you have it working now. We are currently reviewing the remove from Diagram option to make sure these issues do not crop up in future versions.
| skeshav wrote: |
I have another question about the UML diagram. When I have a class that implements (or realizes) an interface in an UML diagram, the generated jave code for the class doesn't include the methods from the interface. Is there a way to automatically include these methods?
Thanks
Keshav |
We currently do not have this functionality however it is on our todo list. I will file your request internally.
Best,
Kapil |
_________________ Kapil
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 14, 2006 - 06:49 AM
|
|
Registered Member


Joined: Feb 04, 2006
Posts: 5
|
|
The more testing I do with the UML editor, the more problems I see.
Are you interested in a long list of the problems I have run into. I think most of them are defects.
It varies from weird behaviour, with work arounds in some cases and in other cases, they are bit like land mines waiting to be stepped on. There are also GUI problems where the size of controls change randomly, in some cases they get much larger and in other cases they get much smaller, and then stay that way until I get out of Eclipse and restart it. I haven't been able to reliably reproduce those problems, but I could send a screen shot for when they do recur.
BTW, the work around for removing an association from the diagram by doing an undo only works while you are in that session. As soon as you exit Eclipse and return, the 'phantom' associations seem to be hidden somewhere that they can no longer be accessed from, and therefore can not be deleted from the model.
If you want I can outline a step by step process to demonstrate the problem. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 14, 2006 - 07:45 AM
|
|
Moderator


Joined: Dec 13, 2004
Posts: 340
|
|
| gdr2 wrote: |
Are you interested in a long list of the problems I have run into. I think most of them are defects.
..
..
I haven't been able to reliably reproduce those problems, but I could send a screen shot for when they do recur.
|
We always welcome constructive comments that help us improve product quality, you can list them out here or email them to support@myeclipseide w/ ATTN: Kapil as subj.
| gdr2 wrote: |
If you want I can outline a step by step process to demonstrate the problem.
|
Please do so.
Thanks,
Kapil |
_________________ Kapil
MyEclipse Support
|
| |
|
|
|
 |
|
|