Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Upload FileDialog customization?
Upload FileDialog customization? [message #1225702] Mon, 30 December 2013 14:55 Go to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

Hi all,
is it possible to customize the Upload FileDialog?
As you can see in the attached image, it is quite large (in my case I am using the single file option) and has no graphic decoration.
The result is therefore not optimal for an end user point of view.
Is there a chance to make it small and/or decorate it?
Thank you very much.
Vincenzo
Re: Upload FileDialog customization? [message #1228010 is a reply to message #1225702] Mon, 06 January 2014 07:41 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Vincenzo,
you could subclass the FileDialog and override the
FileDialog#prepareOpen method. See also FileDialog#initializeBounds for
original dialog bounds calculation implementation.
HTH,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Upload FileDialog customization? [message #1228448 is a reply to message #1228010] Tue, 07 January 2014 08:56 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

.... and of course, your contributions are welcome!

I also don't see why the SINGLE FileDialog should consume any extra
space. Should we open an enhancement request for it?

Regards,
Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Upload FileDialog customization? [message #1228592 is a reply to message #1228448] Tue, 07 January 2014 15:13 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

Hi Ivan & Ralf,
thanks.
A first improvement could be this (lines with //+ remark):

  private void initializeBounds() {
    Point prefSize = shell.computeSize( SWT.DEFAULT, SWT.DEFAULT );
    if (isMulti()) { //+
        prefSize.y += 165; // ensure space for five files
    }//+

that is:
add extra space only for multiple upload

Vincenzo
Re: Upload FileDialog customization? [message #1229341 is a reply to message #1228592] Thu, 09 January 2014 08:37 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Vincenzo,
the single file upload FileDialog height has been fixed as suggested in
git master.
Best,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Upload FileDialog customization? [message #1229414 is a reply to message #1229341] Thu, 09 January 2014 11:47 Go to previous message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

Hi Ivan,
Great!
Thanks!
Vincenzo
Previous Topic:How to improve the performance of the rap app when many widgets are used?
Next Topic:Problem with new RWT.PRELOADED_ITEMS
Goto Forum:
  


Current Time: Thu Apr 25 08:33:06 GMT 2024

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

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

Back to the top