anjuta r3883 - in trunk: . plugins/project-wizard plugins/project-wizard/templates
- From: sgranjoux svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r3883 - in trunk: . plugins/project-wizard plugins/project-wizard/templates
- Date: Wed, 23 Apr 2008 21:42:46 +0100 (BST)
Author: sgranjoux
Date: Wed Apr 23 20:42:45 2008
New Revision: 3883
URL: http://svn.gnome.org/viewvc/anjuta?rev=3883&view=rev
Log:
* plugins/project-wizard/druid.c,
plugins/project-wizard/property.c,
plugins/project-wizard/property.h,
plugins/project-wizard/parser.c,
plugins/project-wizard/templates/mkfile.wiz,
plugins/project-wizard/templates/terminal.wiz,
plugins/project-wizard/templates/xlib-dock.wiz,
plugins/project-wizard/templates/wxwin.wiz,
plugins/project-wizard/templates/java.wiz,
plugins/project-wizard/templates/django.wiz,
plugins/project-wizard/templates/gnome.wiz,
plugins/project-wizard/templates/anjuta-plugin.wiz,
plugins/project-wizard/templates/gtkmm.wiz,
plugins/project-wizard/templates/python.wiz,
plugins/project-wizard/templates/cpp.wiz,
plugins/project-wizard/templates/sdl.wiz,
plugins/project-wizard/templates/gtk.wiz,
plugins/project-wizard/templates/minimal.wiz,
plugins/project-wizard/templates/xlib.wiz,
plugins/project-wizard/templates/gcj.wiz:
Add additional restriction on project name fix #529226
Modified:
trunk/ChangeLog
trunk/plugins/project-wizard/druid.c
trunk/plugins/project-wizard/parser.c
trunk/plugins/project-wizard/property.c
trunk/plugins/project-wizard/property.h
trunk/plugins/project-wizard/templates/anjuta-plugin.wiz
trunk/plugins/project-wizard/templates/cpp.wiz
trunk/plugins/project-wizard/templates/django.wiz
trunk/plugins/project-wizard/templates/gcj.wiz
trunk/plugins/project-wizard/templates/gnome.wiz
trunk/plugins/project-wizard/templates/gtk.wiz
trunk/plugins/project-wizard/templates/gtkmm.wiz
trunk/plugins/project-wizard/templates/java.wiz
trunk/plugins/project-wizard/templates/minimal.wiz
trunk/plugins/project-wizard/templates/mkfile.wiz
trunk/plugins/project-wizard/templates/python.wiz
trunk/plugins/project-wizard/templates/sdl.wiz
trunk/plugins/project-wizard/templates/terminal.wiz
trunk/plugins/project-wizard/templates/wxwin.wiz
trunk/plugins/project-wizard/templates/xlib-dock.wiz
trunk/plugins/project-wizard/templates/xlib.wiz
Modified: trunk/plugins/project-wizard/druid.c
==============================================================================
--- trunk/plugins/project-wizard/druid.c (original)
+++ trunk/plugins/project-wizard/druid.c Wed Apr 23 20:42:45 2008
@@ -483,6 +483,30 @@
}
}
+ /* Check restricted property */
+ if (modified && !npw_property_is_valid_restriction (property))
+ {
+ if (data->next == TRUE)
+ {
+ NPWPropertyRestriction restriction = npw_property_get_restriction (property);
+ /* First error message */
+ data->next = FALSE;
+
+ switch (restriction)
+ {
+ case NPW_FILENAME_RESTRICTION:
+ /* Show error message. */
+ anjuta_util_dialog_error (data->parent,
+ _("Field \"%s\" must start with a letter, a digit or an underscore and contains only letters, digits, underscore, minus and dot. Please fix it."),
+ _(npw_property_get_label (property)));
+ break;
+ default:
+ break;
+ }
+ }
+ npw_property_remove_value (property);
+ }
+
/* Check exist property */
if (modified && (npw_property_get_exist_option (property) == NPW_FALSE))
{
Modified: trunk/plugins/project-wizard/parser.c
==============================================================================
--- trunk/plugins/project-wizard/parser.c (original)
+++ trunk/plugins/project-wizard/parser.c Wed Apr 23 20:42:45 2008
@@ -66,6 +66,7 @@
NPW_VALUE_ATTRIBUTE,
NPW_SUMMARY_ATTRIBUTE,
NPW_TYPE_ATTRIBUTE,
+ NPW_RESTRICTION_ATTRIBUTE,
NPW_MANDATORY_ATTRIBUTE,
NPW_EXIST_ATTRIBUTE,
NPW_EDITABLE_ATTRIBUTE,
@@ -235,6 +236,10 @@
{
return NPW_TYPE_ATTRIBUTE;
}
+ else if (strcmp ("restriction", name) == 0)
+ {
+ return NPW_RESTRICTION_ATTRIBUTE;
+ }
else if (strcmp ("summary", name) == 0)
{
return NPW_SUMMARY_ATTRIBUTE;
@@ -729,6 +734,9 @@
case NPW_TYPE_ATTRIBUTE:
npw_property_set_string_type (this->property, *values);
break;
+ case NPW_RESTRICTION_ATTRIBUTE:
+ npw_property_set_string_restriction (this->property, *values);
+ break;
case NPW_NAME_ATTRIBUTE:
npw_property_set_name (this->property, *values);
break;
Modified: trunk/plugins/project-wizard/property.c
==============================================================================
--- trunk/plugins/project-wizard/property.c (original)
+++ trunk/plugins/project-wizard/property.c Wed Apr 23 20:42:45 2008
@@ -58,6 +58,7 @@
struct _NPWProperty {
NPWPropertyType type;
+ NPWPropertyType restriction;
NPWPropertyOptions options;
gchar* label;
gchar* description;
@@ -84,6 +85,10 @@
"icon"
};
+static const gchar* NPWPropertyRestrictionString[] = {
+ "filename"
+};
+
/* Property object
*---------------------------------------------------------------------------*/
@@ -103,18 +108,25 @@
return NPW_UNKNOWN_PROPERTY;
}
-#if 0
-static const gchar*
-npw_property_string_from_type (NPWPropertyType type)
+static NPWPropertyRestriction
+npw_property_restriction_from_string (const gchar* restriction)
{
- if ((type > 0) && (type < NPW_LAST_PROPERTY))
+
+ if (restriction != NULL)
{
- return NPWPropertyTypeString[type - 1];
- }
+ gint i;
+
+ for (i = 0; i < NPW_LAST_RESTRICTION; i++)
+ {
+ if (strcmp (NPWPropertyRestrictionString[i], restriction) == 0)
+ {
+ return (NPWPropertyRestriction)(i + 1);
+ }
+ }
+ }
- return NULL;
+ return NPW_NO_RESTRICTION;
}
-#endif
NPWProperty*
npw_property_new (NPWPage* owner)
@@ -126,6 +138,7 @@
this = g_chunk_new0(NPWProperty, owner->data_pool);
this->owner = owner;
this->type = NPW_UNKNOWN_PROPERTY;
+ this->restriction = NPW_NO_RESTRICTION;
this->item = NULL;
/* value is set to NULL */
g_node_append_data (owner->list, this);
@@ -170,6 +183,57 @@
}
void
+npw_property_set_restriction (NPWProperty* this, NPWPropertyRestriction restriction)
+{
+ this->restriction = restriction;
+}
+
+void
+npw_property_set_string_restriction (NPWProperty* this, const gchar* restriction)
+{
+ npw_property_set_restriction (this, npw_property_restriction_from_string (restriction));
+}
+
+NPWPropertyRestriction
+npw_property_get_restriction (const NPWProperty* this)
+{
+ return this->restriction;
+}
+
+gboolean
+npw_property_is_valid_restriction (const NPWProperty* this)
+{
+ const gchar *value;
+
+ switch (this->restriction)
+ {
+ case NPW_FILENAME_RESTRICTION:
+ value = npw_property_get_value (this);
+
+ /* First character should be letters, digit or '_' */
+ if (value == NULL) return TRUE;
+ if (!isalnum (*value) && (*value != '_'))
+ return FALSE;
+
+ /* Following characters should be letters, digit or '_'
+ * or '-' or '.' */
+ for (value++; *value != '\0'; value++)
+ {
+ if (!isalnum (*value)
+ && (*value != '_')
+ && (*value != '-')
+ && (*value != '.'))
+ return FALSE;
+ }
+ break;
+ default:
+ break;
+ }
+
+ return TRUE;
+}
+
+void
npw_property_set_name (NPWProperty* this, const gchar* name)
{
this->value = npw_value_heap_find_value (this->owner->value, name);
Modified: trunk/plugins/project-wizard/property.h
==============================================================================
--- trunk/plugins/project-wizard/property.h (original)
+++ trunk/plugins/project-wizard/property.h Wed Apr 23 20:42:45 2008
@@ -48,6 +48,14 @@
NPW_LAST_PROPERTY
} NPWPropertyType;
+/* You should update the NPWPropertyRestrictionString array in the .c file,
+ * after changing the NPWPropertyRestriction enum */
+typedef enum {
+ NPW_NO_RESTRICTION = 0,
+ NPW_FILENAME_RESTRICTION,
+ NPW_LAST_RESTRICTION
+} NPWPropertyRestriction;
+
typedef enum {
NPW_MANDATORY_OPTION = 1 << 0,
NPW_SUMMARY_OPTION = 1 << 1,
@@ -69,6 +77,11 @@
void npw_property_set_string_type (NPWProperty* this, const gchar* type);
NPWPropertyType npw_property_get_type (const NPWProperty* this);
+void npw_property_set_restriction (NPWProperty* this, NPWPropertyRestriction restriction);
+void npw_property_set_string_restriction (NPWProperty* this, const gchar* restriction);
+NPWPropertyRestriction npw_property_get_restriction (const NPWProperty* this);
+gboolean npw_property_is_valid_restriction (const NPWProperty* this);
+
void npw_property_set_name (NPWProperty* this, const gchar* name);
const gchar* npw_property_get_name (const NPWProperty* this);
Modified: trunk/plugins/project-wizard/templates/anjuta-plugin.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/anjuta-plugin.wiz (original)
+++ trunk/plugins/project-wizard/templates/anjuta-plugin.wiz Wed Apr 23 20:42:45 2008
@@ -10,7 +10,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="Project name must not contain spaces, because it will be the name of the project build target (executable, library etc.)" default="anjuta-plugin-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="Project name must not contain spaces, because it will be the name of the project build target (executable, library etc.)" default="anjuta-plugin-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/cpp.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/cpp.wiz (original)
+++ trunk/plugins/project-wizard/templates/cpp.wiz Wed Apr 23 20:42:45 2008
@@ -9,7 +9,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="foobar-cpp" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="foobar-cpp" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/django.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/django.wiz (original)
+++ trunk/plugins/project-wizard/templates/django.wiz Wed Apr 23 20:42:45 2008
@@ -7,7 +7,7 @@
</project-wizard>
<page name="basic" _label="Django Project information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="myweb" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="myweb" summary="yes" restriction="filename" mandatory="yes"/>
<property type="directory" name="Destination" _label="Destination:" _description="" default="[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]" mandatory="yes" exist="no" summary="yes"/>
<property type="hidden" name="NameLower" default="[+(string-downcase (get "Name"))+]"/>
<property type="hidden" name="NameCLower" default="[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]"/>
Modified: trunk/plugins/project-wizard/templates/gcj.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/gcj.wiz (original)
+++ trunk/plugins/project-wizard/templates/gcj.wiz Wed Apr 23 20:42:45 2008
@@ -10,7 +10,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="gcj-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="gcj-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="MainClass" _label="Main Class:" _description="GCJ needs to know which class contains the main() function" default="MainApp" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
Modified: trunk/plugins/project-wizard/templates/gnome.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/gnome.wiz (original)
+++ trunk/plugins/project-wizard/templates/gnome.wiz Wed Apr 23 20:42:45 2008
@@ -12,7 +12,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="gnome-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="gnome-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/gtk.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/gtk.wiz (original)
+++ trunk/plugins/project-wizard/templates/gtk.wiz Wed Apr 23 20:42:45 2008
@@ -11,7 +11,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="gtk-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="gtk-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/gtkmm.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/gtkmm.wiz (original)
+++ trunk/plugins/project-wizard/templates/gtkmm.wiz Wed Apr 23 20:42:45 2008
@@ -11,7 +11,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="gtk-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="gtk-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/java.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/java.wiz (original)
+++ trunk/plugins/project-wizard/templates/java.wiz Wed Apr 23 20:42:45 2008
@@ -10,7 +10,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="java-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="java-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="MainClass" _label="Main Class:" _description="Main class" default="MainApp" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
Modified: trunk/plugins/project-wizard/templates/minimal.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/minimal.wiz (original)
+++ trunk/plugins/project-wizard/templates/minimal.wiz Wed Apr 23 20:42:45 2008
@@ -9,7 +9,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="foobar-sample" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="foobar-sample" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/mkfile.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/mkfile.wiz (original)
+++ trunk/plugins/project-wizard/templates/mkfile.wiz Wed Apr 23 20:42:45 2008
@@ -7,7 +7,7 @@
</project-wizard>
<page name="options" _label="Project options" _description="Project directory, output file etc.">
- <property type="string" name="Name" _label="Project name:" _description="" default="foobar" mandatory="yes" summary="yes"/>
+ <property type="string" name="Name" _label="Project name:" _description="" default="foobar" mandatory="yes" restriction="filename" summary="yes"/>
<property type="directory" name="Destination" _label="Project directory:" _description="" default="[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]" mandatory="yes" exist="no" summary="yes"/>
</page>
Modified: trunk/plugins/project-wizard/templates/python.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/python.wiz (original)
+++ trunk/plugins/project-wizard/templates/python.wiz Wed Apr 23 20:42:45 2008
@@ -10,7 +10,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="python-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="python-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/sdl.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/sdl.wiz (original)
+++ trunk/plugins/project-wizard/templates/sdl.wiz Wed Apr 23 20:42:45 2008
@@ -9,7 +9,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="sdl-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="sdl-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/terminal.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/terminal.wiz (original)
+++ trunk/plugins/project-wizard/templates/terminal.wiz Wed Apr 23 20:42:45 2008
@@ -9,7 +9,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="foobar-sample" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="foobar-sample" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/wxwin.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/wxwin.wiz (original)
+++ trunk/plugins/project-wizard/templates/wxwin.wiz Wed Apr 23 20:42:45 2008
@@ -9,7 +9,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="wxwin-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="wxwin-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/xlib-dock.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/xlib-dock.wiz (original)
+++ trunk/plugins/project-wizard/templates/xlib-dock.wiz Wed Apr 23 20:42:45 2008
@@ -9,7 +9,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="xlib-dock-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="xlib-dock-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
Modified: trunk/plugins/project-wizard/templates/xlib.wiz
==============================================================================
--- trunk/plugins/project-wizard/templates/xlib.wiz (original)
+++ trunk/plugins/project-wizard/templates/xlib.wiz Wed Apr 23 20:42:45 2008
@@ -9,7 +9,7 @@
</project-wizard>
<page name="basic" _label="Basic information" _description="General Project Information">
- <property type="string" name="Name" _label="Project Name:" _description="project name" default="xlib-foobar" summary="yes" mandatory="yes"/>
+ <property type="string" name="Name" _label="Project Name:" _description="project name" default="xlib-foobar" summary="yes" restriction="filename" mandatory="yes"/>
<property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
<property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
<property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]