Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Re: possible XML SWT markup language?

1. To be truly useful, the markup should allow for user controls. There is
no harm in hard-wiring support for the standard controls, but the format
should not preclude extensibility.

2. The markup should be defined by a schema, not by a program. This is not
just for error-checking purposes, but so tools can provide the maximum
assistance during the authoring process. (If you will fix the format so it
is possible to describe by a schema, I will be happy to write the schema for
you.)

3. Instead of a single <layoutData> tag with attributes that vary according
to layout manager, tags should be specific, e.g., <gridData>, <rowData>,
etc. A program, like XSWT, that can check the current tags needs to have
built the controls, so it can go up the control parent chain (instead of the
element parent chain) to discover the type of layout manager. This is
needless complexity.

4. Then, for extensibility, there should be a generic <layoutData> tag which
has no attributes and subordinate elements like:

  <property name="horizontalIndent">20</property>

Bob


----- Original Message -----
From: "Chris McLaren" <Chris_McLaren@xxxxxxxxxx>
To: <platform-swt-dev@xxxxxxxxxxx>
Sent: Monday, May 26, 2003 9:02 AM
Subject: [platform-swt-dev] Re: possible XML SWT markup language?


> I've posted the source for the XSWT plugin as an attachment to this
> report:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=38109
>
> Please let me know what you think (but go easy on me.. I'm quite
> sensitive.. :)
> Also, please remember this work is a experiment on the sidelines right now
> and not part of the Eclipse 3.0 plan.
>
> Chris.
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>



Back to the top