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

Add sanity check for main class in the new project wizard #42

Open
BlueRiverInteractive opened this issue Mar 9, 2015 · 2 comments
Open

Comments

@BlueRiverInteractive
Copy link
Contributor

Only valid Java package/class names should be allowed. If illegal characters are entered the wizard should disable the next and finish buttons and display an error message.

Something like this should disable the buttons:
illegal main class

@badlogic
Copy link
Contributor

badlogic commented Mar 9, 2015

If we add an error label, we could probably also just add an explicit
package name text field.
On Mar 9, 2015 6:05 PM, "BlueRiverInteractive" notifications@github.com
wrote:

Only valid Java package/class names should be allowed. If illegal
characters are added, the wizard should disable the next and finish buttons
and display an error message.

Something like this should disable the buttons:
[image: illegal main class]
https://camo.githubusercontent.com/98a474403f040b447d18fa06d365fb8ef588b6f9/687474703a2f2f692e696d6775722e636f6d2f63706a773244772e706e67


Reply to this email directly or view it on GitHub
#42.

@BlueRiverInteractive
Copy link
Contributor Author

Yes, a package name text field would be good. If it's empty it will try to get the package from the main class. If both main class and package name have a package, the longest common string will be used as the package.

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