Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Getting Eclipse workbench as a Component
Getting Eclipse workbench as a Component [message #214114] Sun, 04 September 2005 13:36 Go to next message
Eclipse UserFriend
Originally posted by: david.nitenberg.gmail.com

Hello,

I'd like to open a JFileChooser window from the main workbench but I have
a problem : I am using the method JFileChooser#showOpenDialog(Component c)
but I don't know what parent Component to put as an argument. I tried to
look at IWorkbenchWindodow and IWorkbench without success.

If anyone could help me finding a parent Component representing the main
window, I'd appreciate it :-)

Thanx,
David
Re: Getting Eclipse workbench as a Component [message #214152 is a reply to message #214114] Mon, 05 September 2005 09:27 Go to previous messageGo to next message
Eddie Man is currently offline Eddie ManFriend
Messages: 102
Registered: July 2009
Senior Member
You can pass the null to the JFileChooser, but why do not use
org.eclipse.swt.widgets.FileDialog instead?

David wrote:
> Hello,
>
> I'd like to open a JFileChooser window from the main workbench but I
> have a problem : I am using the method
> JFileChooser#showOpenDialog(Component c) but I don't know what parent
> Component to put as an argument. I tried to look at IWorkbenchWindodow
> and IWorkbench without success.
>
> If anyone could help me finding a parent Component representing the main
> window, I'd appreciate it :-)
>
> Thanx,
> David
>
Re: Getting Eclipse workbench as a Component [message #214184 is a reply to message #214152] Mon, 05 September 2005 15:56 Go to previous message
Eclipse UserFriend
Originally posted by: david.nitenberg.gmail.com

thanx a lot for our answer Eddie.

You are totally right, I'm going to use the SWT API :-) , I was just used
to use Swing.
Previous Topic:"Extract Superclass" refactoring in JDT?
Next Topic:Getting the Editor and number of files opened
Goto Forum:
  


Current Time: Sat Dec 21 16:08:34 GMT 2024

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

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

Back to the top