|Re: Xtext Intellij Quick FIx [message #1733658 is a reply to message #1733654]
||Mon, 30 May 2016 18:28
| Anton Kosyakov
Registered: March 2016
No, you cannot use ISemanticModification for IntelliJ, since it is Eclipse specific API.
Please have a look at MyDslIntentionsProvider in the attached example. It registers an instance of CapitalizeNameIntentionAction intention for the invalid name issue. An intention in Intellij is an action that is used to fix a particular problem, similar to quick fixes in Eclipse. This intention uses document API to change the content. As an alternative you can change the psi model which will be synchronized with the document later. MyDslIntentionsProvider is bound in MyDslIdeaModule as an implementation of IdeaIntentionsProvider interface.
1. get source code of Intellij CE and use Intellij to navigate whenever you have a question regarding usage of some Intellij API;
2. get familiar with basics of Intellij: http://www.jetbrains.org/intellij/sdk/docs/basics.html.
Get professional support from the Xtext committers at www.typefox.io.
[Updated on: Mon, 30 May 2016 18:29]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02024 seconds