Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7b536b58d4a8e2bef66eb21a62fd16465f895129 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
	<TITLE> </TITLE>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 3.1  (Win32)">
	<META NAME="AUTHOR" CONTENT="S&eacute;bastien G&eacute;rard">
	<META NAME="CREATED" CONTENT="20100507;12382300">
	<META NAME="CHANGEDBY" CONTENT="Scott LEE">
	<META NAME="CHANGED" CONTENT="20100511;16302200">
	<META NAME="Info 1" CONTENT="">
	<META NAME="Info 2" CONTENT="">
	<META NAME="Info 3" CONTENT="">
	<META NAME="Info 4" CONTENT="">
	<STYLE TYPE="text/css">
	<!--
		@page { margin-left: 2.5cm; margin-right: 1.5cm; margin-top: 1.25cm; margin-bottom: 1.25cm }
		P { margin-bottom: 0.21cm; direction: ltr; color: #000000; text-align: justify; widows: 2; orphans: 2 }
		P.western { font-family: "Arial", sans-serif; font-size: 11pt; so-language: en-US }
		P.cjk { font-family: "Times New Roman", serif; font-size: 11pt }
		P.ctl { font-family: "Times New Roman", serif; font-size: 10pt; so-language: ar-SA }
		P.list-western { font-family: "Arial", sans-serif; font-size: 11pt; so-language: en-US }
		P.list-cjk { font-family: "Times New Roman", serif; font-size: 11pt }
		P.list-ctl { font-family: "Tahoma"; font-size: 10pt; so-language: ar-SA }
		H1 { margin-top: 0cm; margin-bottom: 0.42cm; background: #cccccc; border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding: 0.04cm 0cm; direction: ltr; color: #000000; text-align: left; widows: 2; orphans: 2; page-break-before: always; page-break-after: auto }
		H1.western { font-family: "Arial", sans-serif; font-size: 11pt; so-language: en-US }
		H1.cjk { font-family: "Times New Roman", serif; font-size: 11pt }
		H1.ctl { font-family: "Times New Roman", serif; font-size: 10pt; so-language: ar-SA; font-weight: normal }
		H1.heading+no-numbering+new-page-western { font-family: "Arial", sans-serif; font-size: 11pt; so-language: en-US }
		H1.heading+no-numbering+new-page-cjk { font-family: "Times New Roman", serif; font-size: 11pt }
		H1.heading+no-numbering+new-page-ctl { font-family: "Times New Roman", serif; font-size: 10pt; so-language: ar-SA; font-weight: normal }
		P.list-1-end-western { margin-left: 0.64cm; text-indent: -0.64cm; margin-bottom: 0.42cm; font-family: "Arial", sans-serif; font-size: 11pt; so-language: en-US }
		P.list-1-end-cjk { margin-left: 0.64cm; text-indent: -0.64cm; margin-bottom: 0.42cm; font-family: "Times New Roman", serif; font-size: 11pt }
		P.list-1-end-ctl { margin-left: 0.64cm; text-indent: -0.64cm; margin-bottom: 0.42cm; font-family: "Tahoma"; font-size: 10pt; so-language: ar-SA }
		A:link { color: #0000ff }
		A.sdfootnotesym-western { font-size: 8pt }
		A.sdfootnotesym-cjk { font-size: 8pt }
	-->
	</STYLE>
</HEAD>
<BODY LANG="fr-FR" TEXT="#000000" LINK="#0000ff" DIR="LTR">
<DIV TYPE=HEADER>
	<P LANG="en-GB" CLASS="western" STYLE="margin-top: 0.21cm; margin-bottom: 1.15cm; border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.04cm; padding-left: 0cm; padding-right: 0cm">
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m1e24f929.gif" NAME="images1" ALIGN=LEFT WIDTH=16 HEIGHT=16 BORDER=0><BR CLEAR=LEFT><B>	Tutorial
	on Palette Customization in Papyrus				Version 1.0</B></P>
</DIV>
<TABLE WIDTH=648 BORDER=0 CELLPADDING=6 CELLSPACING=0 STYLE="page-break-before: always">
	<COL WIDTH=636>
	<TR>
		<TD WIDTH=636 HEIGHT=105 VALIGN=TOP>
			<P LANG="zxx" CLASS="western" ALIGN=CENTER><BR><BR>
			</P>
			<P LANG="en-US" ALIGN=CENTER><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m6e3b81b8.png" NAME="images3" ALIGN=LEFT WIDTH=131 HEIGHT=68 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_4ddfcb15.jpg" NAME="images2" ALIGN=LEFT WIDTH=86 HEIGHT=86 BORDER=0><BR CLEAR=LEFT><BR>
			</P>
		</TD>
	</TR>
</TABLE>
<P LANG="en-US" CLASS="western" ALIGN=CENTER><BR><BR>
</P>
<P LANG="en-US" CLASS="western" ALIGN=CENTER><BR><BR>
</P>
<P LANG="en-US" CLASS="western" ALIGN=CENTER><BR><BR>
</P>
<P LANG="en-US" CLASS="western" ALIGN=CENTER><BR><BR>
</P>
<P LANG="en-US" CLASS="western" ALIGN=CENTER><BR><BR>
</P>
<P LANG="en-US" CLASS="western" ALIGN=CENTER><BR><BR>
</P>
<P LANG="en-US" CLASS="western" ALIGN=CENTER><FONT SIZE=5><B>Papyrus
Tutorial:</B></FONT></P>
<P LANG="en-US" CLASS="western" ALIGN=CENTER><FONT SIZE=5><B>How to
customize a palette in Papyrus?</B></FONT></P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<TABLE WIDTH=643 BORDER=0 CELLPADDING=7 CELLSPACING=0>
	<COL WIDTH=175>
	<COL WIDTH=440>
	<TR VALIGN=TOP>
		<TD WIDTH=175>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm">Editor</P>
		</TD>
		<TD WIDTH=440>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm">Scott
			Uk-Jin Lee, CEA LIST</P>
		</TD>
	</TR>
	<TR VALIGN=TOP>
		<TD WIDTH=175>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm">Status</P>
		</TD>
		<TD WIDTH=440>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm">Final
			version</P>
		</TD>
	</TR>
	<TR VALIGN=TOP>
		<TD WIDTH=175>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm">Version
			number</P>
		</TD>
		<TD WIDTH=440>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm">1.0</P>
		</TD>
	</TR>
	<TR VALIGN=TOP>
		<TD WIDTH=175>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm">Date of
			preparation</P>
		</TD>
		<TD WIDTH=440>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm">2010-05-07</P>
		</TD>
	</TR>
</TABLE>
<H1 LANG="en-US" CLASS="heading+no-numbering+new-page-western">Authors</H1>
<TABLE WIDTH=643 BORDER=0 CELLPADDING=7 CELLSPACING=0>
	<COL WIDTH=230>
	<COL WIDTH=124>
	<COL WIDTH=188>
	<COL WIDTH=45>
	<TR VALIGN=TOP>
		<TD WIDTH=230 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm"><B>Editor
			name (first/last name)</B></P>
		</TD>
		<TD WIDTH=124 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm"><B>Company</B></P>
		</TD>
		<TD WIDTH=188 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm"><B>E-mail</B></P>
		</TD>
		<TD WIDTH=45 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm"><B>Initial</B></P>
		</TD>
	</TR>
	<TR VALIGN=BOTTOM>
		<TD WIDTH=230>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<FONT FACE="Arial, sans-serif"><FONT SIZE=2>Scott Uk-Jin Lee</FONT></FONT></P>
		</TD>
		<TD WIDTH=124>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<FONT FACE="Arial, sans-serif"><FONT SIZE=2>CEA LIST</FONT></FONT></P>
		</TD>
		<TD WIDTH=188>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<FONT FACE="Arial, sans-serif"><FONT SIZE=2><A HREF="mailto:scott.lee@cea.fr">scott.lee@cea.fr</A></FONT></FONT></P>
		</TD>
		<TD WIDTH=45>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm">SL</P>
		</TD>
	</TR>
</TABLE>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<TABLE WIDTH=643 BORDER=0 CELLPADDING=7 CELLSPACING=0>
	<COL WIDTH=230>
	<COL WIDTH=124>
	<COL WIDTH=188>
	<COL WIDTH=45>
	<TR VALIGN=TOP>
		<TD WIDTH=230 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm; background: #ffff99">
			<B>Authors name (first/last name)</B></P>
		</TD>
		<TD WIDTH=124 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm; background: #ffff99">
			<B>Company</B></P>
		</TD>
		<TD WIDTH=188 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm; background: #ffff99">
			<B>E-mail</B></P>
		</TD>
		<TD WIDTH=45 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm; background: #ffff99">
			<B>Initial</B></P>
		</TD>
	</TR>
	<TR VALIGN=BOTTOM>
		<TD WIDTH=230>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<FONT FACE="Arial, sans-serif"><FONT SIZE=2>Hubert Dubois</FONT></FONT></P>
		</TD>
		<TD WIDTH=124>
			<P LANG="zxx" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<FONT FACE="Arial, sans-serif"><FONT SIZE=2>CEA LIST</FONT></FONT></P>
		</TD>
		<TD WIDTH=188>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<FONT FACE="Arial, sans-serif"><FONT SIZE=2><A HREF="mailto:Sebastien.gerard@cea.fr">hubert.dubois@cea.fr</A></FONT></FONT></P>
		</TD>
		<TD WIDTH=45>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm">HD</P>
		</TD>
	</TR>
</TABLE>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<H1 LANG="en-US" CLASS="heading+no-numbering+new-page-western">Revision
chart and history log</H1>
<TABLE WIDTH=636 BORDER=0 CELLPADDING=7 CELLSPACING=0>
	<COL WIDTH=62>
	<COL WIDTH=83>
	<COL WIDTH=449>
	<TR VALIGN=TOP>
		<TD WIDTH=62 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm; background: #ffff99">
			<B>Version </B>
			</P>
		</TD>
		<TD WIDTH=83 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm; background: #ffff99">
			<B>Date</B></P>
		</TD>
		<TD WIDTH=449 BGCOLOR="#ffff99">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.2cm; background: #ffff99">
			<B>Reasons</B></P>
		</TD>
	</TR>
	<TR VALIGN=TOP>
		<TD WIDTH=62>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<FONT FACE="Arial, sans-serif"><FONT SIZE=2>1.0</FONT></FONT></P>
		</TD>
		<TD WIDTH=83 SDVAL="40308" SDNUM="1036;0;JJ/MM/AA">
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<FONT FACE="Arial, sans-serif"><FONT SIZE=2>10/05/10</FONT></FONT></P>
		</TD>
		<TD WIDTH=449>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<FONT FACE="Arial, sans-serif"><FONT SIZE=2>Initial contribution.</FONT></FONT></P>
		</TD>
	</TR>
	<TR VALIGN=TOP>
		<TD WIDTH=62>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
		<TD WIDTH=83>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
		<TD WIDTH=449>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
	</TR>
	<TR VALIGN=TOP>
		<TD WIDTH=62>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
		<TD WIDTH=83>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
		<TD WIDTH=449>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
	</TR>
	<TR VALIGN=TOP>
		<TD WIDTH=62>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
		<TD WIDTH=83>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
		<TD WIDTH=449>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
	</TR>
	<TR VALIGN=TOP>
		<TD WIDTH=62>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
		<TD WIDTH=83>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
		<TD WIDTH=449>
			<P LANG="en-US" CLASS="western" STYLE="margin-top: 0.1cm; font-weight: normal">
			<BR>
			</P>
		</TD>
	</TR>
</TABLE>
<H1 LANG="en-US" CLASS="heading+no-numbering+new-page-western">Table
of contents</H1>
<DIV ID="Table of Contents1" DIR="LTR">
	<P LANG="en-US" ALIGN=LEFT STYLE="margin-top: 0.21cm">  <FONT SIZE=2>Authors	2</FONT></P>
	<P LANG="en-US" ALIGN=LEFT STYLE="margin-top: 0.21cm">  <FONT SIZE=2>Revision
	chart and history log	3</FONT></P>
	<P LANG="en-US" ALIGN=LEFT STYLE="margin-top: 0.21cm">  <FONT SIZE=2>Table
	of contents	4</FONT></P>
	<P LANG="en-US" ALIGN=LEFT STYLE="margin-top: 0.21cm"><FONT SIZE=2><A HREF="#1.Introduction|outline">1
	
	Introduction.....................................................................................................................................................5</A></FONT></P>
	<P LANG="en-US" ALIGN=LEFT STYLE="margin-top: 0.21cm"><FONT SIZE=2><A HREF="#2.How to customize palette for Papyrus _|outline">2
	 Palette Customization in Papyrus
	&hellip;...............................................................................................................6</A></FONT></P>
	<P LANG="en-US" ALIGN=LEFT STYLE="margin-top: 0.21cm"><FONT SIZE=2><A HREF="#3.Application of customized palette to Papyrus Plug-ins|outline">3
	 Application of customized palette to Papyrus plug-ins
	&hellip;.............................................................................12</A></FONT></P>
	<P LANG="en-US" ALIGN=LEFT STYLE="margin-top: 0.21cm"><FONT SIZE=2><A HREF="#4.FAQs|outline">4
	 FAQs
	&hellip;........................................................................................................................................................17</A></FONT></P>
	<P LANG="en-US" ALIGN=LEFT STYLE="margin-top: 0.21cm"><FONT SIZE=2><A HREF="#4.References|outline">5
	 References	18</A></FONT></P>
</DIV>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<H1 LANG="en-US" CLASS="western"><A NAME="1.Introduction|outline"></A>
1Introduction</H1>
<P LANG="en-GB" CLASS="western" ALIGN=JUSTIFY>The purpose of this
document is to provide a tutorial for Papyrus users and developers,
explaining the followings: 
</P>
<UL>
	<UL>
		<LI><P LANG="en-GB" CLASS="western" ALIGN=JUSTIFY>how to customize
		a palette in Papyrus</P>
		<LI><P LANG="en-GB" CLASS="western" ALIGN=JUSTIFY>how to apply
		customized palette in Papyrus plug-ins</P>
	</UL>
</UL>
<P LANG="en-GB" CLASS="western" ALIGN=JUSTIFY><BR><BR>
</P>
<P LANG="en-GB" CLASS="western" ALIGN=JUSTIFY>A palette is a
collection of UML elements available for a particular diagram. It is
located on the right hand side of the Papyrus diagram editor as shown
below. The palette allows convenient construction of a particular UML
diagram. 
</P>
<P LANG="en-GB" CLASS="western" ALIGN=JUSTIFY><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_7bb211b8.jpg" NAME="graphics1" ALIGN=LEFT WIDTH=642 HEIGHT=547 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_78f85dd6.gif" ALIGN=LEFT><BR><BR>
</P>
<H1 LANG="en-US" CLASS="western"><A NAME="2.How to customize palette for Papyrus _|outline"></A>
2How to customize palette for Papyrus ?</H1>
<OL>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Right click on the
	palette toolbar and select 'Customize...'</P>
</OL>
<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_2de6511e.jpg" NAME="graphics2" ALIGN=LEFT WIDTH=358 HEIGHT=173 BORDER=0><BR CLEAR=LEFT><BR><BR>
</P>
<OL START=2>
	<LI><P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_3ee63c30.jpg" NAME="graphics3" ALIGN=LEFT WIDTH=608 HEIGHT=291 BORDER=0>The
	'Customize Palette' pop-up appears. Select 'Create a new local
	Palette' icon as indicated below.</P>
	<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m5b16696f.gif" ALIGN=LEFT></P>
	<LI><P LANG="en-US" CLASS="western"><FONT FACE="Arial, sans-serif">The
	'Local Palette Information' pop-up is displayed. Type the name of
	the new Local Palette to be customized and click 'Next'.</FONT></P>
	<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_1a7383ef.jpg" NAME="graphics4" ALIGN=LEFT WIDTH=367 HEIGHT=239 BORDER=0><BR CLEAR=LEFT></P>
	<P LANG="en-US" CLASS="western"></P>
	<LI><P LANG="en-US" CLASS="western"><FONT FACE="Arial, sans-serif">The
	customization menu for the new Local Palette then appears as shown
	below. This menu allows customize the Local Palette with drawers,
	separators and UML elements. The UML elements can be renamed and
	assigned with custom icons.  </FONT>
	</P>
</OL>
<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_411962d6.jpg" NAME="graphics5" ALIGN=LEFT WIDTH=617 HEIGHT=333 BORDER=0><BR CLEAR=LEFT><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<OL START=5>
	<LI><P LANG="en-US" CLASS="western">Create a new drawer with the
	indicated button as shown below. When the 'Dialog Information Page'
	pop-up appears, type the name of the new drawer and click 'Finish'.
	Similarly, appropriate buttons can be utilized to rename or remove
	the drawer.  
	</P>
</OL>
<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m5a174047.jpg" NAME="graphics6" ALIGN=LEFT WIDTH=618 HEIGHT=319 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m2a5d1838.gif" ALIGN=LEFT><BR><BR>
</P>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<P LANG="en-GB" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m2d88bdd2.gif" ALIGN=LEFT><BR><BR>
</P>
<OL START=5>
	<P LANG="en-GB" CLASS="western" STYLE="margin-right: 0.09cm"></P>
	<LI><P LANG="en-GB" CLASS="western" STYLE="margin-right: 0.09cm">Add
	appropriate elements to the highlighted drawer in the local Palette
	by selecting the element to be added and clicking the right-arrow as
	shown below.</P>
</OL>
<P LANG="en-GB" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_4b33db00.jpg" NAME="graphics7" ALIGN=LEFT WIDTH=600 HEIGHT=373 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m1612afc0.gif" ALIGN=LEFT><BR><BR>
</P>
<OL START=7>
	<LI><P LANG="en-GB" CLASS="western">Customize name, description and
	icons for the added elements by selecting the added element and
	changing the information on the text fields of 'Entry Information:'
	as shown below.  
	</P>
	<P LANG="en-GB" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_1f1d26a1.gif" ALIGN=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m7a8be963.jpg" NAME="graphics8" ALIGN=LEFT WIDTH=606 HEIGHT=397 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m4a6d66e1.gif" ALIGN=LEFT></P>
	<P LANG="en-US" CLASS="western"></P>
	<LI><P LANG="en-US" CLASS="western">Add separators between elements
	in a drawer if necessary by selecting the element and clicking the
	indicated button as shown below. Note that the separator will be
	created below the selected element. 
	</P>
</OL>
<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_74c8281f.jpg" NAME="graphics9" ALIGN=LEFT WIDTH=604 HEIGHT=374 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m62c1dd5.gif" ALIGN=LEFT><BR><BR>
</P>
<OL START=9>
	<LI><P LANG="en-US" CLASS="western">Customize the added elements
	with profile by applying stereotype to the element. First, click on
	the indicated button and select 'Set list of applied stereotypes'.</P>
	<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_6b592bb8.gif" ALIGN=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_68bae2f2.jpg" NAME="graphics10" ALIGN=LEFT WIDTH=613 HEIGHT=382 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m62c1dd5.gif" ALIGN=LEFT></P>
	<P LANG="en-US" CLASS="western">Then, apply stereotype to the
	element by using the button indicated below and selecting the
	appropriate stereotype from the 'Stereotype selection' pop-up. 
	</P>
</OL>
<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m4d2642df.jpg" NAME="graphics11" ALIGN=LEFT WIDTH=613 HEIGHT=387 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m62c1dd5.gif" ALIGN=LEFT><FONT COLOR="#ff0000">	*
Note: The profile must be applied on the model that consists of the
diagram with the 			palette to be customized prior to applying the
stereotype.</FONT></P>
<OL START=10>
	<LI><P LANG="en-US" CLASS="western">When the stereotypes to be
	applied are selected click 'ok'. The applied stereotypes are
	displayed as indicated below. 
	</P>
	<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_fa9f27c.jpg" NAME="graphics12" ALIGN=LEFT WIDTH=618 HEIGHT=397 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_2e60cc27.gif" ALIGN=LEFT>
		</P>
	<P LANG="en-US" CLASS="western"></P>
	<LI><P LANG="en-US" CLASS="western">Add all the elements and apply
	appropriate stereotypes to complete the palette customization and
	click 'finish' button. Then the 'Customize Palette' pop-up reappears
	as shown below. Select only the palette to be displayed, then click
	'ok'.</P>
	<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m4995407d.jpg" NAME="graphics13" ALIGN=LEFT WIDTH=588 HEIGHT=271 BORDER=0><BR CLEAR=LEFT></P>
	<LI><P LANG="en-US" CLASS="western">The palette customization is
	successfully finished indicating that the customized palette appears
	in the diagram editor as indicated below. 
	</P>
	<P LANG="en-US" CLASS="western"><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_524be928.jpg" NAME="graphics14" ALIGN=LEFT WIDTH=618 HEIGHT=432 BORDER=0><BR CLEAR=LEFT><IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m1abb7658.gif" ALIGN=LEFT></P>
	<P LANG="en-US" CLASS="western"></P>
</OL>
<P LANG="en-US" CLASS="western"><BR><BR>
</P>
<H1 LANG="en-US" CLASS="western"><A NAME="3.Application of customized palette to Papyrus Plug-ins|outline"></A>
3Application of customized palette to Papyrus Plug-ins</H1>
<OL>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Once the palette is
	customized, go to the Papyrus workspace folder and navigate to the
	'\.metadata\.plugins\org.eclipse.papyrus.diagram.common' folder as
	shown below. 
	</P>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m79877ecd.jpg" NAME="graphics17" ALIGN=LEFT WIDTH=576 HEIGHT=200 BORDER=0><BR CLEAR=LEFT>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Copy the XML file
	containing the palette customization information which has the name
	in the form of 'Palette_[UserName]_[numbers].xml'. (Note: XML file
	is created every time the new local palette is created for
	customization. So, copy the correct XML file that you want.)  
	</P>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m70da181d.jpg" NAME="graphics15" ALIGN=LEFT WIDTH=575 HEIGHT=199 BORDER=0><BR CLEAR=LEFT>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<LI><P LANG="en-US" CLASS="list-1-end-western">In the plug in that
	you want to apply customized palette, create folder with the name
	'palettes'. In the created folder, paste the copied XML file and
	rename the file with '[Name].Palette.xml' format.  
	</P>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m21556a07.jpg" NAME="graphics16" ALIGN=LEFT WIDTH=447 HEIGHT=257 BORDER=0><BR CLEAR=LEFT>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Open 'plug-in.xml'
	file. If the 'plug-in.xml' file is not yet generated, open
	'MANIFEST.MF' file from 'META-INF' folder. Then, go to the
	'dependencies' tab and click 'add' button to add required plug-ins
	as shown below.</P>
</OL>
<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_76021fdc.jpg" NAME="graphics18" ALIGN=LEFT WIDTH=604 HEIGHT=386 BORDER=0><BR CLEAR=LEFT>
<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_23e9525f.gif" ALIGN=LEFT>
<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m35c81750.gif" ALIGN=LEFT>
<P LANG="en-US" CLASS="list-1-end-western"><BR><BR>
</P>
<OL START=5>
	<LI><P LANG="en-US" CLASS="list-1-end-western">When 'Plug-in
	Selection' pop up appears as shown below, add
	'org.eclipse.papyrus.diagram.common' plug-in as shown below.</P>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m13347fb5.jpg" NAME="graphics19" ALIGN=LEFT WIDTH=548 HEIGHT=259 BORDER=0><BR CLEAR=LEFT>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Similarly, go to the
	'extension' tab and click 'Add' button. When the 'New Extension'
	pop-up appears as shown below, type 'paletteDefinition' at the
	'Extension Point filter:' text field. Select
	'org.eclipse.papyrus.diagram.common.paletteDefinition' and click
	'Finish'.</P>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_48d1d34a.jpg" NAME="graphics20" ALIGN=LEFT WIDTH=373 HEIGHT=393 BORDER=0><BR CLEAR=LEFT>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Then the extension
	element is added under the extension point as shown below. Click
	extension element and set its 'name' and 'ID'. Also, set the 'path'
	to the path of the custom palette XML file,
	'/palettes/paletteName.Palette.xml'. For the 'class' setting, browse
	'org.eclipse.papyrus.diagram.common.service.PluginPaletteProvider'
	class and select. For the 'icon' setting, eclipse icon can be reused
	by typing location of the Eclipse icon which is 
	'platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif'.</P>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_mf9df094.jpg" NAME="graphics21" ALIGN=LEFT WIDTH=630 HEIGHT=322 BORDER=0><BR CLEAR=LEFT>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Expand
	'paletteDefinition' extension element, and click on the 'Priority'
	as indicated below. Then, set appropriate priority on the 'Extension
	Element Details' column.</P>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_555bbb5d.gif" NAME="graphics22" ALIGN=LEFT WIDTH=618 HEIGHT=310 BORDER=0><BR CLEAR=LEFT>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_3dc01309.gif" ALIGN=LEFT>
	<P LANG="en-US" CLASS="list-1-end-western"><FONT COLOR="#ff0000">*
	Note:	When the elements in the custom palette is shared with other
	palettes in the 	diagram editor, only the palette with higher
	priority will display the elements under 	its drawer. So, make sure
	to set the priority appropriately for the elements to appear 	in the
	desired palette.</FONT></P>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Right click on the
	added 'paletteDefinition' Extension and add new editor as shown
	below. 
	</P>
</OL>
<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_7c8e723e.jpg" NAME="graphics23" ALIGN=LEFT WIDTH=618 HEIGHT=310 BORDER=0><BR CLEAR=LEFT>
<P LANG="en-US" CLASS="list-1-end-western"><BR><BR>
</P>
<P LANG="en-US" CLASS="list-1-end-western"><BR><BR>
</P>
<OL START=9>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Select the newly
	added editor and set appropriate 'id' of the editor where the custom
	palette is to be applied to. For example,
	'org.eclipse.papyrus.diagram.clazz' for the class diagram as shown
	below. 
	</P>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_190000d0.jpg" NAME="graphics24" ALIGN=LEFT WIDTH=598 HEIGHT=296 BORDER=0><BR CLEAR=LEFT>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
	<LI><P LANG="en-US" CLASS="list-1-end-western">Now when the plug-in
	is launched, the custom palette automatically appears for the
	selected diagram editor. For example, the custom palette for class
	diagram editor appears as shown below.  
	</P>
	<IMG SRC="PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10_html_m33dcfb72.jpg" NAME="graphics25" ALIGN=LEFT WIDTH=607 HEIGHT=445 BORDER=0><BR CLEAR=LEFT>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
</OL>
<H1 LANG="en-US" CLASS="western"><A NAME="4.FAQs|outline"></A>4FAQs</H1>
<OL>
	<LI><P LANG="en-US" CLASS="western">Why can I not see the
	stereotypes applicable to the added elements when customizing a
	palette?</P>
</OL>
<UL>
	<LI><P LANG="en-US" CLASS="western">This is because the profile,
	where the stereotypes are defined, is not applied to the model.
	Apply appropriate profile to the model that consists of the diagram
	with the palette to be customized. Then, the stereotype will be
	accessible during the palette customization.</P>
</UL>
<OL>
	<P LANG="en-US" CLASS="western"></P>
	<LI><P LANG="en-US" CLASS="western">Why are the customized elements
	do not appear in the customized palette when the palette
	customization is applied to a Papyrus plug-in? 
	</P>
</OL>
<UL>
	<LI><P LANG="en-US" CLASS="western">This is because the priority of
	the customized palette is lower than other palettes of the selected
	diagram editor. Apply higher priority to the customized palette
	through the 'paletteDefinition' extension. (refer to 8 in page 15)</P>
	<P LANG="en-US" CLASS="list-1-end-western"></P>
</UL>
<H1 LANG="en-US" CLASS="western"><A NAME="4.References|outline"></A>5References</H1>
<P LANG="en-US" CLASS="western">N/A.</P>
<DIV TYPE=FOOTER>
	<P LANG="en-US" CLASS="western" STYLE="margin-top: 1.15cm">&#61667;
	<FONT SIZE=2 STYLE="font-size: 9pt"><SPAN LANG="zxx"><I>2009 The
	Papyrus Consortium </I></SPAN></FONT><FONT SIZE=2 STYLE="font-size: 9pt"><SPAN LANG="zxx"><I>	</I></SPAN></FONT><SPAN LANG="zxx"><SDFIELD TYPE=PAGE SUBTYPE=RANDOM FORMAT=PAGE>19</SDFIELD></SPAN><SPAN LANG="zxx">/</SPAN><SPAN LANG="zxx"><SDFIELD TYPE=DOCSTAT SUBTYPE=PAGE FORMAT=ARABIC>19</SDFIELD></SPAN></P>
</DIV>
</BODY>
</HTML>

Back to the top