Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new projects are not detected as gwt projects. #113

Open
rdwallis opened this issue Mar 17, 2015 · 4 comments
Open

new projects are not detected as gwt projects. #113

rdwallis opened this issue Mar 17, 2015 · 4 comments

Comments

@rdwallis
Copy link
Contributor

And the google web toolkit properties window doesn't open either so it's not easy to fix this problem manually.

See discussion: https://groups.google.com/forum/#!topic/gwt-platform/5iE5B_RTCuQ

@branflake2267
Copy link
Contributor

I see this getting better in the future.

@rdwallis
Copy link
Contributor Author

@branflake2267 is this being fixed already in the gwt plugin?

I fixed a similar issue a few months ago by adding https://github.com/ArcBees/gwtp-eclipse-plugin/blob/master/gwtp.plugin.core/src/main/resources/templates/project/.settings/com.google.gwt.eclipse.core.prefs.template to the new project's settings directory.

Obviously a bit fragile which is probably why it's not working anymore. Do you know a better way to mark a project as a web toolkit project in eclipse?

@branflake2267
Copy link
Contributor

I was thinking about the GWT Nature, which may be different context. I've seen some configurations, the GPE m2e detector not turning on the GWT Nature. There is a workaround to a couple of these cases. Erase the the .settings directory and reimport the project. There are some npes that are getting thrown during the process and causing issues. But I can't be sure its this case yet.

@rdwallis
Copy link
Contributor Author

Yes I think it's the same issue.

The gwtp project creator is pretty stupid. It just creates a new project unzips the template project into the new projects folder and then enables maven nature:

https://github.com/ArcBees/gwtp-eclipse-plugin/blob/master/gwtp.plugin.core/src/main/java/com/arcbees/gwtp/plugin/core/project/CreateProjectWizard.java#L148

So probably I'll need to make the gwtp plugin use the gwt plugin as a dependency and then enable the GWT nature. Although I think if the m2e detector can be made a bit more reliable that'll solve the problem automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants