Capture selection in the designer

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Capture selection in the designer

Postby Eee » Fri Mar 14, 2008 4:50 pm

Hi,

First off: fantastic product!! Been using it for 2 years now and the efficiency we've gained from it has been tremendous. Thank you.

In this plug-in I'm writing, I would like to capture the user's selections as they work in the designer. Is there any way to do that? Are the widget selections published, via ISelectionProvider, or otherwise? Essentially here's the workflow I'm trying to address:
    1. user builds UI in Designer
    2. user opens my plugin's view
    3. user selects widget in Designer's Design View or the Component Tree
    4. result: my plugin's view receives the selection notification and extracts the component type (button, label, text, composite, etc.), widget name, text value, foreground color, background color, etc..
Is this at all possible to do?

Thank you,
E.
Eee
 
Posts: 2
Joined: Fri Mar 14, 2008 4:31 pm

Re: Capture selection in the designer

Postby Eric Clayberg » Sat Mar 15, 2008 6:30 pm

Eee wrote:I would like to capture the user's selections as they work in the designer. Is there any way to do that?

At the moment, there is no way to do that.

In the future, we may be able to publish the widget selection somehow.

We would also probably need to provide an API with which you could interact with that selection.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Capture selection in the designer

Postby Eee » Sun Mar 16, 2008 3:55 pm

Thanks for the reply, Eric.
What is the process in which that could happen - should I somehow submit a formal feature request?

Best,
E.
Eee
 
Posts: 2
Joined: Fri Mar 14, 2008 4:31 pm

Re: Capture selection in the designer

Postby Eric Clayberg » Sun Mar 16, 2008 4:49 pm

Eee wrote:What is the process in which that could happen - should I somehow submit a formal feature request?

That would be an ideal. Send an e-mail to wb-support@instantiations.com and provide as much detail about any proposed API as you can.

Use case scenarios would also be helpful so that we can understand what your ultimate goal is.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests