Accessing attributes defined on an extensionnode

View: New views
2 Messages — Rating Filter:   Alert me  

Accessing attributes defined on an extensionnode

by Snowcrash Short :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi

I have an addin root, which listens for ExtensionChanged events on the
AddinManager, when an event is raised I get a patch containing
something like this: /SCEngine/Api/__nid_1354/__nid_1355, I would like
to convert this into something more user friendly, e.g. by accessing a
"Name" attribute on the extension node, is there some method I can
use, either using the Path string supplied in the event or the
ExtensionNode object, in order to access either the raw xml data or an
attribute on the Node?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Accessing attributes defined on an extensionnode

by Lluis Sanchez-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


El dj 22 de 10 de 2009 a les 02:14 -0700, en/na Snowcrash Short va
escriure:

> Hi
>
> I have an addin root, which listens for ExtensionChanged events on the
> AddinManager, when an event is raised I get a patch containing
> something like this: /SCEngine/Api/__nid_1354/__nid_1355, I would like
> to convert this into something more user friendly, e.g. by accessing a
> "Name" attribute on the extension node, is there some method I can
> use, either using the Path string supplied in the event or the
> ExtensionNode object, in order to access either the raw xml data or an
> attribute on the Node?

You can set the 'id' of the node. The path of a node is the extension
path composed with the id's of the parent nodes.

About accessing raw xml data of the node, you have to do it through a
custom extension node. See:

http://mono-project.com/Mono.Addins_Reference_Manual#Custom_Extension_Node_Types

Lluis.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en
-~----------~----~----~----~------~----~------~--~---