Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Launch new window from a view
Launch new window from a view [message #655182] Fri, 18 February 2011 15:11 Go to next message
Francisco Cifuentes is currently offline Francisco CifuentesFriend
Messages: 4
Registered: February 2011
Junior Member
Hello everybody,

I'm developing a prototype using RAP, basically it must work in this way:
-I draw a set of figures and when i do click over some, should open a window over the drawing with a particular content about it(not only textual content, else buttons and form elements too).
My problem is that i don't know how to open a new floating window from my current View.
This problem is because i haven't really a good knowledge about of SWT, RWT or other GUI toolkit on Java, in fact, I'm learning and reading now about this.
Excuse me if this is a really basic question but you are the unique that i can ask and i haven't found explicit information on the web.
Please excuse my english too.
Thank you in advance.
Re: Launch new window from a view [message #655281 is a reply to message #655182] Fri, 18 February 2011 22:38 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Francisco,

In short, you can open a dialog window in SWT like this:

Shell dialog = new Shell( parentShell, SWT.DIALOG_TRIM );
dialog.setLayout( ... );
.... add contents to dialog shell
dialog.pack()
dialog.open();

You can get the parent shell from ViewPart -> getSite().getShell().

If you want to learn SWT by example, you should check out the SWT
snippets: http://eclipse.org/swt/snippets

HTH, Ralf

--
Ralf Sternberg

Twitter: @ralfstx
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
icon14.gif  Re: Launch new window from a view [message #655295 is a reply to message #655281] Sat, 19 February 2011 02:11 Go to previous message
Francisco Cifuentes is currently offline Francisco CifuentesFriend
Messages: 4
Registered: February 2011
Junior Member
Thank you Ralf!

That is what i did need, i'm very grateful with you.
Regards,

Francisco
Previous Topic:[SWT, RAP]: scrolled composite inside a tabFolder
Next Topic:multiple sets of perspectives
Goto Forum:
  


Current Time: Thu Mar 28 19:30:01 GMT 2024

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

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

Back to the top