+ All Categories
Home > Documents > C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features...

C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features...

Date post: 06-Jul-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
42
Starting Help Top Next Since C# Add-In transforms UML model to C# source code or C# source code to UML model, you can achieve high productivity and quality improvement as adopting C# code generation and reverse engineering to the tool easily and quickly. Index of C# Add-In Help 1. C# Add-In Overview 2. C# Profile 3. .NET BCL Framework 4. Option Configurations 5. C# Reverse Engineering 6. C# Code Generation 7. FAQ
Transcript
Page 1: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

StartingHelp TopNext

SinceC#Add-IntransformsUMLmodeltoC#sourcecodeorC#sourcecodetoUMLmodel,youcanachievehighproductivityandqualityimprovementasadoptingC#codegenerationandreverseengineeringtothetooleasilyandquickly.

IndexofC#Add-InHelp

1. C#Add-InOverview

2. C#Profile

3. .NETBCLFramework

4. OptionConfigurations

5. C#ReverseEngineering

6. C#CodeGeneration

7. FAQ

Page 2: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

C#Add-InOverview TopPreviousNext

ThischaptercontainsageneraloverviewofC#Add-In:functionsandconfigurationprocedures.

C#Add-InFunctions

C#Add-InConfigurations

Page 3: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

C#Add-InFunctions TopPreviousNext

C#Add-Inprovidesthefollowingfunctions.

C#Profile

C#profileisprovidedtoallowvisualmodelingofC#conceptssuchaspackage,class,interface,using,modifierandsooninStarUML(tm).IncludetheC#profilewhenyoustartyourStarUML(tm)project,inordertoapplythefeaturesoftheC#languageinyoursoftwaremodeling.

.NETBCLModelFramework

C#Add-InprovidestheECMA-334StandardLibraryintheModelFrameworkformat.

C#ReverseEngineering

C#Add-InprovidesthereverseengineeringfunctionthatgeneratesStarUML(tm)modelsbyanalyzingC#codes.

C#CodeGeneration

C#Add-InprovidestheforwardengineeringfunctionthatgeneratesC#codesbyanalyzingStarUML(tm)models.

Note

ThescopeofapplicationforC#Add-InisC#codesbasedonECMA-334(C#LanguageSpecificationv1.2).

Page 4: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

C#Add-InConfigurations TopPreviousNext

OnceC#Add-Inisinstalled,itisenabledforuseinStarUML(tm)bydefault.InstalledAdd-InscanbeenabledordisabledthroughAdd-InManagerinStarUML(tm).IfanAdd-Inisdisabled,nomainmenuandpopupmenuitemsrelatedtoitaredisplayed,andnoStarUML(tm)eventsarerelayedtoit.

ProcedureforEnablingC#Add-In:

1. Selectthe[Tools]->[Add-InManager...]menuinStarUML(tm).

2.AttheAdd-InManagerdialogbox,checkthe"C#Add-In"checkboxin

theAdd-Inlist.

3. Clickthe[OK]buttontoclosethedialogbox.

ProcedureforDisablingC#Add-In:

1. Selectthe[Tools]->[Add-InManager...]menuinStarUML(tm).

2.AttheAdd-InManagerdialogbox,uncheckthe"C#Add-In"checkboxin

theAdd-Inlist.

3. Clickthe[OK]buttontoclosethedialogbox.

Page 5: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

C#Profile TopPreviousNext

ThischapterdescribesC#profile:configurationproceduresanddefinitions.

IncludingC#Profile

ExcludingC#Profile

C#ProfileDefinitionList

Page 6: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

IncludingC#Profile TopPreviousNext

C#profilemustbeincludedintheprojectinordertoutilizetheStereotypes,TagDefinitions,andDataTypesdefinedinC#profile.

ProcedureforIncludingC#Profile:

1. Selectthe[Model]->[Profiles...]menu.

2.AttheProfileManagerwindow,select"C#Profile"fromthe"Available

