Bug 11008 - [Navigator] File -> Open to open a resource
Summary: [Navigator] File -> Open to open a resource
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 enhancement (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Knut Radloff CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
: 11216 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-07 22:04 EST by Randy Hudson CLA
Modified: 2005-11-03 09:36 EST (History)
1 user (show)

See Also:


Attachments
Dialog with multipe "modes" (11.45 KB, image/gif)
2002-09-09 11:05 EDT, Randy Hudson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2002-03-07 22:04:45 EST
This is a request for an Open... Menu item on the File menu.  The open menu 
could/should be like the JDT OpenType dialog, only it would only know about 
Resources in the workspace.

My usage scenario is that I am in the debugger, and would like to open a file.  
Even if I were displaying the navigator, it is much to clumsy for just opening 
a file.  I can type the filename **much** quicker than I can navigate through 
project/com/acme/foo/bar/resource.java.
Comment 1 Kevin Haaland CLA 2002-05-01 17:43:33 EDT
Defer
Comment 2 Randy Giffen CLA 2002-08-09 15:44:29 EDT
Reopen to investigate
Comment 3 Knut Radloff CLA 2002-09-05 17:18:41 EDT
The file menu does seem like the natural place for an open file menu item.
On the other hand open type is in the navigate menu. Also, Go To->Resource 
(which is what you want minus the actual opening) is in the Go To menu which is 
also in the Navigate menu (except it doesn't have the Resource sub menu item in 
the Navigate menu).
Maybe there should be an Open Resource menu item in the navigate menu instead 
of File->Open?
Comment 4 Kevin Haaland CLA 2002-09-06 08:16:26 EDT
The requested behavior: to be able to quickly enter the name of a java resource 
to open an editor is implemented as "goto type" Ctrl-Shift-T. 

If we implement File->Open it will be for the generic editing of tiles which is 
covered by other bugzilla defects. 
   
Comment 5 Knut Radloff CLA 2002-09-06 10:20:43 EDT
Actually I thought Randy was requesting something *similiar* to open type, 
except for resources in general. His .java example is confusing. Randy, please 
clarify. Do you want Open Resource or do you want open type just accessible in 
some other place?
Currently there is no quick way to open say, messages.properties.
Comment 6 Randy Hudson CLA 2002-09-06 10:26:51 EDT
This request is for generic resources, sorry for the .java example, I don't 
know what I was thinking.
Comment 7 Knut Radloff CLA 2002-09-06 15:00:12 EDT
Bug 11216 is requesting a quick way to open any resource as well.
Should add Open Resource to navigate menu with Ctrl+Shift+R shortcut.
Comment 8 Knut Radloff CLA 2002-09-06 15:02:39 EDT
*** Bug 11216 has been marked as a duplicate of this bug. ***
Comment 9 DJ Houghton CLA 2002-09-06 15:09:30 EDT
Note that bug 21973 (potentially) contains an alternate meaning for File -> 
Open and should be taken into consideration.
Comment 10 Knut Radloff CLA 2002-09-06 15:18:24 EDT
Open Resource would go into the Navigate menu, somewhere near Open Type.
Comment 11 Randy Hudson CLA 2002-09-09 11:04:49 EDT
Why not have a single File-Open, and then allow the user to select "Internal" 
or "External" options.  The choice could be made by putting a "cheat-sheet" bar 
down the left side of the dialog.  Please see attachment.
Comment 12 Randy Hudson CLA 2002-09-09 11:05:55 EDT
Created attachment 1953 [details]
Dialog with multipe "modes"
Comment 13 Randy Hudson CLA 2002-09-09 11:09:22 EDT
The benefit of one dialog is that you just need 1 accelerator (Control+O) and 1 
menu item.  The mode would be remembered across invocations.  It is uncommon 
that the user would need to alternate between workspace and external files.

Come to think of it, why should JDT be required to plug in to such a dialog.  
They could just add a new entry in the side bar for Java Type.  I'm just asking 
because I wonder how many other builders (C++, EJB, etc) are adding Open 
actions.
Comment 14 Knut Radloff CLA 2002-09-16 11:41:30 EDT
The original request was for a quick way to open resources. A multi mode dialog 
does not fit that description. Even if one ususally opens .java files whenever 
one opens other resources the switching back and forth between different modes 
seems clumsy.
Pro of the multi mode open dialog is extensibility. Needs more thought, should 
check what CDT does.
Comment 15 Knut Radloff CLA 2002-11-04 15:57:58 EST
Add Open Resource menu item to Navigator menu for 2.1
Comment 16 Knut Radloff CLA 2002-11-12 16:39:16 EST
Fixed in > 20021112
Added global action org.eclipse.ui.OpenWorkspaceFile to 
org.eclipse.ui.NavigateActionSet
Comment 17 DJ Houghton CLA 2002-11-13 14:09:16 EST
This is awesome. Not only is it faster than ctrl-shift-T to open classes, but 
I can also open my messages.properties files, etc too. Thanks!
Comment 18 Tod Creasey CLA 2005-11-03 09:22:10 EST
*** Bug 110055 has been marked as a duplicate of this bug. ***