OSDN Git Service

Disallow Java keywords in resource names
authorTor Norbye <tnorbye@google.com>
Mon, 10 Jan 2011 19:49:21 +0000 (11:49 -0800)
committerTor Norbye <tnorbye@google.com>
Mon, 10 Jan 2011 19:49:21 +0000 (11:49 -0800)
commita911ae4a6c832e9be4bb9843e313239e46406e9c
tree3daf07f4b6f80a3b94ab143197c61850dccaae20
parentd0f343650fa348ee41e451d48050f76f43dffc3d
Disallow Java keywords in resource names

If you create a resource file that is a Java keyword, Bad Stuff
happens - it doesn't even make it into the R file.

This modifiers the resource name validator (used among other places in
the New XML File wizard) to disallow these names along with a suitable
error message.

Change-Id: Ic807bb9194d316f227bf3435509632374113563d
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/ResourceNameValidator.java