01: /*******************************************************************************
02: * Copyright (c) 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.pde.internal.ui.editor.text;
11:
12: import org.eclipse.jface.text.IRegion;
13: import org.eclipse.jface.text.hyperlink.IHyperlink;
14:
15: public abstract class AbstractHyperlink implements IHyperlink {
16:
17: protected String fElement;
18: private IRegion fRegion;
19:
20: public AbstractHyperlink(IRegion region, String element) {
21: fRegion = region;
22: fElement = element;
23: }
24:
25: public IRegion getHyperlinkRegion() {
26: return fRegion;
27: }
28:
29: public String getHyperlinkText() {
30: return null;
31: }
32:
33: public String getTypeLabel() {
34: return null;
35: }
36:
37: }
|