Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Voicetools » Extending the getting started example
Extending the getting started example [message #11010] Tue, 21 February 2006 10:12 Go to next message
Eclipse UserFriend
Originally posted by: mshaw.tesco.net

Hi,

I'm looking at creating a launch configuration that will start a voice
modem connection over the internal phone system to a local voice xml
browser.

I've created implementations of IBrowserConfigurationUI and
IVoiceXMLBrowser and put them in a browser element in an
org.eclipse.vtp.launching.voiceXMLBrowser extension point. Currently
the IVoiceXMLBrowser implementation is all stubs and the
IBrowserConfigurationUI has stubs that show which methods are being
called (just sends method name to System.out) for all methods except
drawConfigurationUI which should also draw a label and a text box. Also
isValid always returns true.

When I run the plugin and select "Run..." I see a message telling me
that the IBrowserConfigurationUI class has been loaded and the new
browser name is in the "Browser:" drop down, but when I select it all
the controls below the "URL:" drop down disappear and I don't see any of
my ones. I also don't see any messages from the IBrowserConfigurationUI
class indicating that any of its methods are getting called. No
exceptions are being caught and I can go back to the "Tellme VoiceXML
Browser" configuration without any problems.

What's the silly mistake I've made? :-)

Regards,

Marcus.
Re: Extending the getting started example [message #11022 is a reply to message #11010] Tue, 21 February 2006 23:48 Go to previous messageGo to next message
Eclipse UserFriend
Hard to say without code, but I have a few guesses. Maybe you need to make
sure in the drawConfigurationUI method that you're properly setting
GridLayouts and GridDatas on the controls?

Here is a *very* simple example I use to test. It doesn't do much, and
honestly is probably in a funny state since I just throw code in to test,
but it should bring up a UI. I'll also attach a simple stub implementation
of IVoiceXMLBrowser that has a few examples here and there of how to throw
events.

Hope that helps, and let us know how it goes!

"Marcus Shaw" <mshaw@tesco.net> wrote in message
news:dtep1r$g77$1@utils.eclipse.org...
> Hi,
>
> I'm looking at creating a launch configuration that will start a voice
> modem connection over the internal phone system to a local voice xml
> browser.
>
> I've created implementations of IBrowserConfigurationUI and
> IVoiceXMLBrowser and put them in a browser element in an
> org.eclipse.vtp.launching.voiceXMLBrowser extension point. Currently
> the IVoiceXMLBrowser implementation is all stubs and the
> IBrowserConfigurationUI has stubs that show which methods are being
> called (just sends method name to System.out) for all methods except
> drawConfigurationUI which should also draw a label and a text box. Also
> isValid always returns true.
>
> When I run the plugin and select "Run..." I see a message telling me
> that the IBrowserConfigurationUI class has been loaded and the new
> browser name is in the "Browser:" drop down, but when I select it all
> the controls below the "URL:" drop down disappear and I don't see any of
> my ones. I also don't see any messages from the IBrowserConfigurationUI
> class indicating that any of its methods are getting called. No
> exceptions are being caught and I can go back to the "Tellme VoiceXML
> Browser" configuration without any problems.
>
> What's the silly mistake I've made? :-)
>
> Regards,
>
> Marcus.



