| 2094 |
ghuddy |
1 |
using System;
|
|
|
2 |
using System.Drawing;
|
|
|
3 |
using System.Collections;
|
|
|
4 |
using System.ComponentModel;
|
|
|
5 |
using System.Windows.Forms;
|
|
|
6 |
|
|
|
7 |
namespace EA_DocGen
|
|
|
8 |
{
|
|
|
9 |
/// <summary>
|
|
|
10 |
/// Summary description for EA_DocGenOptionsForm.
|
|
|
11 |
/// </summary>
|
|
|
12 |
public class EA_DocGenOptionsForm : System.Windows.Forms.Form
|
|
|
13 |
{
|
|
|
14 |
private System.Windows.Forms.Button buttonCancel;
|
|
|
15 |
private System.Windows.Forms.Button buttonOK;
|
|
|
16 |
private System.Windows.Forms.GroupBox groupBoxElementTypes;
|
|
|
17 |
private System.Windows.Forms.Button button_ET_All;
|
|
|
18 |
private System.Windows.Forms.Button button_ET_None;
|
|
|
19 |
private System.Windows.Forms.CheckedListBox checkedListBox_ETs;
|
|
|
20 |
private System.Windows.Forms.Button buttonDefault;
|
|
|
21 |
private System.Windows.Forms.CheckBox checkBox_SuppressEleDescMissWarn;
|
|
|
22 |
private System.Windows.Forms.CheckBox checkBox_SuppressPrivateClasses;
|
|
|
23 |
private System.Windows.Forms.CheckBox checkBox_SuppressPrivateMethods;
|
|
|
24 |
private System.Windows.Forms.CheckBox checkBox_SuppressPrivateAttrs;
|
| 2104 |
ghuddy |
25 |
private System.Windows.Forms.CheckBox checkBox_SuppressUnAllocatedRelationshipWarnings;
|
|
|
26 |
private System.Windows.Forms.CheckBox checkBox_API_Elements_Only;
|
|
|
27 |
private System.Windows.Forms.CheckBox checkBox_API_Packages_Only;
|
|
|
28 |
private System.Windows.Forms.CheckBox checkBox_RestrictForLinkedPackagesOnly;
|
|
|
29 |
private System.Windows.Forms.CheckBox checkBox_API_Diagrams_Only;
|
| 2094 |
ghuddy |
30 |
/// <summary>
|
|
|
31 |
/// Required designer variable.
|
|
|
32 |
/// </summary>
|
|
|
33 |
private System.ComponentModel.Container components = null;
|
|
|
34 |
|
|
|
35 |
public EA_DocGenOptionsForm()
|
|
|
36 |
{
|
|
|
37 |
//
|
|
|
38 |
// Required for Windows Form Designer support
|
|
|
39 |
//
|
|
|
40 |
InitializeComponent();
|
|
|
41 |
|
|
|
42 |
//
|
|
|
43 |
// TODO: Add any constructor code after InitializeComponent call
|
|
|
44 |
//
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
/// <summary>
|
|
|
48 |
/// Clean up any resources being used.
|
|
|
49 |
/// </summary>
|
|
|
50 |
protected override void Dispose( bool disposing )
|
|
|
51 |
{
|
|
|
52 |
if( disposing )
|
|
|
53 |
{
|
|
|
54 |
if(components != null)
|
|
|
55 |
{
|
|
|
56 |
components.Dispose();
|
|
|
57 |
}
|
|
|
58 |
}
|
|
|
59 |
base.Dispose( disposing );
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
#region Windows Form Designer generated code
|
|
|
63 |
/// <summary>
|
|
|
64 |
/// Required method for Designer support - do not modify
|
|
|
65 |
/// the contents of this method with the code editor.
|
|
|
66 |
/// </summary>
|
|
|
67 |
private void InitializeComponent()
|
|
|
68 |
{
|
|
|
69 |
this.buttonCancel = new System.Windows.Forms.Button();
|
|
|
70 |
this.buttonOK = new System.Windows.Forms.Button();
|
|
|
71 |
this.checkedListBox_ETs = new System.Windows.Forms.CheckedListBox();
|
|
|
72 |
this.groupBoxElementTypes = new System.Windows.Forms.GroupBox();
|
|
|
73 |
this.buttonDefault = new System.Windows.Forms.Button();
|
|
|
74 |
this.button_ET_None = new System.Windows.Forms.Button();
|
|
|
75 |
this.button_ET_All = new System.Windows.Forms.Button();
|
|
|
76 |
this.checkBox_SuppressEleDescMissWarn = new System.Windows.Forms.CheckBox();
|
|
|
77 |
this.checkBox_SuppressPrivateClasses = new System.Windows.Forms.CheckBox();
|
|
|
78 |
this.checkBox_SuppressPrivateMethods = new System.Windows.Forms.CheckBox();
|
|
|
79 |
this.checkBox_SuppressPrivateAttrs = new System.Windows.Forms.CheckBox();
|
| 2104 |
ghuddy |
80 |
this.checkBox_SuppressUnAllocatedRelationshipWarnings = new System.Windows.Forms.CheckBox();
|
|
|
81 |
this.checkBox_API_Elements_Only = new System.Windows.Forms.CheckBox();
|
|
|
82 |
this.checkBox_API_Packages_Only = new System.Windows.Forms.CheckBox();
|
|
|
83 |
this.checkBox_RestrictForLinkedPackagesOnly = new System.Windows.Forms.CheckBox();
|
|
|
84 |
this.checkBox_API_Diagrams_Only = new System.Windows.Forms.CheckBox();
|
| 2094 |
ghuddy |
85 |
this.groupBoxElementTypes.SuspendLayout();
|
|
|
86 |
this.SuspendLayout();
|
| 2104 |
ghuddy |
87 |
//
|
| 2094 |
ghuddy |
88 |
// buttonCancel
|
| 2104 |
ghuddy |
89 |
//
|
| 2094 |
ghuddy |
90 |
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
| 2104 |
ghuddy |
91 |
this.buttonCancel.Location = new System.Drawing.Point(336, 616);
|
| 2094 |
ghuddy |
92 |
this.buttonCancel.Name = "buttonCancel";
|
|
|
93 |
this.buttonCancel.Size = new System.Drawing.Size(96, 24);
|
|
|
94 |
this.buttonCancel.TabIndex = 0;
|
|
|
95 |
this.buttonCancel.Text = "Cancel";
|
| 2104 |
ghuddy |
96 |
//
|
| 2094 |
ghuddy |
97 |
// buttonOK
|
| 2104 |
ghuddy |
98 |
//
|
| 2094 |
ghuddy |
99 |
this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
|
| 2104 |
ghuddy |
100 |
this.buttonOK.Location = new System.Drawing.Point(224, 616);
|
| 2094 |
ghuddy |
101 |
this.buttonOK.Name = "buttonOK";
|
|
|
102 |
this.buttonOK.Size = new System.Drawing.Size(96, 24);
|
|
|
103 |
this.buttonOK.TabIndex = 1;
|
|
|
104 |
this.buttonOK.Text = "OK";
|
| 2104 |
ghuddy |
105 |
//
|
| 2094 |
ghuddy |
106 |
// checkedListBox_ETs
|
| 2104 |
ghuddy |
107 |
//
|
|
|
108 |
this.checkedListBox_ETs.Location = new System.Drawing.Point(32, 48);
|
| 2094 |
ghuddy |
109 |
this.checkedListBox_ETs.Name = "checkedListBox_ETs";
|
|
|
110 |
this.checkedListBox_ETs.Size = new System.Drawing.Size(272, 208);
|
|
|
111 |
this.checkedListBox_ETs.TabIndex = 3;
|
| 2104 |
ghuddy |
112 |
//
|
| 2094 |
ghuddy |
113 |
// groupBoxElementTypes
|
| 2104 |
ghuddy |
114 |
//
|
| 2094 |
ghuddy |
115 |
this.groupBoxElementTypes.Controls.Add(this.buttonDefault);
|
|
|
116 |
this.groupBoxElementTypes.Controls.Add(this.button_ET_None);
|
|
|
117 |
this.groupBoxElementTypes.Controls.Add(this.button_ET_All);
|
| 2104 |
ghuddy |
118 |
this.groupBoxElementTypes.Location = new System.Drawing.Point(16, 16);
|
| 2094 |
ghuddy |
119 |
this.groupBoxElementTypes.Name = "groupBoxElementTypes";
|
|
|
120 |
this.groupBoxElementTypes.Size = new System.Drawing.Size(408, 256);
|
|
|
121 |
this.groupBoxElementTypes.TabIndex = 4;
|
|
|
122 |
this.groupBoxElementTypes.TabStop = false;
|
|
|
123 |
this.groupBoxElementTypes.Text = "Element Types to be serialised to document";
|
| 2104 |
ghuddy |
124 |
//
|
| 2094 |
ghuddy |
125 |
// buttonDefault
|
| 2104 |
ghuddy |
126 |
//
|
| 2094 |
ghuddy |
127 |
this.buttonDefault.Location = new System.Drawing.Point(304, 128);
|
|
|
128 |
this.buttonDefault.Name = "buttonDefault";
|
|
|
129 |
this.buttonDefault.Size = new System.Drawing.Size(88, 23);
|
|
|
130 |
this.buttonDefault.TabIndex = 2;
|
|
|
131 |
this.buttonDefault.Text = "Defaults";
|
|
|
132 |
this.buttonDefault.Click += new System.EventHandler(this.buttonDefault_Click);
|
| 2104 |
ghuddy |
133 |
//
|
| 2094 |
ghuddy |
134 |
// button_ET_None
|
| 2104 |
ghuddy |
135 |
//
|
| 2094 |
ghuddy |
136 |
this.button_ET_None.Location = new System.Drawing.Point(304, 72);
|
|
|
137 |
this.button_ET_None.Name = "button_ET_None";
|
|
|
138 |
this.button_ET_None.Size = new System.Drawing.Size(88, 23);
|
|
|
139 |
this.button_ET_None.TabIndex = 1;
|
|
|
140 |
this.button_ET_None.Text = "DeSelect All";
|
|
|
141 |
this.button_ET_None.Click += new System.EventHandler(this.button_ET_None_Click);
|
| 2104 |
ghuddy |
142 |
//
|
| 2094 |
ghuddy |
143 |
// button_ET_All
|
| 2104 |
ghuddy |
144 |
//
|
| 2094 |
ghuddy |
145 |
this.button_ET_All.Location = new System.Drawing.Point(304, 32);
|
|
|
146 |
this.button_ET_All.Name = "button_ET_All";
|
|
|
147 |
this.button_ET_All.Size = new System.Drawing.Size(88, 24);
|
|
|
148 |
this.button_ET_All.TabIndex = 0;
|
|
|
149 |
this.button_ET_All.Text = "Select All";
|
|
|
150 |
this.button_ET_All.Click += new System.EventHandler(this.button_ET_All_Click);
|
| 2104 |
ghuddy |
151 |
//
|
| 2094 |
ghuddy |
152 |
// checkBox_SuppressEleDescMissWarn
|
| 2104 |
ghuddy |
153 |
//
|
|
|
154 |
this.checkBox_SuppressEleDescMissWarn.Location = new System.Drawing.Point(16, 392);
|
| 2094 |
ghuddy |
155 |
this.checkBox_SuppressEleDescMissWarn.Name = "checkBox_SuppressEleDescMissWarn";
|
|
|
156 |
this.checkBox_SuppressEleDescMissWarn.Size = new System.Drawing.Size(336, 16);
|
|
|
157 |
this.checkBox_SuppressEleDescMissWarn.TabIndex = 7;
|
|
|
158 |
this.checkBox_SuppressEleDescMissWarn.Text = "Suppress Element Description Missing Warnings";
|
| 2104 |
ghuddy |
159 |
//
|
| 2094 |
ghuddy |
160 |
// checkBox_SuppressPrivateClasses
|
| 2104 |
ghuddy |
161 |
//
|
|
|
162 |
this.checkBox_SuppressPrivateClasses.Location = new System.Drawing.Point(16, 296);
|
| 2094 |
ghuddy |
163 |
this.checkBox_SuppressPrivateClasses.Name = "checkBox_SuppressPrivateClasses";
|
|
|
164 |
this.checkBox_SuppressPrivateClasses.Size = new System.Drawing.Size(192, 24);
|
|
|
165 |
this.checkBox_SuppressPrivateClasses.TabIndex = 8;
|
|
|
166 |
this.checkBox_SuppressPrivateClasses.Text = "Suppress Private Classes";
|
| 2104 |
ghuddy |
167 |
//
|
| 2094 |
ghuddy |
168 |
// checkBox_SuppressPrivateMethods
|
| 2104 |
ghuddy |
169 |
//
|
|
|
170 |
this.checkBox_SuppressPrivateMethods.Location = new System.Drawing.Point(16, 328);
|
| 2094 |
ghuddy |
171 |
this.checkBox_SuppressPrivateMethods.Name = "checkBox_SuppressPrivateMethods";
|
|
|
172 |
this.checkBox_SuppressPrivateMethods.Size = new System.Drawing.Size(184, 24);
|
|
|
173 |
this.checkBox_SuppressPrivateMethods.TabIndex = 9;
|
|
|
174 |
this.checkBox_SuppressPrivateMethods.Text = "Suppress Private Methods";
|
| 2104 |
ghuddy |
175 |
//
|
| 2094 |
ghuddy |
176 |
// checkBox_SuppressPrivateAttrs
|
| 2104 |
ghuddy |
177 |
//
|
|
|
178 |
this.checkBox_SuppressPrivateAttrs.Location = new System.Drawing.Point(16, 360);
|
| 2094 |
ghuddy |
179 |
this.checkBox_SuppressPrivateAttrs.Name = "checkBox_SuppressPrivateAttrs";
|
|
|
180 |
this.checkBox_SuppressPrivateAttrs.Size = new System.Drawing.Size(192, 24);
|
|
|
181 |
this.checkBox_SuppressPrivateAttrs.TabIndex = 10;
|
|
|
182 |
this.checkBox_SuppressPrivateAttrs.Text = "Suppress Private Attributes";
|
| 2104 |
ghuddy |
183 |
//
|
|
|
184 |
// checkBox_SuppressUnAllocatedRelationshipWarnings
|
|
|
185 |
//
|
|
|
186 |
this.checkBox_SuppressUnAllocatedRelationshipWarnings.Location = new System.Drawing.Point(16, 416);
|
|
|
187 |
this.checkBox_SuppressUnAllocatedRelationshipWarnings.Name = "checkBox_SuppressUnAllocatedRelationshipWarnings";
|
|
|
188 |
this.checkBox_SuppressUnAllocatedRelationshipWarnings.Size = new System.Drawing.Size(320, 24);
|
|
|
189 |
this.checkBox_SuppressUnAllocatedRelationshipWarnings.TabIndex = 11;
|
|
|
190 |
this.checkBox_SuppressUnAllocatedRelationshipWarnings.Text = "Suppress Un-Allocated Relationship Warnings";
|
|
|
191 |
//
|
|
|
192 |
// checkBox_API_Elements_Only
|
|
|
193 |
//
|
|
|
194 |
this.checkBox_API_Elements_Only.Location = new System.Drawing.Point(16, 448);
|
|
|
195 |
this.checkBox_API_Elements_Only.Name = "checkBox_API_Elements_Only";
|
|
|
196 |
this.checkBox_API_Elements_Only.Size = new System.Drawing.Size(272, 24);
|
|
|
197 |
this.checkBox_API_Elements_Only.TabIndex = 12;
|
|
|
198 |
this.checkBox_API_Elements_Only.Text = "Consider API Stereotyped Elements Only";
|
|
|
199 |
//
|
|
|
200 |
// checkBox_API_Packages_Only
|
|
|
201 |
//
|
|
|
202 |
this.checkBox_API_Packages_Only.Location = new System.Drawing.Point(16, 512);
|
|
|
203 |
this.checkBox_API_Packages_Only.Name = "checkBox_API_Packages_Only";
|
|
|
204 |
this.checkBox_API_Packages_Only.Size = new System.Drawing.Size(304, 24);
|
|
|
205 |
this.checkBox_API_Packages_Only.TabIndex = 13;
|
|
|
206 |
this.checkBox_API_Packages_Only.Text = "Consider API Stereotyped Packages Only";
|
|
|
207 |
//
|
|
|
208 |
// checkBox_RestrictForLinkedPackagesOnly
|
|
|
209 |
//
|
|
|
210 |
this.checkBox_RestrictForLinkedPackagesOnly.Location = new System.Drawing.Point(40, 536);
|
|
|
211 |
this.checkBox_RestrictForLinkedPackagesOnly.Name = "checkBox_RestrictForLinkedPackagesOnly";
|
|
|
212 |
this.checkBox_RestrictForLinkedPackagesOnly.Size = new System.Drawing.Size(304, 24);
|
|
|
213 |
this.checkBox_RestrictForLinkedPackagesOnly.TabIndex = 14;
|
|
|
214 |
this.checkBox_RestrictForLinkedPackagesOnly.Text = "Restriction Applies Only To Linked Packages";
|
|
|
215 |
//
|
|
|
216 |
// checkBox_API_Diagrams_Only
|
|
|
217 |
//
|
|
|
218 |
this.checkBox_API_Diagrams_Only.Location = new System.Drawing.Point(16, 480);
|
|
|
219 |
this.checkBox_API_Diagrams_Only.Name = "checkBox_API_Diagrams_Only";
|
|
|
220 |
this.checkBox_API_Diagrams_Only.Size = new System.Drawing.Size(304, 24);
|
|
|
221 |
this.checkBox_API_Diagrams_Only.TabIndex = 15;
|
|
|
222 |
this.checkBox_API_Diagrams_Only.Text = "Consider API Stereotyped Diagrams Only";
|
|
|
223 |
//
|
| 2094 |
ghuddy |
224 |
// EA_DocGenOptionsForm
|
| 2104 |
ghuddy |
225 |
//
|
| 2094 |
ghuddy |
226 |
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
|
| 2104 |
ghuddy |
227 |
this.ClientSize = new System.Drawing.Size(440, 656);
|
|
|
228 |
this.Controls.Add(this.checkBox_API_Diagrams_Only);
|
|
|
229 |
this.Controls.Add(this.checkBox_RestrictForLinkedPackagesOnly);
|
|
|
230 |
this.Controls.Add(this.checkBox_API_Packages_Only);
|
|
|
231 |
this.Controls.Add(this.checkBox_API_Elements_Only);
|
|
|
232 |
this.Controls.Add(this.checkBox_SuppressUnAllocatedRelationshipWarnings);
|
| 2094 |
ghuddy |
233 |
this.Controls.Add(this.checkBox_SuppressPrivateAttrs);
|
|
|
234 |
this.Controls.Add(this.checkBox_SuppressPrivateMethods);
|
|
|
235 |
this.Controls.Add(this.checkBox_SuppressPrivateClasses);
|
|
|
236 |
this.Controls.Add(this.checkBox_SuppressEleDescMissWarn);
|
|
|
237 |
this.Controls.Add(this.checkedListBox_ETs);
|
|
|
238 |
this.Controls.Add(this.buttonOK);
|
|
|
239 |
this.Controls.Add(this.buttonCancel);
|
|
|
240 |
this.Controls.Add(this.groupBoxElementTypes);
|
|
|
241 |
this.Name = "EA_DocGenOptionsForm";
|
|
|
242 |
this.Text = "EA_DocGenOptionsForm";
|
|
|
243 |
this.groupBoxElementTypes.ResumeLayout(false);
|
|
|
244 |
this.ResumeLayout(false);
|
|
|
245 |
|
|
|
246 |
}
|
|
|
247 |
#endregion
|
|
|
248 |
|
|
|
249 |
|
| 2106 |
ghuddy |
250 |
public void populate()
|
| 2094 |
ghuddy |
251 |
{
|
|
|
252 |
EA.ObjectType objType;
|
|
|
253 |
object obj;
|
|
|
254 |
|
| 2106 |
ghuddy |
255 |
objType = Main.EA_Repository.GetTreeSelectedItem( out obj );
|
| 2094 |
ghuddy |
256 |
if (objType == EA.ObjectType.otElement)
|
|
|
257 |
{
|
|
|
258 |
EA.Element ele = (EA.Element)obj;
|
|
|
259 |
if (0 == ele.Name.CompareTo(EA_Constants.EA_DocGenBaseName))
|
|
|
260 |
{
|
|
|
261 |
CheckState defState;
|
| 2106 |
ghuddy |
262 |
if (EA_DocGenOptions.opt_ElementTypes.Count > 0)
|
| 2094 |
ghuddy |
263 |
defState = CheckState.Unchecked;
|
|
|
264 |
else
|
|
|
265 |
defState = CheckState.Checked;
|
|
|
266 |
|
| 2098 |
ghuddy |
267 |
// Items marked with a ? are things that do not appear in the New Element dialogs drop down list yet they
|
|
|
268 |
// are mentioned in the on-line help files. Not sure why this is so. Perhpas such element types are created
|
|
|
269 |
// by other means that the New Element dialog?
|
|
|
270 |
checkedListBox_ETs.Items.Add("Action", defState);
|
|
|
271 |
checkedListBox_ETs.Items.Add("Activity", defState);
|
|
|
272 |
checkedListBox_ETs.Items.Add("ActivityPartition", defState);
|
|
|
273 |
checkedListBox_ETs.Items.Add("ActivityRegion", defState); // ?
|
|
|
274 |
checkedListBox_ETs.Items.Add("Actor", defState);
|
|
|
275 |
checkedListBox_ETs.Items.Add("Artifact", defState);
|
|
|
276 |
checkedListBox_ETs.Items.Add("Association", defState); // ?
|
|
|
277 |
checkedListBox_ETs.Items.Add("Boundary", defState); // ?
|
|
|
278 |
checkedListBox_ETs.Items.Add("CentralBufferNode", defState);
|
|
|
279 |
checkedListBox_ETs.Items.Add("Change", defState);
|
|
|
280 |
checkedListBox_ETs.Items.Add("Class", defState);
|
|
|
281 |
checkedListBox_ETs.Items.Add("Collaboration", defState);
|
|
|
282 |
checkedListBox_ETs.Items.Add("Comment", defState);
|
|
|
283 |
checkedListBox_ETs.Items.Add("Component", defState);
|
|
|
284 |
checkedListBox_ETs.Items.Add("Constraint", defState); // ?
|
|
|
285 |
checkedListBox_ETs.Items.Add("DataStore", defState);
|
|
|
286 |
checkedListBox_ETs.Items.Add("Decision", defState); // ?
|
|
|
287 |
checkedListBox_ETs.Items.Add("DeploymentSpecification", defState);
|
|
|
288 |
checkedListBox_ETs.Items.Add("DiagramFrame", defState);
|
|
|
289 |
checkedListBox_ETs.Items.Add("EmbeddedElement", defState); // ?
|
|
|
290 |
checkedListBox_ETs.Items.Add("Entity", defState);
|
|
|
291 |
checkedListBox_ETs.Items.Add("EntryPoint", defState); // ?
|
|
|
292 |
checkedListBox_ETs.Items.Add("Enumeration", defState);
|
|
|
293 |
checkedListBox_ETs.Items.Add("Event", defState); // ?
|
|
|
294 |
checkedListBox_ETs.Items.Add("ExcecutionEnvironment", defState);
|
|
|
295 |
checkedListBox_ETs.Items.Add("ExceptionHandler", defState);
|
|
|
296 |
checkedListBox_ETs.Items.Add("ExitPoint", defState); // ?
|
|
|
297 |
checkedListBox_ETs.Items.Add("ExpansionNode", defState); // ?
|
|
|
298 |
checkedListBox_ETs.Items.Add("ExpansionRegion", defState);
|
|
|
299 |
checkedListBox_ETs.Items.Add("GUIElement", defState);
|
|
|
300 |
checkedListBox_ETs.Items.Add("InformationItem", defState);
|
|
|
301 |
checkedListBox_ETs.Items.Add("Interaction", defState);
|
|
|
302 |
checkedListBox_ETs.Items.Add("InteractionFragment", defState);
|
|
|
303 |
checkedListBox_ETs.Items.Add("InteractionOccurrence", defState); // ?
|
|
|
304 |
checkedListBox_ETs.Items.Add("InteractionState", defState); // ?
|
|
|
305 |
checkedListBox_ETs.Items.Add("Interface", defState);
|
|
|
306 |
checkedListBox_ETs.Items.Add("InterruptibleActivityRegion",defState);
|
|
|
307 |
checkedListBox_ETs.Items.Add("Issue", defState);
|
|
|
308 |
checkedListBox_ETs.Items.Add("MergeNode", defState);
|
|
|
309 |
checkedListBox_ETs.Items.Add("Node", defState);
|
|
|
310 |
checkedListBox_ETs.Items.Add("Note", defState); // ?
|
|
|
311 |
checkedListBox_ETs.Items.Add("Object", defState);
|
|
|
312 |
checkedListBox_ETs.Items.Add("Package", defState); // ?
|
|
|
313 |
checkedListBox_ETs.Items.Add("Parameter", defState); // ?
|
|
|
314 |
checkedListBox_ETs.Items.Add("Part", defState); // ?
|
|
|
315 |
checkedListBox_ETs.Items.Add("Port", defState); // ?
|
|
|
316 |
checkedListBox_ETs.Items.Add("ProvidedInterface", defState); // ?
|
|
|
317 |
checkedListBox_ETs.Items.Add("Region", defState);
|
|
|
318 |
checkedListBox_ETs.Items.Add("Report", defState); // ?
|
|
|
319 |
checkedListBox_ETs.Items.Add("RequiredInterface", defState); // ?
|
|
|
320 |
checkedListBox_ETs.Items.Add("Requirement", defState);
|
|
|
321 |
checkedListBox_ETs.Items.Add("Screen", defState);
|
|
|
322 |
checkedListBox_ETs.Items.Add("Sequence", defState); // ?
|
|
|
323 |
checkedListBox_ETs.Items.Add("Signal", defState);
|
|
|
324 |
checkedListBox_ETs.Items.Add("State", defState);
|
|
|
325 |
checkedListBox_ETs.Items.Add("StateMachine", defState);
|
|
|
326 |
checkedListBox_ETs.Items.Add("StateNode", defState);
|
|
|
327 |
checkedListBox_ETs.Items.Add("Synchronization", defState); // ?
|
|
|
328 |
checkedListBox_ETs.Items.Add("Text", defState); // ?
|
|
|
329 |
checkedListBox_ETs.Items.Add("TimeLine", defState);
|
|
|
330 |
checkedListBox_ETs.Items.Add("Trigger", defState);
|
|
|
331 |
checkedListBox_ETs.Items.Add("UMLDiagram", defState); // ?
|
|
|
332 |
checkedListBox_ETs.Items.Add("UseCase", defState);
|
| 2094 |
ghuddy |
333 |
|
| 2106 |
ghuddy |
334 |
if (EA_DocGenOptions.opt_ElementTypes.Count > 0)
|
| 2094 |
ghuddy |
335 |
{
|
| 2106 |
ghuddy |
336 |
foreach(string s in EA_DocGenOptions.opt_ElementTypes)
|
| 2094 |
ghuddy |
337 |
{
|
|
|
338 |
int i = checkedListBox_ETs.FindStringExact(s);
|
|
|
339 |
if (i != -1)
|
|
|
340 |
{
|
|
|
341 |
checkedListBox_ETs.SetItemChecked(i,true);
|
|
|
342 |
}
|
|
|
343 |
}
|
|
|
344 |
}
|
|
|
345 |
|
| 2106 |
ghuddy |
346 |
checkBox_SuppressEleDescMissWarn.Checked = EA_DocGenOptions.opt_SuppressElementDescriptionMissingWarnings;
|
|
|
347 |
checkBox_SuppressUnAllocatedRelationshipWarnings.Checked = EA_DocGenOptions.opt_SuppressUnAllocatedRelationshipWarnings;
|
| 2094 |
ghuddy |
348 |
|
| 2106 |
ghuddy |
349 |
checkBox_SuppressPrivateClasses.Checked = EA_DocGenOptions.opt_SuppressPrivateClasses;
|
|
|
350 |
checkBox_SuppressPrivateMethods.Checked = EA_DocGenOptions.opt_SuppressPrivateMethods;
|
|
|
351 |
checkBox_SuppressPrivateAttrs.Checked = EA_DocGenOptions.opt_SuppressPrivateAttributes;
|
|
|
352 |
checkBox_API_Elements_Only.Checked = EA_DocGenOptions.opt_ConsiderAPIElementsOnly;
|
|
|
353 |
checkBox_API_Diagrams_Only.Checked = EA_DocGenOptions.opt_ConsiderAPIDiagramsOnly;
|
|
|
354 |
checkBox_API_Packages_Only.Checked = EA_DocGenOptions.opt_ConsiderAPIPackagesOnly;
|
|
|
355 |
checkBox_RestrictForLinkedPackagesOnly.Checked = EA_DocGenOptions.opt_RestrictForLinkedPackagesOnly;
|
| 2094 |
ghuddy |
356 |
}
|
|
|
357 |
}
|
|
|
358 |
}
|
|
|
359 |
|
|
|
360 |
|
| 2106 |
ghuddy |
361 |
public void read()
|
| 2094 |
ghuddy |
362 |
{
|
|
|
363 |
// If every item is checked then we give back an empty opt_ElementTypes list because
|
|
|
364 |
// that indicates that the user wants everything.
|
| 2106 |
ghuddy |
365 |
EA_DocGenOptions.opt_ElementTypes.Clear();
|
| 2094 |
ghuddy |
366 |
if (checkedListBox_ETs.CheckedItems.Count != checkedListBox_ETs.Items.Count)
|
|
|
367 |
{
|
|
|
368 |
foreach(string s in checkedListBox_ETs.CheckedItems)
|
|
|
369 |
{
|
| 2106 |
ghuddy |
370 |
EA_DocGenOptions.opt_ElementTypes.Add(s);
|
| 2094 |
ghuddy |
371 |
}
|
|
|
372 |
}
|
|
|
373 |
|
| 2106 |
ghuddy |
374 |
EA_DocGenOptions.opt_SuppressElementDescriptionMissingWarnings = checkBox_SuppressEleDescMissWarn.Checked;
|
|
|
375 |
EA_DocGenOptions.opt_SuppressUnAllocatedRelationshipWarnings = checkBox_SuppressUnAllocatedRelationshipWarnings.Checked;
|
| 2094 |
ghuddy |
376 |
|
| 2106 |
ghuddy |
377 |
EA_DocGenOptions.opt_SuppressPrivateClasses = checkBox_SuppressPrivateClasses.Checked;
|
|
|
378 |
EA_DocGenOptions.opt_SuppressPrivateMethods = checkBox_SuppressPrivateMethods.Checked;
|
|
|
379 |
EA_DocGenOptions.opt_SuppressPrivateAttributes = checkBox_SuppressPrivateAttrs.Checked;
|
|
|
380 |
EA_DocGenOptions.opt_ConsiderAPIElementsOnly = checkBox_API_Elements_Only.Checked;
|
|
|
381 |
EA_DocGenOptions.opt_ConsiderAPIDiagramsOnly = checkBox_API_Diagrams_Only.Checked;
|
|
|
382 |
EA_DocGenOptions.opt_ConsiderAPIPackagesOnly = checkBox_API_Packages_Only.Checked;
|
|
|
383 |
EA_DocGenOptions.opt_RestrictForLinkedPackagesOnly = checkBox_RestrictForLinkedPackagesOnly.Checked;
|
| 2094 |
ghuddy |
384 |
}
|
|
|
385 |
|
|
|
386 |
private void button_ET_All_Click(object sender, System.EventArgs e)
|
|
|
387 |
{
|
|
|
388 |
int i;
|
|
|
389 |
for (i=0; i < checkedListBox_ETs.Items.Count; i++)
|
|
|
390 |
{
|
|
|
391 |
checkedListBox_ETs.SetItemChecked(i, true);
|
|
|
392 |
}
|
|
|
393 |
}
|
|
|
394 |
|
|
|
395 |
private void button_ET_None_Click(object sender, System.EventArgs e)
|
|
|
396 |
{
|
|
|
397 |
int i;
|
|
|
398 |
for (i=0; i < checkedListBox_ETs.Items.Count; i++)
|
|
|
399 |
{
|
|
|
400 |
checkedListBox_ETs.SetItemChecked(i, false);
|
|
|
401 |
}
|
|
|
402 |
}
|
|
|
403 |
|
|
|
404 |
private void findAndCheckItem(string s)
|
|
|
405 |
{
|
|
|
406 |
int i = checkedListBox_ETs.FindStringExact(s);
|
|
|
407 |
if (i != -1)
|
|
|
408 |
checkedListBox_ETs.SetItemChecked(i,true);
|
|
|
409 |
}
|
|
|
410 |
|
|
|
411 |
private void checkDefaultItems()
|
|
|
412 |
{
|
|
|
413 |
findAndCheckItem("Class");
|
|
|
414 |
findAndCheckItem("Component");
|
|
|
415 |
findAndCheckItem("Interface");
|
|
|
416 |
findAndCheckItem("Requirement");
|
|
|
417 |
}
|
|
|
418 |
|
|
|
419 |
private void buttonDefault_Click(object sender, System.EventArgs e)
|
|
|
420 |
{
|
|
|
421 |
int i = 0;
|
|
|
422 |
|
|
|
423 |
for (i=0; i < checkedListBox_ETs.Items.Count; i++)
|
|
|
424 |
{
|
|
|
425 |
checkedListBox_ETs.SetItemChecked(i, false);
|
|
|
426 |
}
|
|
|
427 |
checkDefaultItems();
|
|
|
428 |
}
|
|
|
429 |
|
|
|
430 |
|
|
|
431 |
}
|
|
|
432 |
}
|