Bug 21973 - [Editor Mgmt] Support for opening a file that isn't in the project workspace
Summary: [Editor Mgmt] Support for opening a file that isn't in the project workspace
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
: 6637 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-26 13:52 EDT by David Almilli CLA
Modified: 2004-11-19 08:13 EST (History)
13 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Almilli CLA 2002-07-26 13:52:04 EDT
I usually open up java files for editing or just browsing in my favorite java 
IDE such as jdk source files or other random java files that I may come 
across.  I don't necessarily want to compile them or even add them to my 
project, just look at them.  As far as I know, this isn't possible to do in 
eclipse and it forces me to use notepad which has no color coding or quick 
access to methods (Outline).  The only option is to import the file into the 
project and delete it after I'm finished looking at it.
Comment 1 John Arthorne CLA 2002-07-26 14:42:32 EDT
Moving to UI for consideration.  It's possible to open a read-only editor on a 
non-workspace input so this is feasible.

David, as an alternative it is quite easy to copy files into eclipse using drag 
and drop or copy/paste from your window manager.  You can then view the file and 
dispose of it when you're finished with it.
Comment 2 Juergen Weber CLA 2002-08-13 08:33:30 EDT
Why limit to a read-only editor? Why not drag'n'drop any text file into eclipse
and edit it?
There is life beside the project and very often you have to edit a text file
that is not in my eclipse project (System files, Mozilla user prefs, html pages,
anything). Why should you keep another editor (even if you like jedit ;-) ?
For me it is important to be able to drop a file from explorer to an editor, be
it open or in the task bar. Quite often I use send-to editor from within a file
open dialog.
Comment 3 David Almilli CLA 2002-08-13 12:39:10 EDT
I agree.  You should be able to read and write files that aren't in your 
project.  I'd like to use eclipse as an editor for files that aren't in my 
project.
Comment 4 Don Vail CLA 2002-09-09 18:40:19 EDT
There is a lot of relevant discussion to this one on 4922 and 6664. Basically 
if we could edit a file (text, java, xml, etc) that lives outside of a project 
many good things would happen. We could get a "file open" command under 
the "File" menu and it would be possible to open a file by double clicking it 
under Windows, or we could open a file using the command line. All of this 
obviously requires that ability to use an editor with a file that does not 
belong to a project. If that means the editor is not as full featured as it is 
with a project file, then that is fine, as long as some of the features are 
there, such as syntax coloring, etc. 
Comment 5 Brian DeWeese CLA 2002-10-01 16:40:34 EDT
In addition to the previously mentioned methods to open a non-project file, I
would like to see Drag n'Drop added as well.  I commonly open files by dragging
them onto my editor. 
Comment 6 Knut Radloff CLA 2002-11-04 16:11:23 EST
See also Bug 2869. It seems to be asking for a programmatic way to open 
external files.
Comment 7 DJ Houghton CLA 2003-01-21 17:28:33 EST
*** Bug 6637 has been marked as a duplicate of this bug. ***
Comment 8 Nick Edgar CLA 2004-02-25 17:42:25 EST
Text team has done the work for File > Open External File.
Comment 9 Dani Megert CLA 2004-02-26 02:53:20 EST
Has been fixed a while ago.
Comment 10 Dani Megert CLA 2004-02-26 03:00:00 EST
*** Bug 13221 has been marked as a duplicate of this bug. ***
Comment 11 Dani Megert CLA 2004-02-26 03:00:39 EST
*** Bug 37935 has been marked as a duplicate of this bug. ***
Comment 12 Steven Van Langendonck CLA 2004-04-09 05:25:11 EDT
I tried it under Windows with M8 and it does not work for files that should be
opened by some plug-ins and external programs. I tried to open an XSD file. When
it was associated with the extention point editor it opened, when it was
associated with XMLBuddy it did not, nor when it was associated with an external
editor (Stylus studio).
Comment 13 Bob Foster CLA 2004-04-09 10:14:54 EDT
Thanks for the comment. Yes, somehow Open External File has been implemented so
it doesn't work with third-party plug-in editors. Very unsatisfactory
"resolution". Assuming it's too late to have this implemented in a compatible
way, how about sharing with the rest of the world what has to be done to make
this work? 
Comment 14 Dani Megert CLA 2004-04-12 14:25:22 EDT
It's not just with third-party plug-ins. I filed bug 58179.
Comment 15 Bob Foster CLA 2004-04-12 17:14:59 EDT
Right. I added a comment to bug 58179 to note that the problem is not just with
plugins that ship with Eclipse.
Comment 16 C. Lamont Gilbert CLA 2004-11-19 08:13:22 EST
Perhaps the title of this bug should be changed to reflect what was fixed.  I
assume that is now Eclipse can open external text and java files.  And keep it
closed and send all people looking for general external file open ability to bug
58179.