Re: Extending the getting started example [message #11035 is a reply to message #11022] Wed, 22 February 2006 09:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mshaw.tesco.net

Hi Brent,

Thanks for the example. Unfortunately I get the same behavior I am
seeing with my classes, i.e. browser name appears in the drop down but
no user interface controls are shown. I wonder if I haven't supplied
enough information in my plugin.xml. All I have is this:

<extension
point="org.eclipse.vtp.launching.voiceXMLBrowser">
<browser
class="brent.testcase.MyVoiceXMLBrowser"
configurationUIClass="brent.testcase.IBrowserConfigurationUI "
id="brent.testcase.vxmlbrowser"
launchInputView="true"
name="Test Browser"/>
</extension>


Thanks for your help.

Regards,

Marcus.


Brent D. Metz wrote:

>
> Here is a *very* simple example I use to test. It doesn't do much, and
> honestly is probably in a funny state since I just throw code in to test,
> but it should bring up a UI. I'll also attach a simple stub implementation
> of IVoiceXMLBrowser that has a few examples here and there of how to throw
> events.
>
> Hope that helps, and let us know how it goes!
Re: Extending the getting started example [message #11046 is a reply to message #11035] Wed, 22 February 2006 15:22 Go to previous messageGo to next message
Eclipse UserFriend
Here is what is in my plugin.xml:

<extension
point="org.eclipse.vtp.launching.voiceXMLBrowser">
<browser
class="brent.testcase.MyVoiceXMLBrowser"
id="brent.testcase.browser"
name="Brent's Amazing VoiceXML Browser"
configurationUIClass="brent.testcase.MyBrowserUI"
launchInputView="true"/>
</extension>

I think the problem is the configurationUIClass line. Let me attach my
entire project so you can try it out if you'd like. In the meantime I'll
build it and try deploying it to a fresh copy of the VTP on another machine
to make sure it's working for me here.

"Marcus Shaw" <mshaw@tesco.net> wrote in message
news:dth99u$q8k$1@utils.eclipse.org...
> Hi Brent,
>
> Thanks for the example. Unfortunately I get the same behavior I am
> seeing with my classes, i.e. browser name appears in the drop down but
> no user interface controls are shown. I wonder if I haven't supplied
> enough information in my plugin.xml. All I have is this:
>
> <extension
> point="org.eclipse.vtp.launching.voiceXMLBrowser">
> <browser
> class="brent.testcase.MyVoiceXMLBrowser"
> configurationUIClass="brent.testcase.IBrowserConfigurationUI "
> id="brent.testcase.vxmlbrowser"
> launchInputView="true"
> name="Test Browser"/>
> </extension>
>
>
> Thanks for your help.
>
> Regards,
>
> Marcus.
>
>
> Brent D. Metz wrote:
>
>>
>> Here is a *very* simple example I use to test. It doesn't do much, and
>> honestly is probably in a funny state since I just throw code in to test,
>> but it should bring up a UI. I'll also attach a simple stub
>> implementation
>> of IVoiceXMLBrowser that has a few examples here and there of how to
>> throw
>> events.
>>
>> Hope that helps, and let us know how it goes!


Re: Extending the getting started example [message #11058 is a reply to message #11046] Thu, 23 February 2006 08:59 Go to previous message
Eclipse UserFriend
Originally posted by: mshaw.tesco.net

Hi Brent,

Thanks for the project. It's a long time since I last did a plugin and
I had missed some of the required ones. My one is now drawing a UI so
I'll see how far I can take it.

Regards,

Marcus.
Re: Extending the getting started example [message #573505 is a reply to message #11010] Tue, 21 February 2006 23:48 Go to previous message
Eclipse UserFriend
Hard to say without code, but I have a few guesses. Maybe you need to make
sure in the drawConfigurationUI method that you're properly setting
GridLayouts and GridDatas on the controls?

Here is a *very* simple example I use to test. It doesn't do much, and
honestly is probably in a funny state since I just throw code in to test,
but it should bring up a UI. I'll also attach a simple stub implementation
of IVoiceXMLBrowser that has a few examples here and there of how to throw
events.

Hope that helps, and let us know how it goes!

"Marcus Shaw" <mshaw@tesco.net> wrote in message
news:dtep1r$g77$1@utils.eclipse.org...
> Hi,
>
> I'm looking at creating a launch configuration that will start a voice
> modem connection over the internal phone system to a local voice xml
> browser.
>
> I've created implementations of IBrowserConfigurationUI and
> IVoiceXMLBrowser and put them in a browser element in an
> org.eclipse.vtp.launching.voiceXMLBrowser extension point. Currently
> the IVoiceXMLBrowser implementation is all stubs and the
> IBrowserConfigurationUI has stubs that show which methods are being
> called (just sends method name to System.out) for all methods except
> drawConfigurationUI which should also draw a label and a text box. Also
> isValid always returns true.
>
> When I run the plugin and select "Run..." I see a message telling me
> that the IBrowserConfigurationUI class has been loaded and the new
> browser name is in the "Browser:" drop down, but when I select it all
> the controls below the "URL:" drop down disappear and I don't see any of
> my ones. I also don't see any messages from the IBrowserConfigurationUI
> class indicating that any of its methods are getting called. No
> exceptions are being caught and I can go back to the "Tellme VoiceXML
> Browser" configuration without any problems.
>
> What's the silly mistake I've made? :-)
>
> Regards,
>
> Marcus.



Re: Extending the getting started example [message #573536 is a reply to message #11022] Wed, 22 February 2006 09:01 Go to previous message
Eclipse UserFriend
Originally posted by: mshaw.tesco.net

Hi Brent,

Thanks for the example. Unfortunately I get the same behavior I am
seeing with my classes, i.e. browser name appears in the drop down but
no user interface controls are shown. I wonder if I haven't supplied
enough information in my plugin.xml. All I have is this:

<extension
point="org.eclipse.vtp.launching.voiceXMLBrowser">
<browser
class="brent.testcase.MyVoiceXMLBrowser"
configurationUIClass="brent.testcase.IBrowserConfigurationUI "
id="brent.testcase.vxmlbrowser"
launchInputView="true"
name="Test Browser"/>
</extension>


Thanks for your help.

Regards,

Marcus.


Brent D. Metz wrote:

>
> Here is a *very* simple example I use to test. It doesn't do much, and
> honestly is probably in a funny state since I just throw code in to test,
> but it should bring up a UI. I'll also attach a simple stub implementation
> of IVoiceXMLBrowser that has a few examples here and there of how to throw
> events.
>
> Hope that helps, and let us know how it goes!
Re: Extending the getting started example [message #573556 is a reply to message #11035] Wed, 22 February 2006 15:22 Go to previous message
Eclipse UserFriend
Here is what is in my plugin.xml:

<extension
point="org.eclipse.vtp.launching.voiceXMLBrowser">
<browser
class="brent.testcase.MyVoiceXMLBrowser"
id="brent.testcase.browser"
name="Brent's Amazing VoiceXML Browser"
configurationUIClass="brent.testcase.MyBrowserUI"
launchInputView="true"/>
</extension>

I think the problem is the configurationUIClass line. Let me attach my
entire project so you can try it out if you'd like. In the meantime I'll
build it and try deploying it to a fresh copy of the VTP on another machine
to make sure it's working for me here.

"Marcus Shaw" <mshaw@tesco.net> wrote in message
news:dth99u$q8k$1@utils.eclipse.org...
> Hi Brent,
>
> Thanks for the example. Unfortunately I get the same behavior I am
> seeing with my classes, i.e. browser name appears in the drop down but
> no user interface controls are shown. I wonder if I haven't supplied
> enough information in my plugin.xml. All I have is this:
>
> <extension
> point="org.eclipse.vtp.launching.voiceXMLBrowser">
> <browser
> class="brent.testcase.MyVoiceXMLBrowser"
> configurationUIClass="brent.testcase.IBrowserConfigurationUI "
> id="brent.testcase.vxmlbrowser"
> launchInputView="true"
> name="Test Browser"/>
> </extension>
>
>
> Thanks for your help.
>
> Regards,
>
> Marcus.
>
>
> Brent D. Metz wrote:
>
>>
>> Here is a *very* simple example I use to test. It doesn't do much, and
>> honestly is probably in a funny state since I just throw code in to test,
>> but it should bring up a UI. I'll also attach a simple stub
>> implementation
>> of IVoiceXMLBrowser that has a few examples here and there of how to
>> throw
>> events.
>>
>> Hope that helps, and let us know how it goes!


Re: Extending the getting started example [message #573603 is a reply to message #11046] Thu, 23 February 2006 08:59 Go to previous message
Eclipse UserFriend
Originally posted by: mshaw.tesco.net

Hi Brent,

Thanks for the project. It's a long time since I last did a plugin and
I had missed some of the required ones. My one is now drawing a UI so
I'll see how far I can take it.

Regards,

Marcus.
Previous Topic:Running the Getting Started example
Next Topic:Feedback on VTP's future
Goto Forum:
  


Current Time: Fri Apr 19 20:37:01 GMT 2024

Powered by FUDForum. Page generated in 0.03303 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top