profiles"listontheleft.

3.Clickthe[Include]buttonorhitAlt-Itomove"C#Profile"tothe

"Includedprofiles"list.

4. Clickthe[Close]buttontoclosetheProfileManagerwindow.

5. C#profileisincludedinthecurrentproject.

Note

OpeningaprojectwithC#profileonanotherStarUML(tm)systemthatdoesnothaveC#profileinstalledmayresultinlossofextension

Page 7: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

informationofmodelelements(Stereotype,TaggedValue,etc).

Page 8: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

ExcludingC#Profile TopPreviousNext

C#profilecanbeexcludedfromthecurrentproject.OnceC#profileisexcluded,Stereotypes,TagDefinitionsandDataTypesdefinedintheprofilecannotbeusedintheproject.

ProcedureforExcludingC#Profile:

1. Selectthe[Model]->[Profile...]menu.

2.AttheProfileManagerwindow,select"C#Profile"fromthe"Included

profiles"listontheright.

3.Clickthe[Exclude]buttonorhitAlt-Etoremove"C#Profile"fromthe

"Includedprofiles"list.

4. Clickthe[Close]buttontoclosetheProfileManagerwindow.

5. C#profileisexcludedfromthecurrentproject.

Note

Re-includingC#profileafterexcludingitdoesnotrestorethepreviously

Page 9: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

editedtaggedvaluesofthemodelelements.

Page 10: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

C#ProfileDefinitionList TopPreviousNext

Stereotype

C#profilecontainsdefinitionsforthefollowingstereotypes.

SterotypeTargetElement Description

<<CSharpSourceFile>>Component SourcefilewithC#code<<DotNetAssembly>> Component FilewithcompiledC#sourcecode<<CSharpDelegate>> Class C#Delegateindicator<<CSharpStruct>> Class C#Structindicator<<CSharpEvent>> Operation C#Eventindicator<<CSharpProperty>> Operation C#Propertyindicator<<CSharpOperator>> Operation C#Operatorindicator<<CSharpIndexer>> Operation C#Indexerindicator

TagDefinition

C#profilecontainsdefinitionsforthefollowingtagdefinitions.

TagDefinition Type TargetElement Description

CSharpOverride BooleanOperation

Aninstancemethoddeclaredbyusinganoverridemodifieriscalled"redefinitionmethod".Aredefinitionmethodredefinesaninheritedvirtualmethodthathasthesamesignature.

CSharpVirtual BooleanOperation

Ifadeclarationcontainsavirtuallimiter,themethodiscalled"virtualmethod".Ifthereisnovirtualmodifier,

Page 11: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

themethodiscallednon-virtualmethod.

CSharpExplicit BooleanOperation

Theexplicitkeywordisusedfordeclaringexplicituserdefinitionformatconversionoperators.

CSharpExtern BooleanOperation

Usingtheexternlimiterinthemethoddeclarationindicatesthatthemethodismanipulatedexternally.

CSharpSetter BooleanOperation Propertyaccessorsincludeexecutionlinesrelatedtoimportingproperties(readingorcalculating)andconfiguringproperties(writing).Anaccessdeclarationmayincludethegetaccessor,thesetaccessor,orboth.

CSharpGetter BooleanOperation

CSharpAdd BooleanOperation Thesearedeclarationsofaccessorsthatareusedforaddingorremovingeventprocessorsintheclientcode.Accessorfunctionsareaddandremove.

CSharpRemove BooleanOperation

Page 12: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

CSharpConstructorInitializer String Operation

Thisdefinesotherinstancegeneratorsthatwillbecalledbeforeexecutingthelinesintheinstancegenerator.

CSharpImplicit BooleanOperation

Theimplicitkeywordisusedfordeclaringimplicituserdefinitionformatconversionoperators..

CSharpUnsafe BooleanClass,Operation,Attribute,AssociationEnd

