Search code examples
javaeclipseumlclass-diagram

How to use core Java classes in Papyrus UML (Eclipse)?


I'm new to Papyrus UML in Eclipse. I'm trying to make a class diagram of classes that also use standard Java classes (e.g. java.awt.Point). So for example: Class Tracker has a property Point location. However, if I click the property location, I cannot set its type to any standard Java class.

I tried Import from registered library but there are no options that include the standard Java packages.

How can I use these standard classes in my class diagram?


Solution

  • You can not use Papyrus with Java existing java code. Usually you model then generate a java code from the model. You can try the reverse engineering feature but it would create model which is now not related to your existing java class.

    The only solution I see is to use live code and model synchronization UML tool.