Community
Participate
Working Groups
1) Import org.eclipse.ui.genericeditor 2) Go to preference option - Plug-in Development -> Compiler -> Usage - > Usage of non-externalized strings 3) Set the above option to "Error". 4) In the problem views, there are 2 new errors. 5) Right click any one of them and select quick fix Expected : "Configure problem severity" should be seen as the last option. Current Result : Alphabetical sort happens and hence "Configure problem severity" is the 1st option. There must be a way to provide relevance to the marker in platform.ide so that QuickFixPage.java can use it during sort.
New Gerrit change created: https://git.eclipse.org/r/97654
Since this is an API addition, I have increased the minor version of this plugin.
Dani, can you look at https://git.eclipse.org/r/#/c/97654/6 The problem in quickfix page needs relevance to sort. I have added an interface IMarkerRelevance which has a single method which gives relevance. The default implementation is that it returns 0. The quickfix page will sort the resolutions that has relevance such that the greater the relevance, the higher up that resolution is on the list. Putting this method in IMarkerResolution or IMarkerResolution2 ( even with default implementation ) would have meant a breaking change ( and hence major version change). Another option is creating IMarkerResolution3 but I think abstracting out the relevance gives greater flexibility to the clients.
(In reply to Vikas Chandra from comment #3) > Dani, can you look at https://git.eclipse.org/r/#/c/97654/6 > > The problem in quickfix page needs relevance to sort. I have added an > interface IMarkerRelevance which has a single method which gives relevance. > The default implementation is that it returns 0. The quickfix page will sort > the resolutions that has relevance such that the greater the relevance, the > higher up that resolution is on the list. Putting this method in > IMarkerResolution or IMarkerResolution2 ( even with default implementation ) > would have meant a breaking change ( and hence major version change). > Another option is creating IMarkerResolution3 but I think abstracting out > the relevance gives greater flexibility to the clients. The marker resolution needs the relevance and not the marker. Please fix the Gerrit change accordingly. Also, the Javadoc should be clearer, see e.g. IJavaCompletionProposal.getRelevance().
Gerrit change https://git.eclipse.org/r/97654 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=99333cfc78ee9c06f5e6e5120476515cd634661f
New Gerrit change created: https://git.eclipse.org/r/102512
Verified on photon Version: Photon (4.8) Build id: I20170802-2000 by code inspection and also that the 2 clients ( pde and jdt ui) are able to use it successfully. See bugs in "Blocks" list for details.
Gerrit change https://git.eclipse.org/r/102512 was merged to [R4_7_maintenance]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=54dd3a3b4fa95fb557598f284a1c838c39089f40
Added API problem filters with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d286037ae156af46d8b8c1a38c6170d39397203c