Skip to main content
summaryrefslogtreecommitdiffstats
blob: edb8705c585571ef0b427080e45a20e4018228f0 (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
/*******************************************************************************
 * Copyright (c) 2007, 2015 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.help;

/**
 * An extension of a document's content.
 *
 * @since 3.3
 */
public interface IContentExtension extends IUAElement {

	/**
	 * Extension type for a contribution at an anchor.
	 */
	public static final int CONTRIBUTION = 0;

	/**
	 * Extension type for element replacement.
	 */
	public static final int REPLACEMENT = 1;

	/**
	 * Returns the extension's content path (what to contribute into the
	 * document). This is a bundle-relative path with an id, of the form
	 * "path/file.ext#elementId".
	 *
	 * @return path to the extension's content
	 */
	public String getContent();

	/**
	 * Returns the extensions target path (what to extend).
	 *
	 * @return path to the target element to extend
	 */
	public String getPath();

	/**
	 * Returns the type of extension this is. Must be one of the static
	 * constants defined by this interface.
	 *
	 * @return the extension type
	 */
	public int getType();
}

Back to the top