Theunsafekeywordindicatesunsafecontexts.

CSharpNew BooleanClass,Operation

Thenewmodifierisusedforexplicitlyhidingthemembersinheritedfromthebasicclasses.

CSharpStatic BooleanClass,Operation,Attribute

Thestaticmodifierisusedfordeclaringnotspecificobjectsbutstaticmembersthatbelongtospecificformats.

CSharpConst BooleanAttribute

Theconstkeywordisusedforeditingdeclarationsofdatamembersorlocalvariables.

CSharpVolatile BooleanAttribute,AssociationEnd

Thevolatilekeywordindicatesthatthedatamembercanbeeditedintheprogrambythreadsrunbytheoperating

Page 13: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

system,hardware,orbothatthesametime.

CSharpInternal BooleanClass,Operation,Enumeration

Theinternalkeywordisanaccessmodifierforformatsandformatmembers.Internalmemberscanbeaccessedwithinthesameassemblyfileonly.

CSharpBasetype String Enumeration

Eachenumerationformatincludesanintegertypeformatcalledinternalformatoftheenumerationformat.Thisinternalformatmustbeabletoexpressallenumerationvaluesdefinedintheenumeration.

CShapEnumLiteralValue String EnumerationLiteral

Eachenumerationmembercontainsaconstantvalue.Theformatofthisvalueistheinternalformatoftheenumeration.

CSharpDimension IntegerParameter,Attribute,AssociationEnd

Thisisthearraydimensionoftheobjectdeclared.

Page 14: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

CSharpParameter Boolean Parameter

Parameterarraysareparametersdeclaredbyusingtheparamsmodifier.Iftheparameterarrayisincludedintheformatparameterlist,itmustbelocatedattheendoftheparameterlistandithastobein1-dimensionarrayformat.

DataTypes

C#profilecontainsdefinitionsforthefollowingbasicC#datatypes.bool

decimal

sbyte

byte

short

ushort

int

uint

Page 15: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

long

ulong

char

float

double

object

string

void

Page 16: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

.NETBCLFramework TopPreviousNext

The.NETBCL(BaseClassLibraries)FrameworkistheC#developmentplatformmodelincludedinC#2StandardEdition.InStarUML(tm),aModelFrameworkreferstoasoftwaremodelthatexpressesaClassLibraryorapplicationframeworkssuchasMFC,VCL,andJFC.Usingaframeworkwiththeprojectgreatlyincreasestheconvenienceoftheuserformodelingsoftwarethatdependsonacertainclasslibraryorapplicationframework.

Usingthe.NETBCLFramework

Page 17: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

Usingthe.NETBCLFramework TopPreviousNext

ProcedureforImportingthe.NETBCLFramework:

1. Selectthe[File]->[Import]->[Framework...]menu.

2. Atthe[ImportFramework]dialog,selectthe.NETBCLFrameworkfromthelistandclickthe[OK]button.

3.

TheSelectElementdialogboxwillappeartodetermineinwhichelementthe.NETBCLframeworkwillbelocated.Selectanelement(package,model,subsystemorproject)tocontaintheframeworkandthenclickthe[OK]button.

Page 18: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

4. Theframeworkisincludedintheselectedelement.

Note

Importingaframeworkdoesnotstoretheframeworkelementsintheproject.Sinceframeworkunitsarereferencedbytheproject,theframeworkunitfilesmustbepresentwhenopeningtheproject.Todeletetheimportedframeworks,removetherespectiveframeworkunits.

Page 19: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

OptionConfigurations TopPreviousNext

ThischapterdiscussesproceduresforconfiguringtheC#Add-Inenvironmentanddescribestheoptionitemsindetail.

CodeGenerationOptionConfiguration

ReverseEngineeringOptionConfiguration

Page 20: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

CodeGenerationOptionConfiguration TopPreviousNext

