Currently NetBeans supports only selection of installed browser.
Requests from JavaFX SDK team:
1. User should be able to select not only family of installed web browser but also architecture (32 vs 64).
2. If user attempts to run as applet or WS app without having the corresponding Java + FX RT then NetBeans will instruct the user as to what he needs to do to fix the problem. It is said what FX SDK team will provide a utility to detect installed FX RT versions.
ad (1) - per offline discussion with David - there is a requirement that the user specifies the web browser for an individual project and certain actions (e.g. Run which is supposed to open a URL in a browser?) use this project-specific browser to display the URL.
Stando, what are your comments regarding possibility of this given the current browser-related APIs?
Jesse, comments related to having this only for JavaSE project with FX files? Another option to have the browser selection UI in options of all projects? (which would probably mean that all browser specific actions in all project types would need to specify the browser parameter?)
(In reply to comment #1)
> ad (1) - per offline discussion with David - there is a requirement that the
> user specifies the web browser for an individual project and certain actions
> (e.g. Run which is supposed to open a URL in a browser?) use this
> project-specific browser to display the URL.
> Stando, what are your comments regarding possibility of this given the current
> browser-related APIs?
URLDisplayer class has method showURLExternal(URL) to open given URL in external browser (at the moment it just delegates to the default browser option). perhaps we could extend options UI to allow selecting a different browser for this method. but i don't know if that would be enough...
I do not see a simple solution. Is this really so important? Why would you want to use different browsers for different projects? Is the switching so common that it is impractical to just use Tools > Options > General > Web Browser?
I am wondering about that as well. In the context of web applications, per-project browser selection hasn't been requested by real users before.
I am wondering why there was no requests from web users. IMHO it's very useful and it exists in Eclipse AFAIK.
Here are comments from Igor Nekrestyanov (FX SDK team):
IMHO, I do not think we have a requirement to do browser selection per project and store selection in project settings.
The requirement we have is that developer should be able to quickly test its project in different browsers.
Changing "Tools > Options > General > Web Browser" is not practical as web developers need to retest with multiple browsers often.
What i was thinking of as possible UE was:
a) add UI to add browser browser configurations similar java platforms
- browser platfroms are IDE wise, not save in project properties (except may be last browser selection for developer convinience) (note that if project is copied to other system and open in other NB then different set of browser may be available)
In other words this is per user config, not per project.
- browser is defined as
- path to executable
- 32 or 64 bit
- command line options (by default empty but developer may use this to define custom browser sessions/profile to be used, so his testing does not interfere with his other work)
b) For FX projects have easy way to switch between different execution modes (in the toolbar?) Once applet execution is selected add pulldown menu to choose the browser to use. Either to toolbar or as menu on right click on the run/debug/profile buttons.
Would it be easier to implement if it will would not per project?
> I am wondering why there was no requests from web users.
I think this is because the requirement that "developer should be able to quickly test its project in different browsers" can be easily accomplished even now, using the following steps:
1. Run the application - this will open it in your default/preferred browser
2. Tes the application using this browser
3. Copy the URL from the address bar
4. Open another browser using UI provided by your operating system
5. Paste the URL in the address bar and test using this browser
6. Repeat steps 4 and 5 for other browsers that you wish to support
Sure, people can just copy and paste but that is not a very elegant solution. I think being able to test an app in a specific browser other than the IDE default browser is a valid use case. For example, I use Chrome for all of my work but I need to test my app in IE.
Anyway, with JavaFX the differences between 32 and 64 bit could be more significant than the differences between running a PHP app in 32 and 64 bit browser, so this requirement becomes more important.