|
|
|
|
@ -55,19 +55,21 @@ namespace CodonCreation
@@ -55,19 +55,21 @@ namespace CodonCreation
|
|
|
|
|
// BuildItem:
|
|
|
|
|
// This method actually builds an object which is used by the add-in
|
|
|
|
|
//
|
|
|
|
|
// The BuildItem gets following arguments :
|
|
|
|
|
// a caller object : this is the object which creates the item
|
|
|
|
|
// a codon : the codon read from the .addin file, the doozer
|
|
|
|
|
// The BuildItem gets a BuildItemArgs with the following properties :
|
|
|
|
|
// Addin : the addin containing the codon
|
|
|
|
|
// Caller : this is the object which creates the item
|
|
|
|
|
// Codon : the codon read from the .addin file, the doozer
|
|
|
|
|
// uses the information in the codon to build
|
|
|
|
|
// a custom codon object.
|
|
|
|
|
// A arraylist with the subitems : if this codon has subitems in it's path here are the
|
|
|
|
|
// Conditions : the conditions applied to this item
|
|
|
|
|
// SubitemNode : if this codon has subitems in it's path here are the
|
|
|
|
|
// build items stored for these the codon may use these
|
|
|
|
|
// or not, if not they get lost, if any were there.
|
|
|
|
|
// 'Normal' codons don't need them (then the tree-path is a list)
|
|
|
|
|
// But for example menuitems use them.
|
|
|
|
|
public object BuildItem(object caller, Codon codon, ArrayList subItems) |
|
|
|
|
public object BuildItem(BuildItemArgs args) |
|
|
|
|
{ |
|
|
|
|
return new TestCodon(codon.Properties["text"]); |
|
|
|
|
return new TestCodon(args.Codon.Properties["text"]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|