Changing connection handle icons [message #197296] |
Wed, 16 July 2008 09:57 |
Eclipse User |
|
|
|
Originally posted by: marcello.larosa.iinet.net.au
Hi all,
I would like to change the icons of the connection handles for a given
diagram element. I saw in the BPMN editor developed with GMF that these
icons have been customized to allow the representation of message flow,
association, etc. Also, I would like to know how one can restrict the
visualization of these handles to a specific side of the diagram element.
Thanks in advance,
Marcello
|
|
|
|
Re: Changing connection handle icons [message #197635 is a reply to message #197486] |
Thu, 17 July 2008 09:52 |
Eclipse User |
|
|
|
Originally posted by: marcello.larosa.iinet.net.au
Thanks Brian,
I've downloaded the sourcecode of the BPMN editor and found the icon files
and the extended classes as you suggested. I'm going to make my own.
Cheers,
Marcello
"Brian Jakubik" <brian.jakubik@intervoice.com> ha scritto nel messaggio
news:g5lqsa$11s$1@build.eclipse.org...
> Try this:
>
> Extend ConnectionHandle and override getImage() to return your image for
> the handle...
>
> Extend ConnectionHandleEditPolicy and override getHandleFigures() to
> return a list of your "new" ConnectionHandle's
>
> In your EditPart's createDefaultEditPolicies() add
> installEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE, new
> ...ConnecionHandleEditPolicy());
>
> you should now see your new handles...
>
> Hope this helps
> Brian Jakubik
>
> Marcello wrote:
>> Hi all,
>>
>> I would like to change the icons of the connection handles for a given
>> diagram element. I saw in the BPMN editor developed with GMF that these
>> icons have been customized to allow the representation of message flow,
>> association, etc. Also, I would like to know how one can restrict the
>> visualization of these handles to a specific side of the diagram element.
>>
>> Thanks in advance,
>> Marcello
|
|
|
Powered by
FUDForum. Page generated in 0.06823 seconds