01: /*******************************************************************************
02: * Copyright (c) 2004, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.intro.impl.model;
11:
12: import org.osgi.framework.Bundle;
13: import org.w3c.dom.Element;
14:
15: /**
16: * An intro element that represents a page title.
17: */
18: public class IntroPageTitle extends IntroText {
19:
20: protected static final String TAG_TITLE = "title"; //$NON-NLS-1$
21:
22: IntroPageTitle(Element element, Bundle bundle) {
23: super (element, bundle);
24: }
25:
26: /**
27: * @return Returns the Title text.
28: */
29: public String getTitle() {
30: return getText();
31: }
32:
33: /*
34: * (non-Javadoc)
35: *
36: * @see org.eclipse.ui.internal.intro.impl.model.IntroElement#getType()
37: */
38: public int getType() {
39: return AbstractIntroElement.PAGE_TITLE;
40: }
41:
42: }
|