private String gettingParametersFro mUI args new String for int args l

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
private String[] gettingParametersFromUI(){
args = new String[9];
for (int i = 0; i < args.length; i++) {
args[i] = "";
}
if (ui.getParsingCheckboxItem().getState()){
args[0] = "java";
} else args[0] = "class";
args[1] = ui.getPath().toString();
if (!ui.getShowHeader().getState()){
args[2] = "noheader";
}
if (ui.getClassDiagramCheckboxItem().getState()) {
args[3] = "classes_diagram";
} else {
args[3] = "sequence_diagram";
}
if (ui.getVerticalDirectionCheckboxItem().getState()) {
args[4] = "vertical";
} else args[4] = "horizontal";
if (!ui.getShowComposition().getState()){
args[5] = "nocomposition";
}
if (!ui.getShowAggregation().getState()){
args[6] = "noaggregation";
}
if (!ui.getShowAssociation().getState()){
args[7] = "noassociation";
}
if (!ui.getShowLollipops().getState()){
args[8] = "nolollipop";
}
return args;
}