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 124415 - "Open As" item on context menu when opening files
Summary: "Open As" item on context menu when opening files
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Open File (show other bugs)
Version: 7.3
Hardware: PC Linux
: P1 blocker with 2 votes (vote)
Assignee: Jaroslav Havlin
Depends on:
Reported: 2007-12-24 13:58 UTC by johnsonlau
Modified: 2013-06-12 16:28 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description johnsonlau 2007-12-24 13:58:12 UTC
Could NetBeans provide a menu item named "Open as" to allow user to choose the format to apply with?
Like Tapestry's .application definition can be open as a XML file and highlighted correctly.
Comment 1 Peter Pis 2008-09-16 13:46:16 UTC
Reassigning to utilities.
Comment 2 christianessl 2009-03-05 13:50:40 UTC
I have got a similar problem: I switched from Eclipse to NB because of scala - using the excellent scala plugin. And I 
realy like NB but I miss Eclipse's open as... command.

Some of my scala files contain a lot more xhtml+js than scala code, because I use scalas emebbeded xml feature, to have 
a staticly typed template-language. So I'd rather open those special scala files with the also excellent HTML-editor. 
To achieve this I currently have to change the mime/type but than I can not use the scala editor for the "code-files" 

So an open as... like in eclipse would realy help. Maybe alternatively using the file-ending instead of the extension 
to associate a mime/type ie '.scala' is mapped to scala-files and '_view.scala' to text/html. However this does not 
work as well because the extension dialog does (not surpisingly) accept a dot.

Comment 3 egonpin 2013-06-12 16:28:45 UTC
In netbeans 7.3, this option is very important in mixed content as php javascript