Talk:First Amoeba Video
From APIDesign
Comments on First Amoeba Video <comments />
Payne said ...
True, XML has structure and there can be a completion, but annotations make it more easier and are more integrated with Java. Imagine:
public @interface ReferenceToJPanel { Class<? extends JPanel> myClass(); }
Each Java IDE will offer only subclasses of JPanel when code completing value of myClass attribute. This cannot be done with plain XML Schema (as it is not aware of Java and its class hierarchy).
Moreover it looks more handy for majority of users (I have talked to) to edit just one language than switch from a Java file to an XML file and back. I think there is significant benefit of annotations over the XML and its schema (mixed with Java).
--JaroslavTulach 16:39, 23 August 2009 (UTC)
Code completion with annotations is not big improvement. XML can have code completion too if we give XML Schema with it.
--Payne 17:14, 23 August 2009 (CEST)