Hello Janak

Thanks so far that helps me.

regards 


Torsten Hofmann
Dipl. - Informatiker (FH)
IT Consultant Business Integration
 
Würth Phoenix GmbH
Drillberg 6
D-97980 Bad Mergentheim

(Phone: +49 7931 91 6284
7 Fax: +49 7931 91 7284
+E-Mail: [EMAIL PROTECTED]
     Website: www.wuerth-phoenix.de


-----Ursprüngliche Nachricht-----
Von: Janak Mulani [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 3. Mai 2006 09:07
An: Hofmann, Torsten
Cc: [email protected]
Betreff: RE: [ULC-developer] Custom widget for ULC Visual Editor

Hi Torsten,

Please see: http://www.eclipse.org/vep/WebContent/docs/doc.html

Extending Eclipe VE:
http://www.eclipse.org/articles/Article-VE-Custom-Widget/customwidget.html

How ULC VE extended Eclipse VE:
http://www.eclipse.org/vep/WebContent/docs/VEpapers/ulc.pdf

However something like the following should be easy:

MyLabel extends ULCLabel {
     public MyLabel() {
              this.setOpaque(true);
              this.setBackgroundColor(Color.blue); } }

1. Just add the class in palette file:  In your ULC VE installation directory, 
go to 
"eclipse/plugins/com.canoo.ulc.visualeditor_5.0.0/palette/ulcbeanscats.xmi"

2. Make the class available on the build path of your project.


But to generate MyLabel(String text) {} i.e. ctr with args requires special 
coding.

I hope this helps.

Thanks and regards,

Janak

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Hofmann, Torsten
Sent: Tuesday, May 02, 2006 8:12 PM
To: [email protected]
Subject: [ULC-developer] Custom widget for ULC Visual Editor


Hello

Is it possible to get an example or documentation how to create a custom widget 
for the visual editor?

regards

Torsten Hofmann
Dipl. - Informatiker (FH)
IT Consultant Business Integration

Würth Phoenix GmbH
Drillberg 6
D-97980 Bad Mergentheim

(Phone: +49 7931 91 6284
7 Fax: +49 7931 91 7284
+E-Mail: [EMAIL PROTECTED]
     Website: www.wuerth-phoenix.de

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to