Skip to end of metadata
Go to start of metadata

Requirements

The examples on this page use the Prototype library, which is included by default inside a portal. However, the same concepts may be applied using other implementations.

Invocation

This command is executed immediately in a synchronous way.

Open a page internally

When a page needs to be opened internally within Studio, use this JavaScript code to dispatch the appropriate action:

Open a page externally

When a page needs to be opened externally in the OS default browser, use this JavaScript code to dispatch the appropriate action:

Configure Browsers

Configure the Studio's browsers by detecting the installed browsers and adding them to the Eclipse Browsers preference page.

The call returns a Map for the newly added browsers. The map contains the mapping from a browser location to a browser name.

In case no browser was added, an empty map is returned.

Get the currently configured browsers

Returns the currently configured browsers in the Eclipse Browsers preference page.

The call returns a Map for the detected browsers. The map contains the mapping from a browser location to a browser name.

"null" location in the result indicates the Eclipse default browser.

Example

You may place that dispatch code above inside a link listener, just like that: