complete Tag attribute in runtime

<?xml version="1.0"?>
<root>
     <foo someAtt/>

</root>

I want the attribute "someAtt" will be resoved  from the class Foo and show in complete dialog ,after type class name "Foo" or  click "Control+Space"

here is Foo.java

class Foo{

  public void setSomeAtt(String value)
  {......}

  public void setSomeAtt2(String value)
  {......}

}

I have already created an interface FooTag extends CommonDomModelElement, which method  or interface should I implement ?

thx.

0
1 comment

If I understand you correctly, the possible attributes to complete in XML are dependent on the value of attribute "class"? Then have a look at DomExtender, you can find an example of usage in org.jetbrains.android.dom.AndroidDomExtender

0

Please sign in to leave a comment.