CodeGenerationOption([Tools]->[Options...])isthegroupofoptionitemsforcodegenerationbyC#Add-In.Thiscategoryincludesthe[General],[CodeGeneration],[CodeStyle],and[FileHeader]sub-categories.

General

OptionItem Default DescriptionGeneratecodesevenwhenthereisnoprofile

FalseSpecifieswhethertogeneratecodesevenwhenC#profileisnotloadedintheproject(notrecommended).

CodeGeneration

OptionItem Default DescriptionGenerate1fileeachforClass,Struct,Interface,andEnum

True Specifieswhethertogenerate1fileeachfor1member(Class,Struct,Interface,andEnum).

Generateunnamed FalseGeneratesunnamedAssociationEndasareferencetypefieldforC#member.Inthiscase,

Page 21: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

AssociationEnd thefieldidentifierisindicatedas"UnspecifiedType"withanumberattheend.

GenerateC#Doc False SpecifieswhethertogeneratemodelingelementdocumentationasC#Doc.

GenerateemptyC#Doc False

Ifchecked,C#Docisgeneratedevenwhenthemodelingelementdocumentationdoesnothaveanyvalues(empty).

CodeStyle

OptionItem Default DescriptionInserttabsasspaces False Usesspaceinsteadoftabforindentation.

Tabwidth 4 Specifiesthenumberofspacestobeusedwheninsertingtabsasspaces.

Placetheopeningcurlybraceinthenewline

False Placestheopeningcurlybrace"{"inthenewline.

FileHeader

OptionItem Default Description

FileHeaderComments

See

description

Addsthecommentsinthebeginningofthe

sourcefile.

(Default)

//

//

//GeneratedbyStarUML(tm)C#Add-In

//

//@@Project:@p

//@@FileName:@f

//@@Date:@d

Page 22: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

//@@Author:@a

//

//

Page 23: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

ReverseEngineeringOptionConfigurations

TopPreviousNext

ReverseEngineeringOptionConfiguration([Tools]->[Options...])isthegroupofreverseengineeringoptionitemsforC#Add-In.Thiscategoryincludesthe[ModelGeneration],[Diagram]and[View]sub-categories.

ModelGeneration

OptionItem Default DescriptionGeneratepublicmember True Specifieswhethertogenerateclassandinterface

memberswithpublicvisibility.Generateinternalmember True Specifieswhethertogenerateclassandinterface

memberswithinternalvisibility.Generateprotectedmember True Specifieswhethertogenerateclassandinterface

memberswithprotectedvisibility.Generateprivatemember True Specifieswhethertogenerateclassandinterface

memberswithprivatevisibility.Omitinitialvalueforfields False Doesnotincludethefieldinitialvalueinthe

Attributemodelinformation.

Page 24: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

GenerateC#Docasdocumentation False

itasdocumentationinformation.C#Docofeachmethodisanalyzedfortaginformationandenteredasdocumentationinformationforeachparameteroftheoperationmodel.

GeneratefieldsasAssociation False

Analyzesthefieldinformationinthesourcecodetoestablishassociationrelationshipswiththerespectivefieldtypemodels.Ifunchecked,fieldinformationisgeneratedasattributefortherespectiveclassmodel.

Diagram

OptionItem Default Description

GenerateOverviewdiagram True

SpecifieswhethertogeneratetheOverviewdiagramforthegeneratedmodel.Ifunchecked,thefollowingdiagramandviewoptionsareignored.

Fitthediagramareatothegeneratedviewarea

False EnlargestheOverviewdiagramtofitthegeneratedviewarea.

Diagramname Overviewof%s

SpecifiestheOverviewdiagramname.Thepackagenamecanbeincludedinthediagramnamebyusing%s(e.g.Overviewof%s).

View

OptionItem Default DescriptionSuppresstheAttributecompartmentofClass

FalseSuppressestheAttributecompartmentoftheClassViewwhengeneratingtheOverviewdiagram.

SuppresstheOperationareaofClass

