Index: arch.xml
===================================================================
RCS file: /cvs/ant/project/arch.xml,v
retrieving revision 1.7
diff -u -r1.7 arch.xml
--- arch.xml 22 Sep 2004 05:54:20 -0000 1.7
+++ arch.xml 13 Dec 2004 15:51:15 -0000
@@ -94,9 +94,42 @@
are necessary to create a certain build product, for use in inter-project
dependencies.
+
+ Ant project support faq:
+
+
+
+ Q:
+ I'm creating a customizer (properties dialog) for my project type. I wan't to use the support
+ for simple data types. What do I need to do?
+
+ You basicaly need to do two things. First create the representation of the project properties which
+ can be used in the GUI. Second at some time convert the objects back to the ANT properties form and
+ store them into the project.
+
+ - Creating the object representation.
+
+ - Create new instance of StoreGroup for each group of properties you want to store later
+ e.g. project and prvate. Sometimes it might be useful to create temporary source group
+ which will only be used for creating the models without being used for storing. E.g.
+ for properties which need special handling.
+ - Call the factory methods e.g. createBooleanButtonModel, createStringDocument, etc. which
+ will create the swing models for you.
+ - Use the models in your Swing controls by calling setModel() or setDocument()
+
+
+ - Storing the models back to the proprties of project.
+
+ - Get the EditableProperties you want to store the model in e.g. private or project
+ properties
+ - Call the store method on given SourceGroup with the EditableProperties as parameter
+ - Manually store models which need some special handling.
+
+
+
+
+
-
-