KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > help > ui > internal > browser > SystemBrowserFactory


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.help.ui.internal.browser;
12 import org.eclipse.core.runtime.*;
13 import org.eclipse.help.browser.*;
14 import org.eclipse.osgi.service.environment.*;
15 public class SystemBrowserFactory implements IBrowserFactory {
16     /**
17      * Constructor.
18      */

19     public SystemBrowserFactory() {
20         super();
21     }
22     /*
23      * @see IBrowserFactory#isAvailable()
24      */

25     public boolean isAvailable() {
26         return Constants.WS_WIN32.equalsIgnoreCase(Platform.getOS());
27     }
28     /*
29      * @see IBrowserFactory#createBrowser()
30      */

31     public IBrowser createBrowser() {
32         return new SystemBrowserAdapter();
33     }
34 }
35
Popular Tags