I have component based application. All of the components are defined in XML. The components may be defined in different xml files.
<!-- filename: components.xml -->
<component type="x" name="y">
<component type="a" name="b">
<!-- filename: extra-components.xml -->
<component type="x" name="z" extends="x:y"> <!-- this extends component x:y -->
Right now I'm trying to write a plugin so that I can jump from the child components to parent component. In the example above, the component type 'x' and name 'z' extends component type 'x' and name 'y'.
Going throughs some of the source from different plugins, I was able to add a menu item and grab content under the caret.
Say, if my caret is under "x:y" in second component, I can garb x and y so at least I can know the component type and component name to look for.
But I want to underline the contents under extends i.e. "x:y" when I press ctrl and search for the component and jump to the declaration of the component when ctrl+click like we jump to declaration of class.
I want guidance like which class should I look, how should I go or similar implementation.