I have been trying to figure out a way to extend a java class that resides outside of my own set of packages.
For example, let’s say I have a class called ‘AssetDestroyed’ that extends java.lang.RuntimeException.
How can I refer to RuntimeException in my class diagram?
In addition to being able to extend abstract classes, I’d like to also be able to implement interfaces outside of my own packages.
Thanks for your post. You can use Instant Reverse to generate classes from the jdk first, then you will be able to reference to the generated class in the diagram.
If there are any inquiries, please feel free to ask.
i start to use VP and this topic answer exactly to my question . Therefore, i still have a problem:
How to get some of my classes diagram inherit a class of the jdk (i.e. Vector) ?
The generalization cannot be used graphically when diagrams are on 2 tabs … and i dont want to add it to my diagram since to many classes could inherit java.util.Vector.
I hope that I’m clear enough to make me understand
Thanks for your post. You can create a view of the class on the diagram first, create generalization between the classes, then delete the model view but keep the generalization between them.
You can refer to the flash movie of how to do this in the following link:
If there are any further inquiry, please feel free to contact me.
tanks for your answer. I actually used this method, but I used the keyboard Ctrl+C / Ctrl+V to do that. The link that you have given allows me to make a better use of the graphical interface.
Have good day.
You are welcome. If you have any inquiry in the future, please do not hesitate to contact me.
FYI, both Ctrl+V and drag from the Model Explorer can create a model view on the diagram.
You can refer to the flash game of how to do this in the following link: