Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » What can ControlEditor do?
What can ControlEditor do? [message #453279] Mon, 04 April 2005 05:52 Go to next message
Eclipse UserFriend
Originally posted by: star_sh_china.yahoo.com

Hi!
I'm now very puzzled because I don't know what ControlEditor can do.
In some program, when I delete ControlEditor and setBounds for the control
myself,it also runs very well!

In the API,it says like this:
A ControlEditor is a manager for a Control that appears above a composite
and tracks with the moving and resizing of that composite. It can be used to
display one control above another control. This could be used when editing a
control that does not have editing capabilities by using a text editor or
for launching a dialog by placing a button above a control.

But can someone tell me more about its really use?

Any suggestions are welcomed and appreciated.
Re: What can ControlEditor do? [message #453288 is a reply to message #453279] Mon, 04 April 2005 17:51 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
For the most part, it is the subclasses of ControlEditor that are used -
these are TableEditor and TreeEditor. In the case of Tree and Table, the
ControlEditor subclasses track the position of the cell as it is scrolled
around or the column is resized or the tree is expanded.

"Eckel" <star_sh_china@yahoo.com> wrote in message
news:d2qktf$1gk$1@news.eclipse.org...
> Hi!
> I'm now very puzzled because I don't know what ControlEditor can do.
> In some program, when I delete ControlEditor and setBounds for the control
> myself,it also runs very well!
>
> In the API,it says like this:
> A ControlEditor is a manager for a Control that appears above a composite
> and tracks with the moving and resizing of that composite. It can be used
> to display one control above another control. This could be used when
> editing a control that does not have editing capabilities by using a text
> editor or for launching a dialog by placing a button above a control.
>
> But can someone tell me more about its really use?
>
> Any suggestions are welcomed and appreciated.
>
Re: What can ControlEditor do? [message #453794 is a reply to message #453288] Sat, 09 April 2005 15:40 Go to previous message
Eclipse UserFriend
Originally posted by: star_sh_china.yahoo.com

To Veronika Irvine:
Thx very much!!!
Now I know it's very usefull when it's used as TableEditor and
TreeEditor.
But I still have a little problem about ControlEditor .
In the API:"...or for launching a dialog by placing a button above a
control".
But why used a ControlEditor here? I don't think needing a ControlEditor
here to
launch a dialog. Only one button can do it very well.




"Veronika Irvine" <veronika_irvine@oti.com> д
Previous Topic:swt/jface gui builder and swing to swt/jface migration tool
Next Topic:Cusomtizing TreeViewer
Goto Forum:
  


Current Time: Thu Apr 25 07:59:22 GMT 2024

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

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

Back to the top