Community
Participate
Working Groups
Currently, Mylyn requires that an AbstractUserInteractionMonitor have a WorkbenchPart to pass to the super method for an id. Currently, if there is no workbench part (i.e. dialog boxes are being monitored), the code in AbstractUserInteractionMonitor must be copied so that it can pass an id, or the developer must "fake" a WorkbenchPart for proper monitoring. Since AbstractUserInteractionMonitor doesn't use the WorkbenchPart for anything other than the WorkbenchSite's id, it would be nice to have a convenience method that would take a String id for these other cases so that this code can be re-used and not copied.
Created attachment 110953 [details] patch Attached is a patch that creates 3 new methods (handle*) that take a String id instead of a workbench part. To ensure that this code is re-usable, I have made the existing methods call these ones instead. This means that there is only 1 place to maintain the code. Since this is an API change, I understand that this patch cannot be applied until 3.1.
Created attachment 110954 [details] mylyn/context/zip
Shawn: Bug me again on this bug if I don`t get to this in a week or two after the Mylyn 3.0.2 release (Septembe 17th).
Patch applied. Thanks Shawn!