I am not sure if my question seems too naive but I did look around in the documentation for any probable names of relevant classes. For instance I looked for FileDialog that eclipse uses, or SaveAsDialog nad saveas .... I haven't been able to locate any thing useful. Please at least provide a pointer if I am missing something.
The other option that I have is to use plain old JFileChooser. But in that case its look and feel will be different from that of IntelliJ. Please help.
try using FileChooserFactory.createFileChooser(...). You need to define a FileChooserDescriptor. Not sure if you can change the name of the "Open" button to "Save". There is nothing such as "Save as..." in intelij afaik.
I am not sure if my question seems too naive but I did look around in the documentation for any probable names of relevant classes. For instance I looked for FileDialog that eclipse uses, or SaveAsDialog nad saveas .... I haven't been able to locate any thing useful. Please at least provide a pointer if I am missing something.
The other option that I have is to use plain old JFileChooser. But in that case its look and feel will be different from that of IntelliJ. Please help.
thanks
dk
Hi Dhwani,
try using FileChooserFactory.createFileChooser(...). You need to define a FileChooserDescriptor. Not sure if you can change the name of the "Open" button to "Save". There is nothing such as "Save as..." in intelij afaik.
And you're in the wrong forum here. You should try the "Open API" forum.
http://intellij.net/forums/forum.jspa?forumID=23
Regards,
Dan
If SaveDialog is what you are looking for, then use this: