This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 7200 - Windows: No "Open" menu item in explorer popup if a file does not have extension
Summary: Windows: No "Open" menu item in explorer popup if a file does not have extension
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks: 7184
  Show dependency tree
 
Reported: 2000-07-31 18:58 UTC by Sophie Deng
Modified: 2003-07-01 15:16 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sophie Deng 2000-07-31 18:58:03 UTC
<This bug is transferred from bugtraq #4351919

Load a file without extension in the Explorer, the "Open menu item
does not show in the popup. One cannot edit such a file in IDE.

This could happen if users want to work on a project created on Unix.
Text files like README ... won't have extension.

To reproduce it.
1. Create a file without extension in DOS command prompt.
      mkdir testdir1
      cd testdir1
      echo testing > file1
2. Mount the directory, testdir1, as VCS filesystem into Explorer
3. Select file1 and popup the menu

No "Open" is in the popup menu.



This bug is not clear.
It is not generally common to associate files with no extension to a text
editor, as most of such files (esp. on UNIX) are binary files.

There are 2 ways in the IDE to solve this:
1. for specific files in the Explorer which the user wants to edit as a text, it
is possible to use Tools | Convert to Text action from its popup menu, and it
will be possible to edit it in the text editor
2. it is possible to go to GLobal Options | Object Types | Textual objects and
edit the list of extensions associated with text editor to include files with no
extension

mark.dey@Eng 2000-07-21
The above solutions are really workarounds. Having to hunt down a converter tool
or options settings just to edit a readme file seems like too much to expect a
user to do. At the very least, the list of associations should include an entry
for no-extension=texteditor by default. We have asked HIE to weigh in on this
issue. Re-opening bug for consideration.

ann.sunhachawee@eng 2000-07-26
Speaking from the HIE role, all files/nodes in explorer should have some
associated action when double clicking on it. Here is the list in order of
preference of what should happen on a double click:

1) Figure out from the contents what is best used to view the file, and use that
to launch that viewer.
2) Barring that, pop up a list of possible viewers to view the file with such as
windows does with files it doesn't know. Include option to always associate this
file type with the viewer.
3) Barring those, pop up a dialog where one can associate the viewer with the
extension.
4) Pop up the global options dialog with the correct node under Object Types
expanded
5) pop up the file in the text editor if it is binary or not.
6) Pop up an informational dialog that this file extension was not recognized,
and the instructions on how one can go about relating file ext with viewers. :P

Would it be better for this bug to be in bugzilla?

ian.formanek@czech 2000-07-27
Definitely, this is clearly a core RFE.
Comment 1 Ann Sunhachawee 2000-08-04 22:24:59 UTC
also see bug 6943
Comment 2 Peter Zavadsky 2000-08-08 10:06:59 UTC
[main trunk] Fixed in main trunk, waiting for approval to fix in boston branch;
additional comments see bug #6943
Comment 3 Peter Zavadsky 2000-08-08 15:44:59 UTC
[boston] see #6943
Comment 4 Quality Engineering 2003-07-01 15:15:27 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 15:16:56 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.