Good Code Practice - Why does eClipse force us to use "only lower-case letters, numbers and !" for Token name?

StackOverflow https://stackoverflow.com/questions/23078540

  •  03-07-2023
  •  | 
  •  

Question

Ok, I am using GWTP on eclipse. When creating a Presenter using eclipse & when I enter a token name say "!manageOrder" then eclipse show an error that "Token name must contain only lower-case letters, numbers and !". See the following picture. enter image description here

However, in the NameTokens class, there is a line:

public static final String manageorder = "!mnageorder";

We can change to lowercase or upper the system is still ok.

So why does eClipse force us to use "only lower-case letters, numbers and !" for Token name?

if i use "!manageOrder" then it must easier for customer to figure out the what the page is right?

Was it helpful?

Solution

I believe this is just best practice being enforced by the version of the GWTP plugin you are using. It looks like you are using the old version of the plugin (for before GWTP 1.0)...

The new plugin allows capitals in the names:

enter image description here

Anyhow I would say use capitals if you want to, as long as it works.

More importantly, get using the current versions of GWTP and the associated plugin: https://github.com/ArcBees/gwtp-eclipse-plugin

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top