Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] How can I get the current used file extension of a FileDialog


This was recently dealt with in http://bugs.eclipse.org/bugs/show_bug.cgi?id=24877 .  If you have further questions about this please post them to the eclipse newsgroup.  Thanks.

Grant




"vs" <xiaotengfei@xxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

04/14/2003 01:08 AM
Please respond to platform-swt-dev

       
        To:        <platform-swt-dev@xxxxxxxxxxx>
        cc:        
        Subject:        [platform-swt-dev] How can I get the current used file extension of a FileDialog



This is my code:

       FileDialog fileDialog = new FileDialog(shell, SWT.SAVE);

       fileDialog.setFilterExtensions(new String[] {"*.bmp", "*.jpg"});
       fileDialog.setFilterNames(new String[] { "BMP (*.bmp)", "JPEG (*.jpg)"});

       String filename = fileDialog.open();

How can I get the current used file extension?

Thanks,
vs



Back to the top