| [news.eclipse.platform.swt] Re: SWTException discussion |
|
Jan, I don't really understand this problem of not having access to your map. If you know the ID of the bundle for a class you can use Platform.getBundle(<bundle-ID>).loadClass(<className>). But it seems to me if you have code that's doing something, that code would live in your plugin and would not need to use reflection to find a class in your plugin. Jan wrote: Hello, I wanted to use AspectJ in a way that I remember all instances of Control subclass and also a place where it was created. Write this information into the Map, and ask for Throwable containing that contains information about the source code location which caused isDisposed() and so on. BUT THE PROBLEM IS CLASSPATH, from GUI thread I don't have an access to my map from UI thread context, but I can only access Control subclass there but nothing more. :( It's due to the PLUG-IN system dependencies and classpath visibility. :( It's a problem for debugging such kind of things. I would need to change some implementation of bundle loading system (Equinox) or to have only 1 classloaded for all plugins. Do you know any trick for solving it? I also have similar problems with detection of causes of No MORE HANDLES ERROR. Thanks, Jan "Ed Merks" <merks@xxxxxxxxxx> wrote in message news:fvpqt1$hd$2@xxxxxxxxxxxxxxxxx... |