Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » creating child windows
creating child windows [message #457434] Fri, 24 June 2005 17:12 Go to next message
Eclipse UserFriend
Originally posted by: tm_trvs.yahoo.com

hi

sorry if this is a repetead post...
i want to my rcp application to open child windows but i don't know how to
do that. until now i just know how to open a modal/non-modal top-level
window
is it possible to have child windows, like in the mdi/child concept?

TIA
tom
Re: creating child windows [message #457435 is a reply to message #457434] Fri, 24 June 2005 17:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Those are called views and editors.

tom travis wrote:
> hi
>
> sorry if this is a repetead post...
> i want to my rcp application to open child windows but i don't know how
> to do that. until now i just know how to open a modal/non-modal
> top-level window
> is it possible to have child windows, like in the mdi/child concept?
>
> TIA
> tom
>

--
Thanks,
Rich Kulp
Re: creating child windows [message #457436 is a reply to message #457435] Fri, 24 June 2005 18:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tm_trvs.yahoo.com

ok, but may i have a non-dockable window? views are always docked and when
detached they became attached as soon as you move into a docking area.
what i want to do is a window like "Find/Replace" which is only moveable
inside workbench. I know that's not the RCP concept, but it was just one
more possibility.

tom
Re: creating child windows [message #457438 is a reply to message #457436] Fri, 24 June 2005 20:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Find/Replace is simply a dialog. It can go anywhere, it just always
stays in front of the eclipse window because the eclipse window is its
parent.

tom travis wrote:
>
> ok, but may i have a non-dockable window? views are always docked and
> when detached they became attached as soon as you move into a docking area.
> what i want to do is a window like "Find/Replace" which is only moveable
> inside workbench. I know that's not the RCP concept, but it was just one
> more possibility.
>
> tom
>

--
Thanks,
Rich Kulp
Re: creating child windows [message #457503 is a reply to message #457438] Mon, 27 June 2005 12:49 Go to previous messageGo to next message
Glenn Marintes is currently offline Glenn MarintesFriend
Messages: 23
Registered: July 2009
Junior Member
If you want to create a child window, just create
a new shell:
shell = new Shell(parentShell, style);

Please read the Shell api for more info about the
styles you can set.

In RCP, you can get the view's shell by calling:
yourView.getViewSite().getShell();

Hence, you can create a child window for the view using a
call to:
new Shell(yourViewsShell, SWT.SHELL_TRIM);
This should create a new non-modal shell.

You might want to add a listener to the shell
so that it stays inside the bounds of the rcp application's
shell.
Re: creating child windows [message #457507 is a reply to message #457503] Mon, 27 June 2005 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tm_trvs.yahoo.com

thanks for your help
Re: creating child windows [message #457509 is a reply to message #457503] Mon, 27 June 2005 14:50 Go to previous message
Eclipse UserFriend
Originally posted by: tm_trvs.yahoo.com

what listener should i use? events are raised for click, move, ... but
only in client area. i should capture an event when user clicks the
caption area and drag the window...
Previous Topic:Viewers and ISafeRunnable
Next Topic:Editing table cells
Goto Forum:
  


Current Time: Fri Apr 26 05:27:59 GMT 2024

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

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

Back to the top