Bug 510400 - Make Quickfix working in a headless environment
Summary: Make Quickfix working in a headless environment
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-12 20:23 EST by Olivier Thomann CLA
Modified: 2022-05-25 11:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2017-01-12 20:23:08 EST
In order to be able to get the quickfixes working in the java lsp server (jdt-ls project), we would need to make quickfixes working in a headless environment.

From Markus:

There are quite a few dependencies on UI types. Many of them boil down to the SWT Image class and to JFace StyledString, but the problem is that classes like ChangeCorrectionProposal and ICompletionProposal are API (the latter even in an upstream bundle). More complications are Quick Fixes and Quick Assists that open a dialog (e.g. refactorings) or that interact with the environment (e.g. open another editor and make changes there).
Comment 1 Gorkem Ercan CLA 2017-01-12 22:23:06 EST
I think the interesting functionality is at the org.eclipse.jdt.internal.ui.text.correction package as *SubProcessors classes. As far as I can see those do not have UI functionality directly but the proposals that they produce that are subclasses of org.eclipse.jdt.ui.text.java.correction.CUCorrectionProposal have UI functionality. One idea that comes to my mind is to refactor the non UI functions from SubProcessor classes and use them from core. WDYT?
Comment 2 Eclipse Genie CLA 2020-06-03 17:24:30 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Eclipse Genie CLA 2022-05-25 11:30:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.