MyEclipse Forums
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gastil
Post subject: cant drag source from Package Expl into UML2 Class Diagram  PostPosted: Apr 10, 2011 - 11:39 PM
Registered Member
Registered Member


Joined: Apr 10, 2011
Posts: 5

Given a java Enterprise Application Project with several source files listed in the Package Explorer, I tried to drag-and-drop one of those into a new, empty UML2 Class Diagram. I am in the 'MyEclipse UML' perspective. When I try to drag-and-drop, once it gets into the editor view it goes grey and /-ed out (a circle with an \ thru it).

The editor window I am trying to drag the classes into has the extension .umldi

I read two MyEclipse tutorials on this but both imply that this is supposed to work this way. They referred to this process as "forward engineering from java source code to UML diagrams".

This is my first experience with MyEclipse. I have a trial version. This process works just fine for me in plain eclipse with eUML.

If drag-and-drop is not possible, please specify a way to add classes to my class diagram, from existing java source. I was not able to find any menu item for 'forward engineering'.

Installation Details...
*** Date:
Sunday, April 10, 2011 3:28:17 PM PDT

** System properties:
OS=MacOSX
OS version=10.5.8
Java version=1.5.0_28


*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 9.0
Build id: 9.0-20110318


*** Eclipse details:
MyEclipse Enterprise Workbench

Version: 9.0
Build id: 9.0-20110318






Eclipse startup command=-os
macosx
-ws
carbon
-arch
x86
-showsplash
-launcher
/Applications/MyEclipse/MyEclipse 9.app/Contents/Profile/myeclipse.app/Contents/MacOS/myeclipse
-name
Myeclipse
--launcher.library
/Applications/MyEclipse/MyEclipse 9.app/Contents/Profile/myeclipse.app/Contents/MacOS//../../../../../../Common/plugins/org.eclipse.equinox.launcher.carbon.macosx_1.1.1.R36x_v20100810/eclipse_1309.so
-startup
/Applications/MyEclipse/MyEclipse 9.app/Contents/Profile/myeclipse.app/Contents/MacOS/../../../../../../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-install
/Applications/MyEclipse/MyEclipse 9.app/Contents/Profile
-configuration
/Applications/MyEclipse/MyEclipse 9.app/Contents/Profile/configuration
-keyring
/Users/gastil/.eclipse_keyring
-consoleLog
-showlocation
-vm
/System/Library/Frameworks/JavaVM.framework
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject: RE: cant drag source from Package Expl into UML2 Class Diagr  PostPosted: Apr 11, 2011 - 09:39 AM



Joined: Nov 11, 2010
Posts: 2154

gastil,

I am unable to replicate it at my end.

1) Can you send us your class file? Also send a screenshot of the editor view which is grayed out. Here is an FAQ on how to attach the files :

http://www.myeclipseide.com/PNphpBB2-viewtopic-t-27029.html

2) Here is the other way : Right click on the package > MyEclipse > Generate UML2 Class diagram. Select the classes you want to include in the class diagram.

Let me know how this works for you.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
gastil
Post subject: src was not defined as a package  PostPosted: Apr 11, 2011 - 03:21 PM
Registered Member
Registered Member


Joined: Apr 10, 2011
Posts: 5

Hi support-swapna,

You have helped me. I loaded one of the "examples on demand" that looked simple to be sure we would have the most simple class as an example. And I saw the src folder for the example project had very different icons than my project. It appears when I created my project that my src was not automatically made into a package as it does in plain eclipse. Indeed, the example's classes ARE able to be dragged into a class diagram. Also your right-click method does work on the example project.

So my problem was not with the UML drawing. My problem was with creating a MyEclipse project from existing source (src, lib, WebRoot,...). I had not realized that process was different in MyEclipse than plain eclipse, where it is automatic.

I will look for a tutorial on importing existing files into a new MyEclipse project.

- gastil
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject: RE: src was not defined as a package  PostPosted: Apr 12, 2011 - 09:14 AM



Joined: Nov 11, 2010
Posts: 2154

gastil,

1) You can use the Import Project functionality to import projects created in Eclipse/MyEclipse.
You can import .jar and .zip. From MyEclipse IDE, click on File > Import > General > archive file and follow the wizard.

2) If you are looking at importing .WAR files then here is the thread which discusses it :
http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=26709

Let me know if you have any issues.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
gastil
Post subject:   PostPosted: Apr 13, 2011 - 12:55 AM
Registered Member
Registered Member


Joined: Apr 10, 2011
Posts: 5

Thank you Swapna,

I now have my Web Projects loaded properly in MyEclipse so now the UML drawing options all work correctly. Thank you for the tutorial links. You may close this help ticket.

- gastil
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Apr 13, 2011 - 05:13 AM



Joined: Nov 11, 2010
Posts: 2154

gastil,

Glad that it is working.
Do let us know if you have any issues.

_________________
Swapna
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   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits