Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » FileDialog Rap 3.0+ Filter
FileDialog Rap 3.0+ Filter [message #1721724] Fri, 29 January 2016 13:42 Go to next message
Tiburon T is currently offline Tiburon TFriend
Messages: 61
Registered: October 2011
Member
Hello,

we really like the new FileDialog, especially the drag and drop functionality is a great addition.

Are there plans to add the filter functionality that is provided in the SWT counterpart? [1] Would that be part of 3.1? We really need to limit the number of files a user can upload. Otherwise a user would be notified of unsuitable files after the dialog is closed, the files would be uploaded to the server although they are unacceptable, etc... It would be great if there was at least a method to add custom validators or anything of that nature. Or are we missing something here, and this is already possible?

Thanks,
Tibu

[1]http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fswt%2Fwidgets%2FFileDialog.html
Re: FileDialog Rap 3.0+ Filter [message #1721730 is a reply to message #1721724] Fri, 29 January 2016 14:26 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,
there are some differences between the API for filtering in SWT and the
one used by browser. In SWT it's based on file extension, in browser on
file MIME type. More over, not all supported by RAP browsers can filter
files shown in "File browse" native dialog. That's the reason why this
feature is not implemented. See this bugzilla:
433501: [FileDialog] Filtering of extensions, path and filename not
possible anymore
https://bugs.eclipse.org/bugs/show_bug.cgi?id=433501
Regards,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: FileDialog Rap 3.0+ Filter [message #1721732 is a reply to message #1721724] Fri, 29 January 2016 14:39 Go to previous messageGo to next message
Tiburon T is currently offline Tiburon TFriend
Messages: 61
Registered: October 2011
Member
Thanks Ivan!

One more quick question: How do we translate the dialog? I tried adding a org.eclipse.swt.internal.SWTMessages_de.properties and put a translation for the key SWT_Add into it, but the dialog is still english. (Run parameters "-nl de" and "-Duser.language=de")

[Updated on: Fri, 29 January 2016 14:40]

Report message to a moderator

Re: FileDialog Rap 3.0+ Filter [message #1721736 is a reply to message #1721732] Fri, 29 January 2016 15:02 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
That's strange... the strings must be in exactly this location
SWTMessages resource bundle and the keys are SWT_Add, SWT_Browse, SWT_OK...

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:RAP and Nebula: Impressive!
Next Topic:Text and scroll
Goto Forum:
  


Current Time: Fri Apr 26 11:25:50 GMT 2024

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

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

Back to the top