KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > intro > impl > model > IntroStandbyContentPart


1 /*******************************************************************************
2  * Copyright (c) 2004, 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
12 package org.eclipse.ui.internal.intro.impl.model;
13
14 import org.eclipse.core.runtime.IConfigurationElement;
15
16 /**
17  * An intro standby content part registration. This model class does not appear
18  * as a child under any of the other model classes. It is returned by the
19  * ExtensionPointManager when asked for registration parts.
20  */

21 public class IntroStandbyContentPart extends AbstractIntroIdElement {
22
23     public static final String JavaDoc TAG_STANDBY_CONTENT_PART = "standbyContentPart"; //$NON-NLS-1$
24

25     private static final String JavaDoc ATT_PLUGIN_ID = "pluginId"; //$NON-NLS-1$
26
private static final String JavaDoc ATT_CLASS = "class"; //$NON-NLS-1$
27

28     private String JavaDoc pluginId;
29     private String JavaDoc className;
30
31     /**
32      * Note: model class with public constructor because it is not instantiated
33      * by the model root.
34      *
35      * @param element
36      */

37     public IntroStandbyContentPart(IConfigurationElement element) {
38         super(element);
39         pluginId = element.getAttribute(ATT_PLUGIN_ID);
40         className = element.getAttribute(ATT_CLASS);
41     }
42
43
44     /**
45      * @return Returns the className.
46      */

47     public String JavaDoc getClassName() {
48         return className;
49     }
50
51     /**
52      * @return Returns the pluginId.
53      */

54     public String JavaDoc getPluginId() {
55         return pluginId;
56     }
57
58     /*
59      * (non-Javadoc)
60      *
61      * @see org.eclipse.ui.internal.intro.impl.model.IntroElement#getType()
62      */

63     public int getType() {
64         // this model class does not need a type so far.
65
return 0;
66     }
67 }
68
Popular Tags