diff options
author | Tim Neumann | 2019-02-01 15:29:02 +0000 |
---|---|---|
committer | Andrey Loskutov | 2019-02-11 15:28:56 +0000 |
commit | 905586bb4a39655065af35e74a79aec97d6a3c83 (patch) | |
tree | 65faac30d558d790c9103ea102478bd7bd29b31a /bundles/org.eclipse.ui.ide/schema | |
parent | b7bae3972448f9f43d6f9755437ffdbfc6dd0d9e (diff) | |
download | eclipse.platform.ui-905586bb4a39655065af35e74a79aec97d6a3c83.tar.gz eclipse.platform.ui-905586bb4a39655065af35e74a79aec97d6a3c83.tar.xz eclipse.platform.ui-905586bb4a39655065af35e74a79aec97d6a3c83.zip |
Bug 543466 - Add ability to specify marker help context providers
Added IMarkerHelpContextProvider interface and extended markerHelp.exsd
to allow contributed help context provider to be used instead of static
helpContextId.
IMarkerHelpContextProvider allows to compute helpContextId dynamically
based on given marker attrributes. Added MarkerHelpRegistryTest which
verifies new functionality.
Change-Id: Ie72c3bd55415c8b7916cd9f21f03a3b1de98b1de
Signed-off-by: Tim Neumann <Tim.Neumann@advantest.com>
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.ui.ide/schema')
-rw-r--r-- | bundles/org.eclipse.ui.ide/schema/markerHelp.exsd | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.ide/schema/markerHelp.exsd b/bundles/org.eclipse.ui.ide/schema/markerHelp.exsd index 99b953c4616..33cbf9c5c7a 100644 --- a/bundles/org.eclipse.ui.ide/schema/markerHelp.exsd +++ b/bundles/org.eclipse.ui.ide/schema/markerHelp.exsd @@ -57,13 +57,25 @@ </appinfo> </annotation> </attribute> - <attribute name="helpContextId" type="string" use="required"> + <attribute name="helpContextId" type="string"> <annotation> <documentation> the unique id of the help context. +This is only used, if helpContextProvider is not set. </documentation> </annotation> </attribute> + <attribute name="helpContextProvider" type="string"> + <annotation> + <documentation> + the name of the class implementing <code>IMarkerHelpContextProvider</code>. +If this is specified helpContextId is ignored. + </documentation> + <appInfo> + <meta.attribute kind="java" basedOn="org.eclipse.ui.IMarkerHelpContextProvider"/> + </appInfo> + </annotation> + </attribute> <attribute name="matchChildren" type="boolean"> <annotation> <documentation> |