Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » cannot drag a file
cannot drag a file [message #154663] Wed, 31 May 2006 20:43 Go to next message
Eclipse UserFriend
Originally posted by: rcohen.articque.com

Hi
I work with eclipse since 2 months now and still cannot find the way to simply drag a text
file from windows explorer to eclipse for editing... This is ridiculous ...

I am forced to use the menu open file, or to use another editor !!

Thanks for any info
Riccardo
Re: cannot drag a file [message #154677 is a reply to message #154663] Wed, 31 May 2006 20:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jefmyers.us.ibm.com

Most of Eclipse's tooling is project oriented. You can drag and drop
files into a project (which will copy them into the project), then edit
it by opening the files in the project. If you need to edit files from
an external location, create a project with a linked location to the
target directory you're working from.

Hope this helps,
- Jeff
Re: cannot drag a file [message #154693 is a reply to message #154677] Wed, 31 May 2006 21:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rcohen.articque.com

Thanks for your answer.

I understand and appreciate the project orientation of eclipse.
But in fact I cannot understand why file dragging is not possible since you can open any
file in the disk with the menu file/open.

I have all source of the project in the project directory, of course. But I have also some
passwords in another place, some tempory notes in another, some data files are placed
somewhere else etc.
Eclipse oblige me to have another text editor like Notepad++ or Ultraedit always open !
this is quite annoying.


I tried to add a new simple project but I cannot find the way to "link" the location C:\
to this project. I tried with a java project and it refuses to add C:\ (C:\ is not a valid
location for a linked resource) in the source folders.

Thanks for any help.


Jeff Myers wrote:
> Most of Eclipse's tooling is project oriented. You can drag and drop
> files into a project (which will copy them into the project), then edit
> it by opening the files in the project. If you need to edit files from
> an external location, create a project with a linked location to the
> target directory you're working from.
>
> Hope this helps,
> - Jeff

--
Très cordialement,

Riccardo Cohen
ligne directe : 02-47-49-63-24
-------------------------------------------
Articque
http://www.articque.com
Moulin des Roches
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49
Re: cannot drag a file (Fileopen plugin) [message #155016 is a reply to message #154693] Fri, 02 June 2006 10:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rcohen.articque.com

I read on eclipse bug database (https://bugs.eclipse.org/bugs/show_bug.cgi?id=13221#c5)
that there was a plugin for eclipse 2 that allow dragging any file : Fileopen plugin. But
I could not find it from web search or sourceforge.
Does someone know where it is ?
Thanks

Riccardo Cohen wrote:
> Thanks for your answer.
>
> I understand and appreciate the project orientation of eclipse.
> But in fact I cannot understand why file dragging is not possible since
> you can open any file in the disk with the menu file/open.
>
> I have all source of the project in the project directory, of course.
> But I have also some passwords in another place, some tempory notes in
> another, some data files are placed somewhere else etc.
> Eclipse oblige me to have another text editor like Notepad++ or
> Ultraedit always open ! this is quite annoying.
>
>
> I tried to add a new simple project but I cannot find the way to "link"
> the location C:\ to this project. I tried with a java project and it
> refuses to add C:\ (C:\ is not a valid location for a linked resource)
> in the source folders.
>
> Thanks for any help.
>
>
> Jeff Myers wrote:
>> Most of Eclipse's tooling is project oriented. You can drag and drop
>> files into a project (which will copy them into the project), then
>> edit it by opening the files in the project. If you need to edit
>> files from an external location, create a project with a linked
>> location to the target directory you're working from.
>>
>> Hope this helps,
>> - Jeff
>

--
Très cordialement,

Riccardo Cohen
ligne directe : 02-47-49-63-24
-------------------------------------------
Articque
http://www.articque.com
Moulin des Roches
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49
Re: cannot drag a file [message #155740 is a reply to message #154693] Tue, 06 June 2006 11:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse4.rizzoweb.com

Riccardo Cohen wrote:
> Thanks for your answer.
>
> I understand and appreciate the project orientation of eclipse.
> But in fact I cannot understand why file dragging is not possible since
> you can open any file in the disk with the menu file/open.
>
> I have all source of the project in the project directory, of course.
> But I have also some passwords in another place, some tempory notes in
> another, some data files are placed somewhere else etc.
> Eclipse oblige me to have another text editor like Notepad++ or
> Ultraedit always open ! this is quite annoying.
>
>
> I tried to add a new simple project but I cannot find the way to "link"
> the location C:\ to this project. I tried with a java project and it
> refuses to add C:\ (C:\ is not a valid location for a linked resource)
> in the source folders.

Eclipse smartly refuses to let you create a linked resource at the root
of a drive - because Eclipse indexes and tracks all directories in all
projects, that would cause it to track your entire hard drive contents -
not something you probably want it trying to do.
You'll need to create links to each directory where you have files that
you want to edit with Eclipse. If they are somewhat organized it
shouldn't be too much trouble. Alternatively, you could simply either
move those files into a simple project in your Eclipse workspace or
create a new project that is rooted elsewhere on your hard drive (not in
the workspace directory).

Hope this helps,
Eric
Re: cannot drag a file [message #155910 is a reply to message #155740] Wed, 07 June 2006 14:15 Go to previous message
Eclipse UserFriend
Originally posted by: rcohen.articque.com

Thanks for your help

You're right I don't want eclipse to track the entire hard drive.

All I want is to drag any file to edit in Eclipse instead of opening another editor. It
seems impossible unless I re-write a fileopen plugin which I'm not able to do for now. And
the solution of having a pseudo-project on a specific folder is not acceptable, my text,
temp etc. may be anywhere. (sometimes I use the current open ide to modify some things
that are totally unrelated, just to avoid opening another editor)

I really do not understand this limit, in particular if you know that the menu file/open
work for all files in the disk... The only thing we have to do is to connect a drag
operation with an open function, and really if I knew how to program Eclipse I would
definitively do it !

:)

Eric Rizzo wrote:
> Riccardo Cohen wrote:
>> Thanks for your answer.
>>
>> I understand and appreciate the project orientation of eclipse.
>> But in fact I cannot understand why file dragging is not possible
>> since you can open any file in the disk with the menu file/open.
>>
>> I have all source of the project in the project directory, of course.
>> But I have also some passwords in another place, some tempory notes in
>> another, some data files are placed somewhere else etc.
>> Eclipse oblige me to have another text editor like Notepad++ or
>> Ultraedit always open ! this is quite annoying.
>>
>>
>> I tried to add a new simple project but I cannot find the way to
>> "link" the location C:\ to this project. I tried with a java project
>> and it refuses to add C:\ (C:\ is not a valid location for a linked
>> resource) in the source folders.
>
> Eclipse smartly refuses to let you create a linked resource at the root
> of a drive - because Eclipse indexes and tracks all directories in all
> projects, that would cause it to track your entire hard drive contents -
> not something you probably want it trying to do.
> You'll need to create links to each directory where you have files that
> you want to edit with Eclipse. If they are somewhat organized it
> shouldn't be too much trouble. Alternatively, you could simply either
> move those files into a simple project in your Eclipse workspace or
> create a new project that is rooted elsewhere on your hard drive (not in
> the workspace directory).
>
> Hope this helps,
> Eric

--
Très cordialement,

Riccardo Cohen
ligne directe : 02-47-49-63-24
-------------------------------------------
Articque
http://www.articque.com
Moulin des Roches
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49
Previous Topic:Can eclipse create a .jar file?
Next Topic:Can Eclipse "automatically" create a jar file?
Goto Forum:
  


Current Time: Fri Nov 08 23:40:56 GMT 2024

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

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

Back to the top