Community
Participate
Working Groups
Created attachment 233463 [details] A test plugin The attached plugin contributes a popup menu action which visibility depends on a property tester class that throws a NPE. Eclipse E4 (ContributionsAnalyzer.isVisible(MCoreExpression, ExpressionContext)) catches only CoreException which causes such a contribution to corrupt a context menu on Windows (on Linux, this menu isn't displayed at all). Since the isVisible method is often called, it is possible that there are some other issues that are difficult to detect/debug. Test case: - install the attached plugin - right-click some resource Attached is a patch.
Created attachment 233464 [details] A patch
Could you please use org.eclipse.core.runtime.SafeRunner to call out to the client code? In this case, the ref.evaluate(*). It would be helpful if you pushed your patch to Gerrit, with the new CLA rules. Also, could you please sign your CLA? PW
I have signed my CLA and will push the patch to Gerrit.
I have updated the patch and added it to Gerrit - https://git.eclipse.org/r/14762
Hi Snjezana, thanks for the plugin and Gerrit patch. I've added comments to the review. PW
I have updated the patch
(In reply to comment #2) > Could you please use org.eclipse.core.runtime.SafeRunner to call out to the > client code? In this case, the ref.evaluate(*). Hi Paul, using SafeRunner in this case is causing a *bunch* of CoreExceptions to be logged when using CDT. It is not clear to me if those exceptions should not be happening, or if silencing them was correct. Bug 414912 was written about this.
This was fixed in M1, http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=1d2a4872f5a6a01c41a655c5e041eb180ea22827 Looking at a new problem in Bug 414912 PW
Verified in I20140528-2000.