com.aptana.ide.editor.css
Class BrowserExtensionLoader

java.lang.Object
  extended by com.aptana.ide.editor.css.BrowserExtensionLoader

public final class BrowserExtensionLoader
extends java.lang.Object

Browser extension reader that returns the list of browsers to show previews with when an editor asks. Listens to the browser preview preferences so the list contains all browsers that should be shown in alphabetical order.

Author:
Kevin Sawicki (ksawicki@aptana.com)

Method Summary
static java.util.List getAllBrowserLabels()
          Gets all the browsers that exist in the extension point
static java.lang.String getBrowserLabel(org.eclipse.core.runtime.IConfigurationElement browserElement)
          Looks up the label for the browser based on the os run on.
static java.util.List loadBrowsers()
          Returns the list of browser extension points to show.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBrowserLabel

public static java.lang.String getBrowserLabel(org.eclipse.core.runtime.IConfigurationElement browserElement)
Looks up the label for the browser based on the os run on.

Parameters:
browserElement - - element containing label node(s)
Returns:
- browser label if found, null otherwise

loadBrowsers

public static java.util.List loadBrowsers()
Returns the list of browser extension points to show. To be called by an HTML editor.

Returns:
- List of loadable browsers

getAllBrowserLabels

public static java.util.List getAllBrowserLabels()
Gets all the browsers that exist in the extension point

Returns:
- list of browser labels