| Summary: | In the Problems view, the help icon should only show if help is really available | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Tim Neumann <tim.neumann> | ||||||||
| Component: | UI | Assignee: | Tim Neumann <tim.neumann> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | daniel_megert, karsten.thoms, loskutov, ma.becker | ||||||||
| Version: | 3.8.2 | ||||||||||
| Target Milestone: | 4.12 M1 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| See Also: |
https://git.eclipse.org/r/139209 https://bugs.eclipse.org/bugs/show_bug.cgi?id=122967 https://git.eclipse.org/r/139512 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7ec315532f01dc7fcbc1bb60b2ee29ce81abae72 |
||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Tim Neumann
New Gerrit change created: https://git.eclipse.org/r/139209 Please provide steps to reproduce this and validate your fix. Note: for the implementation we should take care of bug 122967 (RemoteContextProvider aka org.eclipse.help.internal.base.remote.RemoteHelp.isEnabled()) and also possible custom implementations of org.eclipse.help.AbstractContextProvider.getContext(String, String) which *may* block UI if called some thousands times on refreshing Problems view with a lot of problems with attached help context id's. This will block the UI in worst cases for indefinite time (assuming the remote connection is slow). Because the "most common" use case is local help, it makes sense to enable the proposed fix by default. To allow product owners with "specific" help disable this bugfix, I would propose a similar flag like in bug 122967 comment 12, to *disable* the new functionality in case it causes problems. The proposed flag to disable the bugfix would be: org.eclipse.ui.ide/helpContextAvailabilityCheck=false Note: this would mean also to set the new value to true in the org.eclipse.ui.internal.ide.IDEPreferenceInitializer. For normal setups, which only use ContextFileProvider, I did some tests with up to 100 000 Markers and never saw more than a 2% increase in the time to render the problem view. I tested with available context, without correct context in contexts.xml and without a fitting contexts.xml. (In reply to Dani Megert from comment #2) > Please provide steps to reproduce this and validate your fix. In any plugin add marker help via the org.eclipse.ui.ide.markerHelp extension point, but give it a helpContextId, which does not exist. Then start eclipse and view a marker, which fits the defined restrictions for the marker help. Without the proposed fix it will have a little question mark in the top right of the icon, but when pressing Shift-F1 on it no help opens. With the proposed fix, no question mark will be shown in the icon. (In reply to Tim Neumann from comment #5) > (In reply to Dani Megert from comment #2) > > Please provide steps to reproduce this and validate your fix. > > In any plugin add marker help via the org.eclipse.ui.ide.markerHelp > extension point, but give it a helpContextId, which does not exist. > Then start eclipse and view a marker, which fits the defined restrictions > for the marker help. Please attach an example project. This makes it easy to verify a fix. New Gerrit change created: https://git.eclipse.org/r/139512 (In reply to Dani Megert from comment #6) > Please attach an example project. This makes it easy to verify a fix. See https://git.eclipse.org/r/139512. Run it as Eclipse Application, bind the command "Create Example Markers" to any key and press that key. Before the changes of Bug 545615, all markers will have a small question mark, but only "Test 1" has help (Shift-F1). After the changes of Bug 545615, only "Test 1" will have a small question mark. Created attachment 278025 [details]
Screenshot Testproject
After importing the test project I could create "Test Markers". But unlike the problem report, I only recognize Info overlay icons on the warning markers "Test 1", while the other categories do not show the overlay. If I understand the report correct, this should be the desired state *after* the patch applied, but it is for me *without* applying the patch. What am I missing?
Forget about my last comment. Fetching the example pulled also the patch. So I can confirm the bug and that patch does fix it. Created attachment 278027 [details]
Example Project
Gerrit change https://git.eclipse.org/r/139209 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7ec315532f01dc7fcbc1bb60b2ee29ce81abae72 Thanks Tim. (In reply to Karsten Thoms from comment #11) > Created attachment 278027 [details] > Example Project How does one use this? Created attachment 283034 [details]
Example project
The previous example project did not work. In this example the errors are fixed and it should work as described above.
|