extensibility

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

extensibility

Postby scharf » Tue Sep 02, 2003 3:14 pm

Is it possible to add my own Controls to SWT Designer?

Is it possible to add a new property to the property page of a Control that generates some custom statements?

Why I want this? We have a framework for GUI controls that separates GUI from the GUIModel. The Model is a java.util.Properties like structure a client of a dialog uses. If you add a Control-name pair to the GUIModel, there will be automatically listeners added to the control that keep the state of the control in sync with the GUIModel like datastructure. So the line, I would want to generate looks like this:
Code: Select all
guiModel.add(control,"slotname");


(not really important, I can add the line by hand in the code, but it would be cool :-)


Michael
scharf
 
Posts: 9
Joined: Thu Aug 28, 2003 1:39 pm

Postby admin » Tue Sep 02, 2003 11:07 pm

I.e. you want to be able to add custom properties to already supported controls. Well, technically this is not very hard to implement, but we want to create more general architecture in future, so most probably we will not implement this partitial feature right now.
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest