How to make my spray project into a standalone eclipse rcp application? - eclipse

I created an emf model and also a spray project. I am able to start the spray project over "Run as.." as an eclipse application and i will get an editor that depends on my emf model.
Now i would like to integrate this editor into a part of an eclipse rcp application. How can i achieve that? I tried adding the spray and emf project to my feature project as a plug in but i do not know which class the part should refer to. Is this even the right way?
How can i make my spray editor be a part of my rcp application?

Related

Live debugging a Spring boot project in eclipse

I am trying to create a Spring boot based MVC application using eclipse.
I created a starter template from spring's starter website and i have imported the maven package into eclipse.
I created a controller and a view and I am able to run the application by going to "debug as" or "run as" and selecting Java Application and then selecting the spring boot application main method from the list.
However with this approach, Eclipse does not seem to auto build my changes in my java classes nor the changes in my template views. (I use Thymeleaf btw) on the fly even though "auto build" is switched on in eclipse.
This forces me to stop the application in eclipse and re run the application for every small change i make and its very difficult.
Is this the only way on eclipse or is there a better way for eclipse would auto build the java and template files on the way so that I can code and debug simultaneously.
Eclipse is most likely compiling because that's what Eclipse does, but maybe you need to install the dev tools so that you get live reloading enabled.

How to start a spring-mvc application with gradle on netbeans

Hi i am trying to find out how to initialize a spring mvc application on netebans.
When you create a new gradle project on netbeans is a java project, but how can i configure it to make it a spring mvc project.
Is there any tutorial out there?
Thanks!
You are pretty much on your own. You will need to configure Gradle to build your application. I assume it means using 'war' plugin and adding various Spring MVC dependencies. NetBeans with https://github.com/kelemen/netbeans-gradle-project plugin will then be able to understand Java related part.
There is a work in progress to add support for web application development to this plugin but nothing publicly available as far as I know.

what's the difference between "dynamic web project" with JSF facet and "JSF project"?

When I install "web tools platform" plugins in Eclipse I have a new type of project I can create, called "dynamic web project". In such project I can add JSF facet and then use it to make JSF application.
But when I install "jboss tools" plugins I have a project type called just "JSF project".
What's the difference between both types of projects? Why have jboss tools people created their own type of JSF project?
Eclipse plugins are created to achieve some commonly used/desired configurations at much ease. As you said, you can create a Dynamic Web Prject and then perform couple of steps to convert/support JSF. JSF project is created with those required configuration already done for you.
Same example you can apply even between, a simple project(created though New -> General->Project option) and Dynamic Web Project i.e. you may create a simple project, create files/folders, update the class path etc manually and achieve the same which is directly available through Dynamic Web Project option. These plug-ins/options help you avoid several manual steps to reach a commonly desired functionality. JSF project is no exception.

Type of Eclipse project for sample Spring project

In a tutorial at http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html Spring guys didn't say which Eclipse project they choose to create this sample application. Project icon has S symbol over it, so this isn't a Java project (marked with J symbol).
However, it doesn't look like a Dynamic Web project either.
Could you please explain that S symbol and say which project type is it?
They are using the Spring Eclipse plugin (either that, or they are using the Springsource Tool Suite IDE, based on Eclipse)
With this plugin, a dynamic web project should get you the 'S' you are looking for.
The S just means that the Spring nature is active (and it's either Spring IDE or SpringSource Tool Suite). In Eclipse-speak, I guess you should generate a dynamic web project, but it would be better to generate a Maven Project and import that into Eclipse (then Eclipse will automatically set the correct project type).

GWT integration in existing Java EE application

I am new to GWT. I have developed a GWT application in version-1.6.4 and it is working fine. Now I want to integrate with that project in existing Java EE application. I don't know how to go ahead.
Where to copy the GWT source code in this existing Java EE application? I am also using RPC in GWT.
Can anyone provide help on this?
GWT is just a set of javascript and HTML files, so the most basic form of integration is just to put them in a folder in the same place your as your web pages go.
One step up from there would be to integrate the gwt Compiler in with your build process. If you use Netbeans there is a good plugin called GWT4NB that will handle all of this process for you, so that when you build the WAR of your project it will build the GWT portions of it as well. There would probably be something similar for Eclipse. You could also do all this by hand using maven or ant.
You would tell the compiler where you want it to put the generated files, which again, would be in the same location you put your web pages for your WAR project. The RPC side of it will still work just fine no matter where you put the files.