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 - 09:24:59 EDT