- This topic has 4 replies, 2 voices, and was last updated 18 years, 7 months ago by Kapil Kapre.
-
AuthorPosts
-
sjdownMember– System Setup ——————————-
Operating System and version: Windows XP Service Pack 2
Eclipse version: Eclipse 3.1.1
Eclipse build id: M20050929-0840
Fresh Eclipse install (y/n): y
If not, was it upgraded to its current version using the update manager?
Other installed external plugins: jboss ide,
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 4
MyEclipse version: 4.1.1
Eclipse JDK version: 1.5.0_06
Application Server JDK version: 1.5.0_06
Are there any exceptions in the Eclipse log file? NoIf this is a DB related question please answer the following: No
RDBMS vendor and version:
JDBC driver vendor and version, and access type (thin, type-2, etc):
Connection URL:
Eclipse error logs related to com.genuitec.eclipse.sqlexplorer packages:– Message Body ——————————-
I am currently evaluating MyEclipse for my development team. I am most interested in the reverse engineer feature. However, the supplied documentation is not helping in resolving the problem I have outlined below. Your help would be appreciated.
The documentation or Forum do not help in showing how MyEclipse can reverse engineer the following code:
import java.util.Vector;
public class ClassB {
public String description;
public Vector myClassC;
}import java.math.BigInteger;
public class ClassC {
public String comment;
public BigInteger age;
}When I reverse engineer the above two classes, I would like to know what
extra information I need to supply the reverse engineer tool to produce a
diagram which has 0-to-* association between ClassB and ClassC, which is only navigable from ClassB to ClassC.I have been able generate java source which fits this pattern. But in my
companies case we need to be able to reverse engineer diagrams which fit
this pattern. The help and documentation provided and trying different
combinations in the reverse engineering dialog does not produce a class
diagram with the association built correctly in the model or diagram.Our investigation when generating from a Model to Java code we have found will produce the correct code. We have tried adding in the @element-type to our java doc. But this still doesn’t reverse engineer as we want it to.
This particular problem is the major issue we need to resolve in choosing
MyEclipse as our development IDE.Thanks again for you time
Kapil KapreMemberYou need to use a ClassC type’d variable in class B. Try with the following code instead
import java.util.Vector; public class ClassB { public String description; public ClassC myClassC[]; }
Kapil KapreMemberI forgot to add. Also set the “Model Java attributes as associations” in the reverse engineering preferences.
sjdownMemberThanks for your response and yes Arrays do work. However, this is rather restrictive and doesn’t reflect how real Java applications are built. It also doesn’t match how MyEclispe generates Java from a model.
Are there plans to provide behaviour which can generate a diagram from classes which use Vectors (and other Collection types) to represent a many relationship?
I would be happy if some form of JavaDoc or XDoclet was used to help MyEclipse determine what the type of the relationship was.
Kapil KapreMemberCurrently there arent any plans to add this feature. However I have filed your request internally.
-
AuthorPosts