FalseSuppressestheOperationcompartmentoftheClassViewwhengeneratingtheOverviewdiagram.

Hideoperationsignature False Hidestheoperationsignaturewhengenerating

theOverviewdiagram.

Page 25: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

GenerateGeneralizationandRealizationviewsonlyforrelations

False

GeneratesgeneralizationandrealizationviewsonlyforrelationswhengeneratingtheOverviewdiagram.Whenusedappropriatelywithotherviewoptions,thisoptionisveryusefulfordrawingtheinheritancerelationsofoverallclassesandinterfaceswithinthepackage.

Page 26: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

C#ReverseEngineering TopPreviousNext

ThischapterdiscussestheproceduresforusingC#reverseengineeringandtheconceptsofreverseengineering.

C#ReverseEngineering

ReverseEngineeringOptionConfiguration

Page 27: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

C#ReverseEngineering TopPreviousNext

ProcedureforReverseEngineering:

1.InStarUML(tm),selectthe[Tools]->[C#]->[ReverseEngineering...]

menu.

2.Atthe[SelectSourceCode]pageinthe[C#ReverseEngineering]dialogbox,selectasourceandclick[Add].Click[Next]onceyouhavecompletedaddingthetargetsourcesforreverseengineering.

3. Atthe[SelectthePackagetocontainresult]page,selectapackagetocontaintheoutputresultsfromthepackagetreeandclick[Next].

Page 28: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

4. Atthe[OptionSetup]page,selectthereverseengineeringoptionsandclick[Run].Reverseengineeringwillstartnow.

Page 29: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

5. The[ReverseEngineering]pagewillshowthereverseengineeringprogressstatusandreturnreverseengineeringfailureorsuccessresults.

Page 30: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

Note

IfC#reverseengineeringisexecutedwithoutincludingC#profile,thefollowingdialogboxwillappearaskingwhetheryouwanttoincludeC#profile.Select"Yes(Y)"tocontinuethereverseengineeringprocess.

Page 31: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

ReverseEngineeringOptionConfiguration

TopPreviousNext

ReverseEngineeringOptionSetupScreen

ThisisthescreenforconfiguringtheoptionsrequiredforC#reverseengineering.

ModelGeneration

ModelGenerationincludesvariousoptionsformodelgeneration.Item DescriptionGenerateC#doctomodeldocumentation

SpecifieswhethertogenerateC#DocumentasStarUML(tm)modeldocumentation.

Omitfieldinitialvalues SpecifieswhethertoomittheinitialvaluesforC#fields.

public Specifieswhethertogenerateelementswithpublicaccess

Page 32: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

modifiers.

package Specifieswhethertogenerateelementswithpackageaccessmodifiers.

protected Specifieswhethertogenerateelementswithprotectedaccessmodifiers.

private Specifieswhethertogenerateelementswithprivateaccessmodifiers.

ReferenceFieldCreation

ReferenceFieldCreationspecifiesgenerationmethodsforreferencefieldswhengeneratingmodels.Item DescriptionGeneratethefieldtotheAttributes

SpecifieswhethertogenerateC#fieldsasStarUML(tm)modelattributes.

GeneratethefieldtotheAssociations

SpecifieswhethertogenerateC#fieldsasStarUML(tm)modelassociations.

Diagram

Diagramspecifiesdiagramgenerationandthedefaultgenerationnames.Item DescriptionCreateOverviewdiagram

SpecifieswhethertogenerateOverviewdiagramwhengeneratingmodel.

ThenameofDiagram

SpecifiesnamesforOverviewdiagramgeneration.Thestring%sisautomaticallyreplacedbythepackagename.

View

Viewspecifiesview-relatedoptionsaftermodelgeneration.Item DescriptionSuppresstheAttributecompartment

Suppressestheattributeareaofclassmodels.

Suppressthe

Page 33: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

Operationcompartment

Suppressestheoperationareaoftheclassmodels.

Hideoperationsignature

Specifieswhethertodisplayallsignaturesforoperationelements.

Generategeneralizationandrealizationviewsonly

Specifieswhethertogenerategeneralizationandrealizationviewsonlyforthemodelsgenerated.

Page 34: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

C#CodeGeneration TopPreviousNext

ThischapterdiscussestheproceduresforusingC#codegenerationandtheconceptsofforwardengineering.

C#CodeGeneration

CodeGenerationOptionConfiguration

Page 35: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

C#CodeGeneration TopPreviousNext

ProcedureforCodeGeneration:

1. InStarUML(tm),selectthe[Tools]->[C#]->[Generatecode...]menu.

2. Atthe[SelectPackageStartingLocation]pageinthe[Generatecode...]dialogbox,selectapackageandclick[Next].

3. Atthe[Selectthecodegenerationelement]page,selecttheelementsandclick[Next].

Page 36: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

4. Atthe[SelectOutputDirectory]page,selectadirectorytosavetheoutputsourcesandclick[Next].

Page 37: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

5. Atthe[OptionSetup]page,selectoptionsandclick[Next].Reverseengineeringwillstartnow.

Page 38: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

6. The[CodeGeneration]pagewillshowthecodegenerationprogressstatusandreturncodegenerationfailureorsuccessresults.

Page 39: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

Note

ThefollowingerrorwilloccurifC#codegenerationisexecutedwithoutincludingC#profile.PleaseensurethatC#profileisincludedintheprojectbeforeexecutingcodegeneration.

Page 40: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

CodeGenerationOptionConfiguration TopPreviousNext

CodeGenerationOptionSetupScreen

Thisisthescreenforconfiguringtheoptionsrequiredforcodegeneration.

GenerationOptions

Generationoptionsaremodel-relatedoptionsforcodegeneration.Item DescriptionGenerateonefileforeachelement Specifieswhethertogenerateonefileforeachelement.

GenerateunnamedAssociationEnd

SpecifieswhethertogeneratecodeforunnamedAssociationEnds.

GeneratedocumentationasC#Doc

SpecifieswhethertogenerateStarUML(tm)modeldocumentationasC#Doc.

Page 41: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

GenerateemptyC#Doc

SpecifieswhethertogenerateemptyStarUML(tm)documentation.

CodeStyleOptions

CodeStyleoptionsaretext-relatedoptionsforcodegeneration.Item DescriptionPlacetheopeningcurlybraceinthenewline

Placestheopeningcurlybrace"{"inthenewline.

Inserttabasspace Usesspaceinsteadoftabforindentation.

Tabwidth Specifiesthenumberofspacestobeusedwheninsertingtabsasspaces.

FileHeaderComments

FileHeaderCommentsdefinesthecommentsforeachfileheadItem Description

Fileheadercomments

Containsthecommentstobeinsertedinthebeginningofthesourcefile.Asdescribedinthe"headercommentsdescription"section,the'@'symbolandalphanumericcharacterscanbeusedtoinsertspecificvalueshere.

Page 42: C# Add-In Help · profile when you start your StarUML(tm) project, in order to apply the features of the C# language in your software modeling. ... Generate Overview diagram True

FAQ TopPrevious

ThefollowingarefrequentlyaskedquestionsandanswersforusingC#Add-In.

1. WhataretheC#LanguageversionssupportedbyC#Add-In?

2. Igeta"C#Profileisnotloaded"warningwindowwhengeneratingcode.Whatdoesthismean?

1.WhataretheC#LanguageversionssupportedbyC#Add-In?C#Add-InsupportsC#LanguageSpecificationversion1.2,whichisthemostwidelyusedversion.C#Add-InalsosupportstheECMA-334standard.

2. Igeta"C#Profileisnotloaded"warningwindowwhengeneratingcode.Whatdoesthismean?C#ProfilemustbeincludedinordertousetheC#codegenerationfunction.IncludingC#Profile


Recommended