On 10/23/2009 02:21 PM, Malcolm Edgar wrote:
Hi Hantsy,

Please see below:

http://incubator.apache.org/click/docs/click-dtd.html

regards Malcolm Edgar

On Fri, Oct 23, 2009 at 2:08 PM, Hantsy Bai<[email protected]>  wrote:
Hi, Malcolm

Can you provide an official DTD  header declaration for the click.xml (and
menu.xml) in the 2.1 fcs ?
It is important for IDE. In my plugin, I used NetBeans grammar api to
implement code completion, but if it is provided, the grammar code is no
need.


--
Hantsy Bai
Guangzhou, China
http://hantsy.blogspot.com


I know content you provided.
May be you misunderstood my meanings.
Currently the click.xml is lack of Dtd declaration header, like the following.

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE click-app PUBLIC
    "-//Apache Software Foundation//DTD Click Configuration 2.1//EN"
    "http://click.apache.org/dtds/click-2.1.dtd";>

<click-app>
....
</click-app>

In the click.xml, providing a doctype declaration(the red section, it is just an example) is helpful for IDE. NetBeans IDE can use this declaration to determine if this file is a click configuration file and provide basic code completion automatically (extra code completion is provided by Code completion api , my plugin provide extra code completion for package, path and classname attribute value).

--
Hantsy Bai
Guangzhou, China
http://hantsy.blogspot.com

Reply via email to