Magic Connector not working #25
Comments
Also, when a diagram object has a (large) image as an icon, when dragging the magic connector from the object there seems to be a UI lag. Is there something running in the background on the UI thread? Or perhaps a mouse listener? Or Display#readAndDispatch() being called somewhere? |
Confirm behaviour issue on my computers with the plugin installed |
@herve91 Herve, I checked your code. It seems to be an easy fix. A NPE is being thrown in your code when the Magic Connector tries to display its popup menu. The menu will get images from the UIProvider which can have a null EObject instance at this point. But SpecializationPlugin.java line 326 ( |
A UIProvider is really providing UI info for an EClass, so does not always have an EObject In fact, you should not rely on the |
Thanks a lot for pointing this out. I'll fix it ASAP ... |
Rather than just fixing the NPE, if you could make it so that The problem you will have is with The |
In your usage of that, you are trying to determine the context for the instance - whether it is in a folder, etc. I understand what you are trying to do, but the |
All right. If you think of a better way to achieve this, please do not hesitate :) |
Ideally, we need a plugin extension point so that plugins can provide information such as icon, size, color, label, figures etc for different contexts in response to the main Archi code's UIProviders. But that's not going to happen just yet. |
Not specific to Mac.
The menu should appear but doesn't. |
Oh, never used this functionality ... So it fails also on Windows ... Anyway, the fix is ready and I'll sbmit it today. Thanks again :-) |
It's not OS specific. As I said, |
Yes, I got it ... |
Fixed in release 1.0.11 |
Hi Herve, with this plugin installed the Magic Cursor is not working as it should do when clicking from a concept to white space.
See https://forum.archimatetool.com/index.php?topic=485.0
Windows/Mac/Linux.
The text was updated successfully, but these errors were encountered: