Moin Mike,
a lot of people prefer the text editor for html and wod editing. The
WODEditor leads to much better "code" then WOBuilder.
MikeString : WOString {
value = foo;
}
versus
String2111111 : WOString {
value = foo;
}
Just my two cents.
For the ApiEditor it's much easier to modify the stuff from the UI.
An example:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<wodefinitions>
<wo class="Main" wocomponentcontent="false">
<binding name="foo"/>
<binding name="fooRequired"/>
<binding name="fooWillSet"/>
<binding name="fooRequiredWillSet"/>
<binding name="fooBoolean" defaults="Boolean"/>
<binding name="fooDateFormatStrings" defaults="Date Format
Strings"/>
<binding name="fooMIMETypes" defaults="MIME Types"/>
<binding name="fooDirectActions" defaults="Direct Actions"/>
<binding name="fooDirectActionClasses" defaults="Direct
Action Classes"/>
<binding name="fooPageNames" defaults="Page Names"/>
<binding name="fooFrameworks" defaults="Frameworks"/>
<binding name="fooResources" defaults="Resources"/>
<binding name="fooDuck"/>
<validation message="'fooRequired' is a required
binding">
<unbound name="fooRequired"/>
</validation>
<validation message="'fooWillSet' must be bound to
a settable value">
<unsettable name="fooWillSet"/>
</validation>
<validation message="'fooRequiredWillSet' is a
required binding">
<unbound name="fooRequiredWillSet"/>
</validation>
<validation message="'fooRequiredWillSet' must be
bound to a settable value">
<unsettable name="fooRequiredWillSet"/>
</validation>
<validation message="'fooDuck' must be bound to a
settable value">
<unsettable name="fooDuck"/>
</validation>
<validation message="(validation (or (unbound fooDuck)
(unbound fooDuck)))">
<or>
<unbound name="fooDuck"/>
<unbound name="fooDuck"/>
</or>
</validation>
</wo>
</wodefinitions>
The text is too "complicated" for hand editing. At least the
validation stuff.
I'm really happy with the wod text editor.
Uli
Am 15.08.2005 um 14:20 schrieb Mike Schrag:
> Interesting -- So you actually went the route of a custom editor
> view for API files rather than the text-editor view like WOD
> files ... I wonder if people would prefer that route for WOD files
> too, or if the text-editor is better?
>
> On Aug 15, 2005, at 7:52 AM, Ulrich Köster wrote:
>
>> Moin Mike,
>>
>> an example to parse an API file.
>>
>> IFile file = null; //a file with extension api
>> ApiModel model = new ApiModel(file);
>> Wodefinitions wodefinitions = model.getWODefinitions(); //may
>> return null
>> Wo wo = wodefinitions.getWo(); //may return null
>> Binding[] bindings = wo.getBindings(); //may return null
>> for(int i = 0; i < bindings.length; i++) {
>> String name = binding.getName(); //may return null
>> boolean isRequired = binding.isRequired();
>> boolean willSet = binding.isWillSet();
>> String defaults = binding.getDefaults(); //may return null
>> System.out.println("Binding Name: " + name + " isRequired: " +
>> isRequired + " willSet: " + willSet + " defaults: " + defaults);
>> }
>>
>>
>> Feel free to add a shortcut to the ApiModel to get the Binding[].
>>
>> Later I'll post some lines about the new build structure.
>>
>> Uli
>> Am 15.08.2005 um 13:34 schrieb Mike Schrag:
>>
>>> Oh -- Also, am I able to use the "API file" API's to get a list
>>> of bindings that I can use for completion proposals in WOD
>>> editor? I would basically just need an API like
>>> bindingsForElementName(String)?
>>>
>>> ms
>>>
>>> On Aug 15, 2005, at 7:32 AM, Mike Schrag wrote:
>>>
>>>
>>>> It looks like the new build system was checked in too (you've
>>>> been a busy bee this weekend, by the way :) )? Can you post
>>>> just a quick overview of what changed and what I would look at
>>>> to hook in the xcode project writer into it?
>>>>
>>>> thanks -- ms
>>>>
>>>> On Aug 15, 2005, at 5:58 AM, Ulrich Köster wrote:
>>>>
>>>>
>>>>
>>>>> Moin,
>>>>>
>>>>> the Api editor is not ready for prime time. As allways:
>>>>> Feedback is welcome.
>>>>>
>>>>> Uli
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>>
>
This archive was generated by hypermail 2.0.0 : Mon Aug 15 2005 - 10:03:14 EDT