Code Mining with Embedded Editor [message #1807485] |
Thu, 30 May 2019 21:04  |
Eclipse User |
|
|
|
Hi. I am trying to introduce some data into my code mining via a variable in my custom XtextDocument in a dialog. I am using an embedded editor for my language in the dialog. My problem is that code mining is not working in the dialog. I assume it is not enabled for my embedded editor.
Any ideas how I can do this? thanks, John
Here is my code mining extension:
<!-- code mining -->
<extension point="org.eclipse.ui.workbench.texteditor.codeMiningProviders">
<codeMiningProvider
class="com.bsb.xtext.idl.ui.IdlExecutableExtensionFactory:org.eclipse.jface.text.codemining.ICodeMiningProvider"
id="com.bsb.xtext.idl.Idl.CodeMiningProvider"
label="Idl Codemining">
<enabledWhen>
<with variable="editorInput">
<adapt type="org.eclipse.core.resources.IFile">
<test
property="org.eclipse.core.resources.contentTypeId"
value="com.bsb.xtext.idl.Idl.contenttype">
</test>
</adapt>
</with>
</enabledWhen>
</codeMiningProvider>
</extension>
<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type
base-type="org.eclipse.core.runtime.text"
file-extensions="idl"
id="com.bsb.xtext.idl.Idl.contenttype"
name="Idl File"
priority="normal">
</content-type>
</extension>
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03209 seconds