KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > help > internal > browser > BrowserDescriptor


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.internal.browser;
12 import org.eclipse.help.browser.*;
13
14 public class BrowserDescriptor {
15     private String JavaDoc browserID;
16     private String JavaDoc browserLabel;
17     private IBrowserFactory factory;
18     /**
19      * @param id
20      * ID of a browser as specified in plugin.xml
21      * @param label
22      * name of the browser
23      * @param factory
24      * the factory that creates instances of this browser
25      */

26     public BrowserDescriptor(String JavaDoc id, String JavaDoc label, IBrowserFactory factory) {
27         this.browserID = id;
28         this.browserLabel = label;
29         this.factory = factory;
30     }
31     public String JavaDoc getID() {
32         return browserID;
33     }
34     public String JavaDoc getLabel() {
35         return browserLabel;
36     }
37     public IBrowserFactory getFactory() {
38         return factory;
39     }
40     public boolean isExternal() {
41         return !BrowserManager.BROWSER_ID_EMBEDDED.equals(getID());
42     }
43 }
44
Popular Tags