blob: 408134009c50edd2652315cb48fe662592adf8a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/*******************************************************************************
* Copyright (c) 2004, 2016 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.internal.intro.impl.model;
import org.eclipse.core.runtime.IConfigurationElement;
/**
* An intro standby content part registration. This model class does not appear
* as a child under any of the other model classes. It is returned by the
* ExtensionPointManager when asked for registration parts.
*/
public class IntroStandbyContentPart extends AbstractIntroIdElement {
public static final String TAG_STANDBY_CONTENT_PART = "standbyContentPart"; //$NON-NLS-1$
private static final String ATT_PLUGIN_ID = "pluginId"; //$NON-NLS-1$
private static final String ATT_CLASS = "class"; //$NON-NLS-1$
private String pluginId;
private String className;
/**
* Note: model class with public constructor because it is not instantiated
* by the model root.
*
* @param element
*/
public IntroStandbyContentPart(IConfigurationElement element) {
super(element);
pluginId = element.getAttribute(ATT_PLUGIN_ID);
className = element.getAttribute(ATT_CLASS);
}
/**
* @return Returns the className.
*/
public String getClassName() {
return className;
}
/**
* @return Returns the pluginId.
*/
public String getPluginId() {
return pluginId;
}
@Override
public int getType() {
// this model class does not need a type so far.
return 0;
}
}
|