Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [bpel-dev] How to change the default behavior of LeafBorder.paint()

Hello,

there needs to be some "hard-coding" here because you have to find out whether there are any extension point implementers. Your code looks good to me  - evtl. you could put this stuff into org.eclipse.bpel.ui.extensions.BPELUIRegistry. That's where we handle all our other extension-points...

Mit freundlichen Grüßen / Kind regards

Michael Illiger

Software Developer - BPEL Editor / WID
IBM Software Group, Application and Integration Middleware Software
WSS Business Process Solutions Development 1

Phone: +49-7031-16-1273  IBM Deutschland
E-Mail: milliger@xxxxxxxxxx  Schoenaicher Str. 220
 71032 Boeblingen
 Germany

IBM Deutschland Research & Development GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Erich Baier
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294




From: zeng zhen <zengzn@xxxxxxxxx>
To: Michael Illiger2/Germany/IBM@IBMDE
Cc: "BPEL Designer project developer discussions." <bpel-dev@xxxxxxxxxxx>, bpel-dev-bounces@xxxxxxxxxxx
Date: 10/19/2009 06:02 PM
Subject: Re: [bpel-dev] How to change the default behavior of         LeafBorder.paint()





Hello, Michael,

thank you for your answer.
I still have a question about creating an extension point in bpel.ui.

I have defined an extension point with name "customvisual" in plugin.xml of bpel.ui

I have added following codes in org.eclipse.bpel.ui.editpart.border.LeafBorder to create an instance of the extension.
    protected void getExtensionLeafBorder() {
       
        instance = null;
       
        instance =  (LeafBorder) BPELUIRegistry.readCustomvisual("extension.leafborder");
        if (instance == null) {
            return ;
        }
    }

This instance is used in paint(IFigure figure, Graphics graphics, Insets insets)
to adjust the visualization of the activity nodes.
My question is: is there a way to avoid modifying the source code of org.eclipse.bpel.ui.editpart.border.LeafBorder? Because the hardcoding is always bad.

thanks!

Zhen and Ting


2009/10/12 Michael Illiger2 <MILLIGER@xxxxxxxxxx>
Hello Ting,

as of today we don't have the possibility to adjust the visualization of the activity nodes using extension points.

So the answer is, yes - you would have to define an extension point in bpel.ui.


Mit freundlichen Grüßen / Kind regards


Michael Illiger


Software Developer - BPEL Editor / WID

IBM Software Group, Application and Integration Middleware Software

WSS Business Process Solutions Development 1

Phone: +49-7031-16-1273  IBM Deutschland
E-Mail: milliger@xxxxxxxxxx  Schoenaicher Str. 220
 71032 Boeblingen
 Germany

IBM Deutschland Research & Development GmbH / Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Erich Baier
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294




From: ting wang <tting.wang@xxxxxxxxx>
To: bpel-dev@xxxxxxxxxxx
Cc: zhen zeng <zengzn@xxxxxxxxx>
Date: 10/12/2009 04:14 PM
Subject: [bpel-dev] How to change the default behavior of LeafBorder.paint()
Sent by: bpel-dev-bounces@xxxxxxxxxxx






Hallo,

I am trying to wirte an extension to change the default behavior of org.eclipse.bpel.ui.editparts.borders.LeafBorder, for example, the shape of the elements border. By default it is Rectangle and I want to change it into circle.

Is there an extension point, which i can use to implement it?
Or I have to define an extension point in org.eclipse.bpel.ui?

any answer is appreciate

--

Best Regards


Mit Freundlichen Grüßen


    商祺

Ting Wang




"The bane of my existence is doing things
that I know the computer could do for me"

                       -- Dan Connolly_______________________________________________
bpel-dev mailing list

bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev





Back to the top