How to apply xText (grammar) file to the file loading in Eclipse RCP product - eclipse-rcp

I am new to xText framework and want to apply the .xText(grammar) file to ie. .myJava file. Assuming that .myJava is the DSL extension and I am loading this file in Eclipse RCP product.
I couldn't find any clue how to integrate xText to RCP product.
Help with some examples is appreciated.

Related

Eclipse DSL code assist is not working after generating

I am using Eclipse for DSL development but I have a problem with it. I am using Xtext and Xtend to develop my DSL. But everytime I generate the Xtext artifacts from my xtext file, code assist stops working for all xtend files.
So far I tried to change my Code Assist Java editor settings due to some google search.
A workaround is to delete the .settings folder for the project and import the whole project again. But In my opinion this is not an acceptable workaround.
Thanks for your help!
This are my current settings
You have to add your customized scopeproviders/ proposalproviders to have custom content assist in your dsl.
Xtext 2.9 scope provider

eclipse add own Project Configuration UI Elements

Hy i wrote a eclipse plugin that generates some stuff for cdt using xtext.
Now i would like to add a Configuration UI to the Projects.
Can some one tellme where i find a example of how to extend the Project Property Window?

Eclipse plugin doesnot run multiple times in the new workspace

We have developed eclipse plugin which will convert the jsp to wicket framework.
Our tool will parse the jsp files and convert them to wicket using antlr.
-
we will run our plugin project using eclipse application.
A new runtime eclipse application will open with the plugin symbol in the tool bar.
For the first time when we click on the plugin symbol, the wizard pages are getting opened and the tool is parsing the jsp files and convert them to wicket using antlr.
After parsing the jsp files our tool generates some validator classes using velocity templates, and generates some other classes using templates that are necessary for the generated wicket project to run on the server.
Next time in the same runtime apllication if we click on the plugin symbol the wizard pages are getting opened but the parsing of jsp files is not performed.
what might be the issue? please help us.
Sorry we couldnot provide the code.

Checkstyle: Custom Rules - Eclipse Plugin

I have written few custom checkstyle rules using checkstyle API. They run fine using Maven (after I add the new project as a dependency to the checkstyle plugin).
Now I want these rules to be used by the Eclipse Checkstyle plugin. And this is where I am stuggling.
I've downloaded the sample plugin project (as suggested here and here).
I do not understand what to do next after reading these links.
Do I need to export my project as a JAR?
How do I plug it into my existing Checkstyle plugin?
Thanks
You can do it like following :
Create plugin project and add your custom checks there.
Make appropriate changes to plugin.xml, checkstyle_packages.xml.
Export the project as Deployable Plug-ins and fragments (Export > Plug-in Developement)
Copy the jar file to Eclipse Plugin folde, so no need to install your custom check .
You can refer this tutorial
You already have the correct links that will eventually get you there. As for your questions:
All your custom checks can go into one JAR file. That JAR file must be an Eclipse plugin JAR. I simply install it by copying it to the Eclipse dropins folder, but there may be more elegant ways to do that.
So you end up with two plugins: The original, unmodified Eclipse-CS, and your own plugin which contains the custom checks. When both are independently installed in Eclipse, the Eclipse-CS configuration dialog will offer your custom checks for use in Checkstyle configurations.

STS: Different "view" of Packages in Spring MVC vs Spring Roo - Project

I'm just starting with having fun with Spring Roo...
Everything is nice so far. But eclipse (STS) sometimes behaves strage.
If i generate a new Spring MVC-Project, the containing Packages are shown as I'm familiar with, in eclipse.
If i generate a Roo-Project, Eclipse just shows the Package-Folders.
How can i fix this?
You can fix this by configuring your Eclipse project to contain Roo generated folder src as an Eclipse Source Folder.
For more information and how to, please see the following article.
http://www.informit.com/articles/article.aspx?p=367962
Figure 6-1 is the dialog where you should add your Source folder.
Cheers!