Filemanager [message #215953] |
Thu, 25 March 2004 15:41  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Is there a Filemanager I can use in eclipse to point to any directory,
especially my plugin directory, or should I pull out the swing file mnager?
Is the best way to open files in the plugin directory by using
java.io.File, or can I use an eclipse file? or are eclipse files always
eclipse manageed resources?
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1
GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
|
|
|
|
Re: Filemanager [message #216013 is a reply to message #215985] |
Thu, 25 March 2004 17:53  |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Michael Keppler wrote:
> CL [dnoyeb] Gilbert schrieb:
>
>> Is there a Filemanager I can use in eclipse to point to any directory,
>> especially my plugin directory, or should I pull out the swing file
>> mnager?
>
>
> Please stop double posting. That will not get you any answers faster.
> I use org.eclipse.ui.dialogs.ResourceSelectionDialog to let the user
> select ressources (which must be in the workspace), for files outside
> the workspace (like your plugin dir) you may use a FileSelectionDialog
> instead.
>
Its not a double post, its a more focused post now that I investigated
further.
>> Is the best way to open files in the plugin directory by using
>> java.io.File, or can I use an eclipse file? or are eclipse files
>> always eclipse manageed resources?
>
>
> Avoid java.io.File and use the IFile interface of Eclipse instead. Many
> other API functions in Eclipse use IFile or IResource so that may be
> easier if your plugin grows.
>
> Ciao, Michael.
I know, but I cant seem to get an IResource outside of project
directory. What I really need is a package explorer of my own, or that
I can modify. But these dialogs well certainly help. Thanks!
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1
GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
|
|
|
Powered by
FUDForum. Page generated in 0.02456 seconds