aspose file tools*
The moose likes GWT and the fly likes How to import sample GWT code into eclipse project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "How to import sample GWT code into eclipse project" Watch "How to import sample GWT code into eclipse project" New topic
Author

How to import sample GWT code into eclipse project

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
I download the sample code from
Using Servlet Sessions in GWT – Tutorial

but there is no .project file, I want to know how to import this source folder into eclipse and run it?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

As far as I know, there is no direct way of importing it. Have you got the GWT+Eclipse plugin installed? If yes, then you will have to copy paste the downloaded code and refactor it a bit.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Philip Thamaravelil
Ranch Hand

Joined: Feb 09, 2006
Posts: 99
Peter,
Why don't you just create your own .project file? Copy an existing one and substitute out your project-specific properties in notepad.

Good Luck!
Philip
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

Philip Thamaravelil wrote:Peter,
Why don't you just create your own .project file?

This might not work. The project structure of this download is different than the project structure of the latest GWT project
Philip Thamaravelil
Ranch Hand

Joined: Feb 09, 2006
Posts: 99
Maneesh Godbole wrote:
Philip Thamaravelil wrote:Peter,
Why don't you just create your own .project file?

This might not work. The project structure of this download is different than the project structure of the latest GWT project



Maneesh,
Thanks for your comment. This doesn't matter. Once the .project file is created and the project is imported into your eclipse workspace, you can update your resource paths accordingly.
I have personally done this with a GWT project in servlets and also with Liferay Portal portlets. The basic project file essentially contains a project name, and a few build parameters.

Cheers,
Philip
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to import sample GWT code into eclipse project