public NodeGeneratorConfig <TNode> FilenameConfigAsEditor(Func <TNode, string> selector)
        {
            Filename = new ConfigProperty <TNode, string>(
                (node) => Path.Combine("Editor", selector(node)));

            return(this);
        }
 public NodeGeneratorConfig <TNode> NamespacesConfig(ConfigProperty <TNode, IEnumerable <string> > namespaces)
 {
     Namespaces = namespaces;
     return(this);
 }
 public NodeGeneratorConfig <TNode> BaseTypeConfig(Func <TNode, CodeTypeReference> selector)
 {
     BaseType = new ConfigProperty <TNode, CodeTypeReference>(selector);
     return(this);
 }
 public NodeGeneratorConfig <TNode> BaseTypeConfig(CodeTypeReference literal)
 {
     BaseType = new ConfigProperty <TNode, CodeTypeReference>(literal);
     return(this);
 }
Beispiel #5
0
 public NodeInputConfig NameConfig(string literal)
 {
     Name = new ConfigProperty <IDiagramNodeItem, string>(literal);
     return(this);
 }
 public NodeGeneratorConfig <TNode> DeclarationConfig(CodeTypeDeclaration literal)
 {
     Declaration = new ConfigProperty <TNode, CodeTypeDeclaration>(literal);
     return(this);
 }
 public NodeGeneratorConfig <TNode> NamespacesConfig(Func <TNode, IEnumerable <string> > selector)
 {
     Namespaces = new ConfigProperty <TNode, IEnumerable <string> >(selector);
     return(this);
 }
 public NodeGeneratorConfig <TNode> ClassNameConfig(Func <TNode, string> selector)
 {
     ClassName = new ConfigProperty <TNode, string>(selector);
     return(this);
 }
 public NodeGeneratorConfig <TNode> DesignerFilenameConfigAsEditor(Func <TNode, string> selector)
 {
     DesignerFilename = new ConfigProperty <TNode, string>(node => Path.Combine(Path.Combine("_DesignerFiles", "Editor"), selector(node)));
     return(this);
 }
Beispiel #10
0
 public NodeGeneratorConfig <TNode> DesignerFilenameConfig(string literal)
 {
     DesignerFilename = new ConfigProperty <TNode, string>(Path.Combine("_DesignerFiles", literal));
     return(this);
 }
Beispiel #11
0
 public NodeGeneratorConfig <TNode> DesignerFilenameConfig(ConfigProperty <TNode, string> designerFilename)
 {
     DesignerFilename = designerFilename;
     return(this);
 }
Beispiel #12
0
 public NodeConfig<TNode> ColorConfig(Func<TNode, NodeColor> selector)
 {
     NodeColor = new ConfigProperty<TNode, NodeColor>(selector);
     return this;
 }
Beispiel #13
0
 public NodeConfig<TNode> ColorConfig(NodeColor literal)
 {
     NodeColor = new ConfigProperty<TNode, NodeColor>(literal);
     return this;
 }
Beispiel #14
0
 public NodeConfig<TNode> ColorConfig(ConfigProperty<TNode, NodeColor> color)
 {
     NodeColor = color;
     return this;
 }
Beispiel #15
0
 public NodeInputConfig NameConfig(Func <IDiagramNodeItem, string> selector)
 {
     Name = new ConfigProperty <IDiagramNodeItem, string>(selector);
     return(this);
 }
Beispiel #16
0
 public NodeGeneratorConfig <TNode> ClassNameConfig(ConfigProperty <TNode, string> className)
 {
     ClassName = className;
     return(this);
 }
Beispiel #17
0
 public NodeGeneratorConfig <TNode> ClassNameConfig(string literal)
 {
     ClassName = new ConfigProperty <TNode, string>(literal);
     return(this);
 }
Beispiel #18
0
 public NodeGeneratorConfig <TNode> DesignerFilenameConfigAsEditor(string fileName)
 {
     DesignerFilename = new ConfigProperty <TNode, string>(Path.Combine(Path.Combine("_DesignerFiles", "Editor"), fileName));
     return(this);
 }
Beispiel #19
0
 public NodeGeneratorConfig <TNode> NamespacesConfig(IEnumerable <string> literal)
 {
     Namespaces = new ConfigProperty <TNode, IEnumerable <string> >(literal);
     return(this);
 }
Beispiel #20
0
 public NodeGeneratorConfig <TNode> FilenameConfig(ConfigProperty <TNode, string> filename)
 {
     Filename = filename;
     return(this);
 }
Beispiel #21
0
 public NodeGeneratorConfig <TNode> DeclarationConfig(ConfigProperty <TNode, CodeTypeDeclaration> declaration)
 {
     Declaration = declaration;
     return(this);
 }
Beispiel #22
0
 public NodeGeneratorConfig <TNode> BaseTypeConfig(ConfigProperty <TNode, CodeTypeReference> baseType)
 {
     BaseType = baseType;
     return(this);
 }
Beispiel #23
0
 public NodeGeneratorConfig <TNode> DeclarationConfig(Func <TNode, CodeTypeDeclaration> selector)
 {
     Declaration = new ConfigProperty <TNode, CodeTypeDeclaration>(selector);
     return(this);
 }
Beispiel #24
0
 public NodeInputConfig NameConfig(ConfigProperty <IDiagramNodeItem, string> name)
 {
     Name = name;
     return(this);
 }