How do you guys obtain a reference to the current TaskFrame in your code? I end up iterating through all of the JInternalFrame objects that are children of the workbench. If the object is a TaskFrame I see if its title matches the title of the Task object I can obtain from the PlugInContext.
There has to be a better way! I was thinking about adding a reference to the "active" TaskFrame in the Workbench that would be available trough the WorkbenchContext. We could set and reset this reference using the "internal frame activated" listener in the TaskFrame class. Are there any thoughts or comments on this? The Sunburned Surveyor ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel