Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2012-06-12 14:37:11 +0000
committerMarkus Tiede2012-06-12 14:40:08 +0000
commit69892c615006dcb3d3b9de5c333213c05ede3e0a (patch)
tree45b851715b57f9a29ade185aa589919ba40ec3ec /org.eclipse.jubula.toolkit.common
parentc50e0ee2dfeac02415e076813bce61e167ef1167 (diff)
downloadorg.eclipse.jubula.core-69892c615006dcb3d3b9de5c333213c05ede3e0a.tar.gz
org.eclipse.jubula.core-69892c615006dcb3d3b9de5c333213c05ede3e0a.tar.xz
org.eclipse.jubula.core-69892c615006dcb3d3b9de5c333213c05ede3e0a.zip
Sprint task - extend monitoring extension point for additional linking information.
Diffstat (limited to 'org.eclipse.jubula.toolkit.common')
-rw-r--r--org.eclipse.jubula.toolkit.common/schema/com.bredexsw.guidancer.monitoring.exsd7
-rw-r--r--org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/monitoring/MonitoringRegistry.java23
2 files changed, 30 insertions, 0 deletions
diff --git a/org.eclipse.jubula.toolkit.common/schema/com.bredexsw.guidancer.monitoring.exsd b/org.eclipse.jubula.toolkit.common/schema/com.bredexsw.guidancer.monitoring.exsd
index f7dbd87b6..c776a8dab 100644
--- a/org.eclipse.jubula.toolkit.common/schema/com.bredexsw.guidancer.monitoring.exsd
+++ b/org.eclipse.jubula.toolkit.common/schema/com.bredexsw.guidancer.monitoring.exsd
@@ -74,6 +74,13 @@
</documentation>
</annotation>
</attribute>
+ <attribute name="linkText" type="string">
+ <annotation>
+ <documentation>
+ This is an optional attribute for documentation / linking purposes e.g. to the monitoring agent provider. The string provided is set AS IS to an SWT Link text.
+ </documentation>
+ </annotation>
+ </attribute>
</complexType>
</element>
diff --git a/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/monitoring/MonitoringRegistry.java b/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/monitoring/MonitoringRegistry.java
index 3ef0b2a10..ab265f38c 100644
--- a/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/monitoring/MonitoringRegistry.java
+++ b/org.eclipse.jubula.toolkit.common/src/org/eclipse/jubula/toolkit/common/monitoring/MonitoringRegistry.java
@@ -59,6 +59,29 @@ public abstract class MonitoringRegistry {
return list;
}
+
+ /**
+ * @param monId the monId
+ * @return returns a String URL for the given monitoring agent ID or
+ * <code>null</code> if not defined / found
+ */
+ public static String getExtUrlForMonitoringId(String monId) {
+ String url = null;
+
+ if (monId != null) {
+ for (int i = 0; i < extensions.length; i++) {
+ IConfigurationElement element = extensions[i];
+ if (monId.equals(element.getAttribute(
+ MonitoringConstants.M_ID))) {
+ url = element.getAttribute(MonitoringConstants.M_LINK_TEXT);
+ break;
+ }
+ }
+ }
+
+ return url;
+ }
+
/**
* @return returns a list of all registered Monitoring names
*/

Back to the top