Eclipse file completion proposal plugin - set content type for java files



I'm writing an eclipse plugin that whenever you type a string like "/usr/share" and press ctrl+space it will open up the content assist and propose you to complete files for that folder (similar to other editors.)


In my plugin xml under plugin>....extension> I have



<contentType id="org.eclipse.core.runtime.xml"/>


If I understand correctly this means that the plugin will work on files with contentType of org.eclipse.core.runtime.xml - which means xml files. I want my proposals to appear on .java files, or better, on any type of files. How can I do that?


No comments:

Post a Comment