Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Extensible Type Registry-which one for addNodeListener
Extensible Type Registry-which one for addNodeListener [message #145086] Wed, 01 August 2007 17:29 Go to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
hi,

which would be the right Edit*something of the Extensible Type Registry
to call addNodeListener of my EditPart I want to extend? I want to
listen to changes of an attribute in the SemanticModel?

I looked in the "Developer's Guide to the Extensible Type Registry" but
couldn't find which to take within several hours :(

-stefan
Re: Extensible Type Registry-which one for addNodeListener [message #145119 is a reply to message #145086] Thu, 02 August 2007 07:45 Go to previous messageGo to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
I'm sorry, I was wrong.

I somehow need to add behaviour to the

handleNotificationEvent of an EditPart

Can I use EditHelpers or EditPolicies to do that or do I have to replace
the whole EditPart?

-stefan


SKuhn schrieb:
> hi,
>
> which would be the right Edit*something of the Extensible Type Registry
> to call addNodeListener of my EditPart I want to extend? I want to
> listen to changes of an attribute in the SemanticModel?
>
> I looked in the "Developer's Guide to the Extensible Type Registry" but
> couldn't find which to take within several hours :(
>
> -stefan
Re: Extensible Type Registry-which one for addNodeListener [message #145141 is a reply to message #145119] Thu, 02 August 2007 11:21 Go to previous messageGo to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
well, I looked in the GMFGraph.Editor project ... they realized this
with writing a xPand aspect for the editPart.

If someone is interested ;)
(/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef.editor/te mplates/aspects/xpt/diagram/editparts/NodeEditPart.xpt)

Still nobody got a better solution via extension points? ;(

-stefan



SKuhn schrieb:
> I'm sorry, I was wrong.
>
> I somehow need to add behaviour to the
>
> handleNotificationEvent of an EditPart
>
> Can I use EditHelpers or EditPolicies to do that or do I have to replace
> the whole EditPart?
>
> -stefan
>
>
> SKuhn schrieb:
>> hi,
>>
>> which would be the right Edit*something of the Extensible Type
>> Registry to call addNodeListener of my EditPart I want to extend? I
>> want to listen to changes of an attribute in the SemanticModel?
>>
>> I looked in the "Developer's Guide to the Extensible Type Registry"
>> but couldn't find which to take within several hours :(
>>
>> -stefan
Re: Extensible Type Registry-which one for addNodeListener [message #145228 is a reply to message #145141] Fri, 03 August 2007 10:26 Go to previous message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
ok, I got it.

I used an EditPolicy to register a Listener to the EObject.




SKuhn schrieb:
> well, I looked in the GMFGraph.Editor project ... they realized this
> with writing a xPand aspect for the editPart.
>
> If someone is interested ;)
> (/org.eclipse.gmf/plugins/org.eclipse.gmf.graphdef.editor/te mplates/aspects/xpt/diagram/editparts/NodeEditPart.xpt)
>
>
> Still nobody got a better solution via extension points? ;(
>
> -stefan
>
>
>
> SKuhn schrieb:
>> I'm sorry, I was wrong.
>>
>> I somehow need to add behaviour to the
>>
>> handleNotificationEvent of an EditPart
>>
>> Can I use EditHelpers or EditPolicies to do that or do I have to
>> replace the whole EditPart?
>>
>> -stefan
>>
>>
>> SKuhn schrieb:
>>> hi,
>>>
>>> which would be the right Edit*something of the Extensible Type
>>> Registry to call addNodeListener of my EditPart I want to extend? I
>>> want to listen to changes of an attribute in the SemanticModel?
>>>
>>> I looked in the "Developer's Guide to the Extensible Type Registry"
>>> but couldn't find which to take within several hours :(
>>>
>>> -stefan
Previous Topic:Open a gmf diagram from the java code
Next Topic:Two notational views/diagrams from same semantic model
Goto Forum:
  


Current Time: Tue Jul 16 12:59:26 GMT 2024

Powered by FUDForum. Page generated in 0.04749 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top