comparison org.eclipse.jface.text/src/org/eclipse/jface/text/hyperlink/IHyperlink.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children
comparison
equal deleted inserted replaced
11:43904fec5dca 12:bc29606a740c
1 /*******************************************************************************
2 * Copyright (c) 2000, 2005 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 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module org.eclipse.jface.text.hyperlink.IHyperlink;
14
15 import org.eclipse.jface.text.hyperlink.IHyperlinkPresenterExtension; // packageimport
16 import org.eclipse.jface.text.hyperlink.MultipleHyperlinkPresenter; // packageimport
17 import org.eclipse.jface.text.hyperlink.HyperlinkManager; // packageimport
18 import org.eclipse.jface.text.hyperlink.URLHyperlink; // packageimport
19 import org.eclipse.jface.text.hyperlink.IHyperlinkDetectorExtension2; // packageimport
20 import org.eclipse.jface.text.hyperlink.IHyperlinkDetector; // packageimport
21 import org.eclipse.jface.text.hyperlink.IHyperlinkPresenter; // packageimport
22 import org.eclipse.jface.text.hyperlink.URLHyperlinkDetector; // packageimport
23 import org.eclipse.jface.text.hyperlink.DefaultHyperlinkPresenter; // packageimport
24 import org.eclipse.jface.text.hyperlink.AbstractHyperlinkDetector; // packageimport
25 import org.eclipse.jface.text.hyperlink.IHyperlinkDetectorExtension; // packageimport
26 import org.eclipse.jface.text.hyperlink.HyperlinkMessages; // packageimport
27
28
29 import java.lang.all;
30
31 import org.eclipse.jface.text.IRegion;
32
33
34 /**
35 * Represents a hyperlink.
36 * <p>
37 * Clients may implement this interface.
38 * </p>
39 *
40 * @since 3.1
41 */
42 public interface IHyperlink {
43
44 /**
45 * The region covered by this type of hyperlink.
46 *
47 * @return the hyperlink region
48 */
49 IRegion getHyperlinkRegion();
50
51 /**
52 * Optional label for this type of hyperlink.
53 * <p>
54 * This type label can be used by {@link IHyperlinkPresenter}s
55 * which show several hyperlinks at once.
56 * </p>
57 *
58 * @return the type label or <code>null</code> if none
59 */
60 String getTypeLabel();
61
62 /**
63 * Optional text for this hyperlink.
64 * <p>
65 * This can be used in situations where there are
66 * several targets for the same hyperlink location.
67 * </p>
68 *
69 * @return the text or <code>null</code> if none
70 */
71 String getHyperlinkText();
72
73 /**
74 * Opens the given hyperlink.
75 */
76 void open();
77 }