Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [vtp-dev] Browser API Tutorial


For #1, sorry for the confusion. I think this needs to be clearer in the tutorial. setDefaults()/initializeFrom() are concepts lifted from Eclipse's ILaunchConfigurationTab. There is a tutorial that talks about the APIs here:

http://www.eclipse.org/articles/Article-Launch-Framework/launch.html

Its description of the two functions is:

"In general terms, the first two methods copy values from the tab to a working copy, while the third method copies values from a working copy to the tab.  The setDefaults() method is called when a new config is created. "

"The initializeFrom() method does the opposite of the performApply() method.  It reads attribute values out of the config argument, and sets these values in the corresponding GUI widgets"

#2: Right now isValid is a simple boolean function and error messages would have to be inserted as widgets inside the configuration pane. This is something that I think needs better integration with the launch configuration UI, and I'd suggest you write the code with this in mind so that it would be simple to change the return type later as we modify the interface. I've created a bugzilla to track the enhancement:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=136115


--
Brent D. Metz
Enterprise Voice Tools
bdmetz@xxxxxxxxxx
"Simple things should be simple, and complex things should be possible." - Alan Kay



Dirk Schnelle <dirk.schnelle@xxxxxxxxxxxxx>
Sent by: vtp-dev-bounces@xxxxxxxxxxx

04/11/2006 06:13 AM

Please respond to
Voice Tools general developers <vtp-dev@xxxxxxxxxxx>

To
Voice Tools general developers <vtp-dev@xxxxxxxxxxx>
cc
Subject
Re: [vtp-dev] Browser API Tutorial





Hi all,

here are some more questions regarding the 'Getting Started' manual.

1. What is the difference between IBrowserConfigurationUI.setDefaults()
and IBrowserConfigurationUI.initializeFrom()?

As far as I understand the javadoc, the configuration values should be
stored in setDefault() whereas in initializeFrom() these values are
taken and displayed in the UI.

The example shows a simple copy of that.

I need an answer if I got it right to finish my work on the JVoiceXml
integration.

2. Unfortunately the isValid() has very little interaction capabilities
and is not explained in the example.

My main problem is how to provide the information about the cause of a
failed validation to the user.

Is there a common concept for this?

/dirk

_______________________________________________
vtp-dev mailing list
vtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/vtp-dev


Back to the top