/*******************************************************************************
* Copyright (c) 2007, 2008 Borland Software 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:
* Borland Software Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.m2m.internal.qvt.oml.editor.ui.hyperlinks;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.hyperlink.IHyperlink;
/**
* @author vrepeshko
*/
public abstract class AbstractHyperlink implements IHyperlink {
protected AbstractHyperlink(IRegion hyperlinkRegion) {
if (hyperlinkRegion == null) {
throw new IllegalArgumentException();
}
myHyperlinkRegion = hyperlinkRegion;
}
public IRegion getHyperlinkRegion() {
return myHyperlinkRegion;
}
public String getHyperlinkText() {
return null;
}
public String getTypeLabel() {
return null;
}
private final IRegion myHyperlinkRegion;
}