Java application using JFileChooser , will work in Eclipse plug in or not?
I have written java application which uses JDT ,eclipse 3.6.1 and asks t开发者_高级运维he user to choose a input file using JFileChooser. Now I want to convert this to eclipse plugin , whether JFileChooser will work in eclipse plugin?
Yes it will.
Eclipse is based on SWT, but it doesn't mean you can't use Swing, which is provided by the JVM in which Eclipse usually is executed.
It should work, but it may be troublesome, because eclipse usually abstarcts from teh actual file system through that ressource layer. If you use non-eclipse stuff like that filechooser, you'll always have to worry about keeping file system and eclipse's ressource layer in sync.
精彩评论