eclipse-xtext / eclipse-xtext/xtext
No Codemining in Embedded Editor
Open
Nobody has claimed this yet.
enhancement
help_wanted
new_feature
- Dominant language
- Java
- Stars
- 831
- Forks
- 330
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 12
Description
We currently dont support codemining in embedded editor
https://www.eclipse.org/forums/index.php/t/1099143/
workaround: configure sourceviewer manually
@Inject
EmbeddedEditorFactory embeddedEditorFactory;
@Inject
ICodeMiningProvider cmp;
....
IEditedResourceProvider resourceProvider = new MyDslEditedResourceProvider();
EmbeddedEditor handle = embeddedEditorFactory.newEditor(resourceProvider).withParent(
parent);
EmbeddedEditorModelAccess partialEditor = handle.createPartialEditor("","Hello A!\nHello b!","", false);
XtextSourceViewer viewer = handle.getViewer();
viewer.setCodeMiningProviders(new ICodeMiningProvider[] {
cmp
});
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with EmbeddedEditorFactory, EmbeddedEditor, and XtextSourceViewer, using the supplied manual SourceViewer configuration as the behavioral reference. Trace how the embedded editor creates its viewer and determine where ICodeMiningProvider support should be exposed. Done means codemining works in the embedded editor without manually configuring the viewer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100