Mike,

I have been following that discussion, and I think I see how it related to my 
problem.

I have explored this a bit and see how I can query the customizations and how 
to programmatically
select them. I've got that much working without needing to change any XViewer 
code.

The chooser widget also needs to listen to change events - which means adding 
event notification
APIs to XViewer. In addition, when a customization is selected, that same 
customization is not
the one that is passed through the update mechanism (ie into 
CustomizeManager.loadCustomization()),
so even when the notification of that event is received, the CustomizeData 
object received is a new
one, not the one the user selected...making it impossible to determine which 
one the user selected
(so it can become selected in the chooser). I'm not sure how to best solve that 
problem, yet.

So, from what I've gathered, the answers to first question is:
A) Does this exist?  No.

As for my second question:
B) Would this be useful to anyone else?

I don't know if anyone else would use this, but since this is going to involve 
some plumbing
into XViewer, it might be best to build this widget into the XViewer sources, 
rather than as
part of the code for our own project.

Chris



On 12/10/2010 6:25 PM, Stapleton, Mike wrote:
> Chris,
> Follow the chain of emails between Donald and I over the past few days and 
> you will see that this is exactly what he helped me with. Works really sweat 
> to but it isn't something you'll go looking for so the example sheds much 
> light on how to do certain types of functionality like this.
> 
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] 
> On Behalf Of Chris Merrill
> Sent: Friday, December 10, 2010 2:46 PM
> To: [email protected]
> Subject: [nebula-dev] XViewer - customization selection widget?
> 
> We need a drop-down chooser to let the user pick a customization quickly 
> (without
> going through the dialog).  Before I embarked on building one, I wanted to 
> make
> sure I wasn't missing one that was already in place. I looked and did not see
> anything, but wanted to be sure.
> 
> This is what I'm looking for:
> The chooser would to show the currently-selected customization name - and 
> drop-down
> to show the others. Optionally, it would be nice to also have an entry to 
> take the
> user to the customization dialog. So the options in the list would look like:
> 
> -- Table Default --
> -- Current Table View --
> customization #1
> customization #2
> my customization
> customize....
> 
> The last one would invoke the XViewerCustomizeDialog.  The "current" entry 
> would
> only be there if the current settings are not saved.  The widget would also
> need to listen to the XViewer to see when it changes customizations via the 
> dialog.
> 
> A) Does this exist?
> B) Would this be useful to anyone else?
> 
> TIA!
> Chris
> 
> 
> 


-- 
------------------------------------------------------------------------ -
Chris Merrill                           |  Web Performance, Inc.
[email protected]                |  http://webperformance.com
919-433-1762                            |  919-845-7601

Web Performance: Website Load Testing Software & Services
------------------------------------------------------------------------ -
_______________________________________________
nebula-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/nebula-dev

Reply via email to