[jbosstools-commits] JBoss Tools SVN: r24491 - in trunk/usage: plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader and 2 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Aug 27 07:49:56 EDT 2010


Author: adietish
Date: 2010-08-27 07:49:55 -0400 (Fri, 27 Aug 2010)
New Revision: 24491

Added:
   trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch
Modified:
   trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/GlobalUsageReportingSettings.java
   trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilAlternativesImpl.java
   trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilImpl.java
   trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java
Log:
[JBIDE-6880] test successfull

Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/GlobalUsageReportingSettings.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/GlobalUsageReportingSettings.java	2010-08-27 11:29:48 UTC (rev 24490)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/GlobalUsageReportingSettings.java	2010-08-27 11:49:55 UTC (rev 24491)
@@ -25,9 +25,9 @@
 
 	private static final String REPORTING_ENABLEMENT_URL = "http://community.jboss.org/wiki/JBossToolsJBossDeveloperStudioUsageReportingEnablement"; //$NON-NLS-1$
 
-	private static final String KEY_REPORT_ENABLEMENT = "Usage Reporting is ";
-	private static final String KEY_DUMMY_VALUE = "Dummy Value is ";
-	private static final String KEY_INTEGER_VALUE = "Integer Value is ";
+	public static final String KEY_REPORT_ENABLEMENT = "Usage Reporting is ";
+	public static final String KEY_DUMMY_VALUE = "Dummy Value is ";
+	public static final String KEY_INTEGER_VALUE = "Integer Value is ";
 
 	private static final char VALUE_DELIMITER = '<';
 

Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilAlternativesImpl.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilAlternativesImpl.java	2010-08-27 11:29:48 UTC (rev 24490)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilAlternativesImpl.java	2010-08-27 11:49:55 UTC (rev 24491)
@@ -18,8 +18,8 @@
  */
 public class ReadUntilAlternativesImpl extends ReadUntilImpl {
 
-	private char[][] alternativesCharSequences;
-	private char[] alternativeCharacter;
+	private char[][] allAlternatives;
+	private char[] currentAlternative;
 	private int alternativesIndex = -1;
 
 	public ReadUntilAlternativesImpl(Reader reader, String... stringAlternatives) {
@@ -28,24 +28,16 @@
 	}
 
 	private void initAlternativesCharSequences(String... stringAlternatives) {
-		this.alternativesCharSequences = new char[stringAlternatives.length][];
+		this.allAlternatives = new char[stringAlternatives.length][];
 		for (int i = 0; i < stringAlternatives.length; i++) {
-			this.alternativesCharSequences[i] = stringAlternatives[i].toCharArray();
+			this.allAlternatives[i] = stringAlternatives[i].toCharArray();
 		}
 	}
 
-	protected boolean doContinueRead(char character, int numberOfCharactersRead) throws IOException {
-		boolean continueRead = super.doContinueRead(character, numberOfCharactersRead);
-		if (!isMatching()) {
-			setMatchingIndex(0);
-		}
-		return continueRead;
-	}
-
 	@Override
 	protected int getNumberOfCharactersToMatch() {
-		if (alternativeCharacter != null) {
-			return alternativeCharacter.length;
+		if (currentAlternative != null) {
+			return currentAlternative.length;
 		} else {
 			return 0;
 		}
@@ -53,44 +45,71 @@
 
 	@Override
 	protected boolean doesMatch(char character) {
-		if (alternativeCharacter == null || alternativeCharacter[getMatchingIndex()] != character) {
-			return matchAlternative(character);
+		if (currentAlternative == null || currentAlternative[getMatchingIndex()] != character) {
+			// current alternative does not match new character, select a new
+			// alternative
+			boolean newAlternativeSelected = matchAlternative(character);
+			if (!newAlternativeSelected) {
+				// no alternative matches current character + new one
+				setMatchingIndex(0);
+			}
+			return newAlternativeSelected;
 		} else {
 			return true;
 		}
 	}
 
+	/**
+	 * Returns whether the given character matches an alternative (in other
+	 * words the given character matches an alternative at the current matching
+	 * index).
+	 * 
+	 * @param character
+	 *            the character
+	 * @return true, if successful
+	 */
 	private boolean matchAlternative(char character) {
-		for (int i = alternativesIndex + 1; i < alternativesCharSequences.length; i++) {
-			char[] alternative = alternativesCharSequences[i];
+		for (int i = alternativesIndex + 1; i < allAlternatives.length; i++) {
+			char[] alternative = allAlternatives[i];
 			if (doesMatch(character, alternative)) {
-				this.alternativeCharacter = alternative;
+				this.currentAlternative = alternative;
 				this.alternativesIndex = i;
 				return true;
 			}
 
 		}
+		this.currentAlternative = null;
 		this.alternativesIndex = -1;
 		return false;
 	}
 
-	private boolean doesMatch(char character, char[] alternative) {
-		for (int j = 0; j <= getMatchingIndex(); j++) {
-			if (alternative[j] != character) {
+	/**
+	 * Returns whether the given potentially matching alternative (String)
+	 * matches the currently selected alternative and the additional character.
+	 * 
+	 * @param character
+	 * @param potentiallyMatchingAlternative
+	 *            the new alternative that could match
+	 * @return
+	 */
+	private boolean doesMatch(char character, char[] potentiallyMatchingAlternative) {
+		int currentMatchingIndex = getMatchingIndex();
+		for (int j = 0; j < currentMatchingIndex; j++) {
+			if (potentiallyMatchingAlternative[j] != currentAlternative[j]) {
 				return false;
 			}
 		}
-		return true;
+		return potentiallyMatchingAlternative[currentMatchingIndex] == character;
 	}
 
 	@Override
 	protected char[] getCharactersToMatch() {
-		return alternativeCharacter;
+		return currentAlternative;
 	}
 
 	public String getAlternative() {
 		if (alternativesIndex >= 0) {
-			return new String(alternativesCharSequences[alternativesIndex]);
+			return new String(allAlternatives[alternativesIndex]);
 		} else {
 			return null;
 		}

Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilImpl.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilImpl.java	2010-08-27 11:29:48 UTC (rev 24490)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/util/reader/ReadUntilImpl.java	2010-08-27 11:49:55 UTC (rev 24491)
@@ -53,7 +53,7 @@
 		setMatches(matches);
 		return continueRead;
 	}
-
+	
 	public boolean isMatching() {
 		return matched;
 	}

Added: trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch	                        (rev 0)
+++ trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch	2010-08-27 11:49:55 UTC (rev 24491)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="false"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.usage.test.GlobalUsageReportingSettingsTest"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.usage.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.swt at default:default,org.eclipse.core.filesystem at default:default,org.eclipse.core.resources at default:default,org.eclipse.equinox.p2.core at default:default,org.eclipse.help.base at default:default,org.eclipse.core.databinding.property at default:default,com.springsource.org.apache.commons.logging at default:default,org.mortbay.jetty.util at default:default,org.eclipse.core.filesystem.macosx at default:false,org.eclipse.equinox.p2.jarprocessor at default:default,org.eclipse.ui.views.properties.tabbed at default:default,org.eclipse.ui.navigator at default:default,org.eclipse.core.runtime at default:true,org.eclipse.ecf at default:default,org.eclipse.equinox.concurrent at default:default,org.eclipse.core.jobs at default:default,org.apache.jasper at default:default,org.eclipse.equinox.http.servlet at default:default,org.eclipse.help.ui at default:default,org.eclipse.ecf.identity at default:default,org.eclipse.core.databinding at default:default,com.springsource.javax.!
 el at default:default,org.eclipse.equinox.p2.artifact.repository at default:default,org.eclipse.osgi at -1:true,org.eclipse.ui.ide at default:default,org.eclipse.ui.navigator.resources at default:default,org.eclipse.equinox.preferences at default:default,org.apache.lucene at default:default,org.eclipse.ui.workbench.texteditor at default:default,org.eclipse.equinox.security at default:default,org.eclipse.text at default:default,org.eclipse.core.variables at default:default,org.jboss.tools.xulrunner.initializer at default:false,org.eclipse.ui.ide.application at default:default,org.eclipse.ui.workbench at default:default,org.eclipse.ecf.ssl at default:false,org.eclipse.equinox.app at default:default,org.eclipse.osgi.services at default:default,org.junit4 at default:default,org.apache.lucene.analysis at default:default,org.eclipse.equinox.security.macosx at default:false,org.eclipse.core.resources.compatibility at default:false,org.eclipse.core.runtime.compatibility.registry at default:false,org.eclipse.core.expressions at default:default,org.ec!
 lipse.equinox.http.jetty at default:default,org.eclipse.jface at def!
 ault:def
ault,org.eclipse.equinox.common at 2:true,org.eclipse.ecf.provider.filetransfer at default:default,org.eclipse.core.contenttype at default:default,org.eclipse.swt.cocoa.macosx at default:false,org.eclipse.core.runtime.compatibility.auth at default:default,org.eclipse.ecf.filetransfer at default:default,org.eclipse.core.databinding.observable at default:default,com.springsource.javax.servlet.jsp at default:default,org.eclipse.compare.core at default:default,org.eclipse.ui.intro at default:default,org.eclipse.jface.text at default:default,org.eclipse.equinox.p2.metadata.repository at default:default,javax.servlet at default:default,org.eclipse.equinox.p2.engine at default:default,org.eclipse.core.commands at default:default,org.apache.commons.el at default:default,org.mortbay.jetty.server at default:default,org.eclipse.ui.views at default:default,com.ibm.icu at default:default,com.jboss.jbds.product at default:default,org.eclipse.ecf.provider.filetransfer.ssl at default:false,org.eclipse.ui.cocoa at default:false,org.eclipse.ant.core at default!
 :default,org.eclipse.ui.intro.universal at default:default,org.apache.ant at default:default,org.eclipse.equinox.transforms.hook at default:false,org.hamcrest.core at default:default,org.eclipse.equinox.p2.metadata at default:default,org.eclipse.help at default:default,com.springsource.javax.servlet at default:default,org.eclipse.core.net at default:default,org.eclipse.equinox.registry at default:default,javax.transaction at default:false,org.eclipse.equinox.p2.repository at default:default,org.eclipse.jface.databinding at default:default,org.eclipse.ui.forms at default:default,org.eclipse.ui at default:default,org.eclipse.ui.cheatsheets at default:default"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.usage.test at default:default,org.jboss.tools.usage at default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="false"/>
+</launchConfiguration>


Property changes on: trunk/usage/tests/org.jboss.tools.usage.test/GlobalUsageReportingSettingsTest.launch
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java	2010-08-27 11:29:48 UTC (rev 24490)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageReportingSettingsTest.java	2010-08-27 11:49:55 UTC (rev 24491)
@@ -47,14 +47,12 @@
 		assertFalse(reportEnablement.isEnabled());
 	}
 
-	@Ignore
 	@Test
 	public void canExtractStringValue() throws IOException {
 		GlobalReportingSettingsFake reportSettings = new GlobalReportingSettingsFake("", "dummy", "");
 		assertEquals("dummy", reportSettings.getStringValue());
 	}
 
-	@Ignore
 	@Test
 	public void canExtractIntegerValue() throws IOException {
 		GlobalReportingSettingsFake reportSettings = new GlobalReportingSettingsFake("", "", "42");
@@ -83,91 +81,123 @@
 	}
 
 	private String getEnablementPageContent(String enablementValue, String dummyValue, String integerValue) {
-		return "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\""
-				+ "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> "
-				+ " "
-				+ " "
-				+ "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"> "
-				+ "<head> "
-				+ "    <title> JBoss Tools / JBoss Developer Studio Usage Reporting Enablement - JBoss Community</title> "
-				+ " "
-				+ "    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" /> "
-				+ " "
-				+ "    <script type=\"text/javascript\"> "
-				+ "    	var javascriptIsCool = false;"
-				+ "    </script> "
-				+ "    "
-				+ "</head> "
-				+ "<body class=\"jive-body-content jive-body-content-document\" > "
-				+ "        <div id=\"jive-body\"> "
-				+ " "
-				+ "<div class=\"jive-content\"> "
-				+ "    <div class=\"jive-content-header\"> "
-				+ "        <div class=\"jive-wiki-post-moderating jive-content-header-moderating\"> "
-				+ "            <span class=\"jive-icon-med jive-icon-moderation\"></span>Currently Being Moderated"
-				+ "        </div> "
-				+ "        <div class=\"jive-content-title\"> "
-				+ "            <h2><span class=\"jive-icon-big jive-icon-document\"></span> JBoss Tools / JBoss Developer Studio Usage Reporting Enablement</h2> "
-				+ "        </div> "
-				+ "        <div class=\"jive-content-header-version\"> "
-				+ "            VERSION 5&nbsp;"
-				+ "                <a href=\"/wiki/JBossToolsJBossDeveloperStudioUsageReportingEnablement/diff?secondVersionNumber=5\" title=\"Click to view article history\"><img class=\"jive-icon-sml jive-icon-search\" src=\"/4.0.5/images/transparent.png\" alt=\"Click to view article history\" /></a> "
-				+ "        </div> "
-				+ "		<div class=\"jive-content-header-details\"> "
-				+ " "
-				+ "Created on: Aug 24, 2010 5:39 AM by"
-				+ "<a href=\"/people/adietish\""
-				+ "id=\"jive-72036899,987,346,482,238\""
-				+ "onmouseover=\"quickuserprofile.getUserProfileTooltip(72036);\""
-				+ "onmouseout=\"quickuserprofile.cancelTooltip();\""
-				+ "class=\"jiveTT-hover-user jive-username-link\""
-				+ ">Andre Dietisheim</a>            <span>-</span> "
-				+ "Last Modified:&nbsp;"
-				+ "Aug 24, 2010 5:53 AM"
-				+ "by <a href=\"/people/adietish\""
-				+ "id=\"jive-72036899,987,347,353,238\""
-				+ "onmouseover=\"quickuserprofile.getUserProfileTooltip(72036);\""
-				+ "onmouseout=\"quickuserprofile.cancelTooltip();\""
-				+ "class=\"jiveTT-hover-user jive-username-link\""
-				+ ">Andre Dietisheim</a>		</div> "
-				+ " "
-				+ "	</div> "
-				+ "	<div class=\"jive-content-body\"> "
-				+ " "
-				+ "<!-- [DocumentBodyStart:e26c60c0-cb73-47b7-bded-f4eb7320305b] --><div class=\"jive-rendered-content\"><p>This article is queried by the JBoss Tools / JBoss Developer Studio usage reporting plugin. It implements a global kill-switch that allows us to disable usage reporting stats. The plugin looks for a string of the format:</p><p style=\"min-height: 8pt; height: 8pt; padding: 0px;\">&#160;</p><p><strong>Usage&#160; Reporting&#160; is &lt;"
-				+ "ENABLED&gt;</strong>. Any value that differs from ENABLED is interpreted as DISABLED.</p><p style=\"min-height: 8pt; height: 8pt; padding: 0px;\">&#160;</p><h1>Usage Reporting is "
 
-				+ enablementValue
-
-				+ "</h1>"
-				+ "<h1>Dummy value is "
-
-				+ dummyValue
-
-				+ "</h1>"
-
-				+ "<h1>Integer value is "
-
-				+ integerValue
-
-				+ "</h1>"
-
-				+ "</div><!-- [DocumentBodyEnd:e26c60c0-cb73-47b7-bded-f4eb7320305b] --> "
-				+ " "
-				+ "	</div> "
-				+ "    <div class=\"jive-content-footer\"> "
-				+ " "
-				+ " "
-				+ "    <!-- BEGIN content details --> "
-				+ "        <span class=\"jive-content-footer-item\"> "
-				+ "            18&nbsp;Views</a> "
-				+ "        </span> "
-				+ "  "
-				+ " "
-				+ "    </div> "
-				+ "</div> "
-				+ "</body> "
-				+ "</html> ";
+		return 
+//				"Dummy Value would be cool but here follows the Boolean Value for the Report Enablement: "
+//				+ "<h1>" + GlobalUsageReportingSettings.KEY_REPORT_ENABLEMENT
+//				+ enablementValue
+//				+ "</h1>"
+//
+//				+ "The Dummy Value in this Resource is set to "
+//				+ "<h1>" + GlobalUsageReportingSettings.KEY_DUMMY_VALUE
+//				+ dummyValue
+//				+ "</h1>"
+//
+//				+ "Boolean Usage Reporting is set to:"
+//				+ "<h1>" + GlobalUsageReportingSettings.KEY_REPORT_ENABLEMENT
+//				+ enablementValue
+//				+ "</h1>"
+//
+//				+ "And the value of type Integer is "
+//				+ "<h1>" + GlobalUsageReportingSettings.KEY_INTEGER_VALUE
+//				+ integerValue
+//				+ "</h1>"
+//				+ " is the Value that is a String";
+		 "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\""
+		 + "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> "
+		 + " "
+		 + " "
+		 +
+		 "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"> "
+		 + "<head> "
+		 +
+		 "    <title> JBoss Tools / JBoss Developer Studio Usage Reporting Enablement - JBoss Community</title> "
+		 + " "
+		 +
+		 "    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" /> "
+		 + " "
+		 + "    <script type=\"text/javascript\"> "
+		 + "    	var javascriptIsCool = false;"
+		 + "    </script> "
+		 + "    "
+		 + "</head> "
+		 + "<body class=\"jive-body-content jive-body-content-document\" > "
+		 + "        <div id=\"jive-body\"> "
+		 + " "
+		 + "<div class=\"jive-content\"> "
+		 + "    <div class=\"jive-content-header\"> "
+		 +
+		 "        <div class=\"jive-wiki-post-moderating jive-content-header-moderating\"> "
+		 +
+		 "            <span class=\"jive-icon-med jive-icon-moderation\"></span>Currently Being Moderated"
+		 + "        </div> "
+		 + "        <div class=\"jive-content-title\"> "
+		 +
+		 "            <h2><span class=\"jive-icon-big jive-icon-document\"></span> JBoss Tools / JBoss Developer Studio Usage Reporting Enablement</h2> "
+		 + "        </div> "
+		 + "        <div class=\"jive-content-header-version\"> "
+		 + "            VERSION 5&nbsp;"
+		 +
+		 "                <a href=\"/wiki/JBossToolsJBossDeveloperStudioUsageReportingEnablement/diff?secondVersionNumber=5\" title=\"Click to view article history\"><img class=\"jive-icon-sml jive-icon-search\" src=\"/4.0.5/images/transparent.png\" alt=\"Click to view article history\" /></a> "
+		 + "        </div> "
+		 + "		<div class=\"jive-content-header-details\"> "
+		 + " "
+		 + "Created on: Aug 24, 2010 5:39 AM by"
+		 + "<a href=\"/people/adietish\""
+		 + "id=\"jive-72036899,987,346,482,238\""
+		 + "onmouseover=\"quickuserprofile.getUserProfileTooltip(72036);\""
+		 + "onmouseout=\"quickuserprofile.cancelTooltip();\""
+		 + "class=\"jiveTT-hover-user jive-username-link\""
+		 + ">Andre Dietisheim</a>            <span>-</span> "
+		 + "Last Modified:&nbsp;"
+		 + "Aug 24, 2010 5:53 AM"
+		 + "by <a href=\"/people/adietish\""
+		 + "id=\"jive-72036899,987,347,353,238\""
+		 + "onmouseover=\"quickuserprofile.getUserProfileTooltip(72036);\""
+		 + "onmouseout=\"quickuserprofile.cancelTooltip();\""
+		 + "class=\"jiveTT-hover-user jive-username-link\""
+		 + ">Andre Dietisheim</a>		</div> "
+		 + " "
+		 + "	</div> "
+		 + "	<div class=\"jive-content-body\"> "
+		 + " "
+		 +
+		 "<!-- [DocumentBodyStart:e26c60c0-cb73-47b7-bded-f4eb7320305b] --><div class=\"jive-rendered-content\"><p>This article is queried by the JBoss Tools / JBoss Developer Studio usage reporting plugin. It implements a global kill-switch that allows us to disable usage reporting stats. The plugin looks for a string of the format:</p><p style=\"min-height: 8pt; height: 8pt; padding: 0px;\">&#160;</p><p><strong>Usage&#160; Reporting&#160; is &lt;"
+		 +
+		 "ENABLED&gt;</strong>. Any value that differs from ENABLED is interpreted as DISABLED.</p><p style=\"min-height: 8pt; height: 8pt; padding: 0px;\">&#160;</p><h1>Usage Reporting is "
+		
+		 + enablementValue
+		
+		 + "</h1>"
+		 + "<h1>Dummy Value is "
+		
+		 + dummyValue
+		
+		 + "</h1>"
+		
+		 + "<h1>Integer Value is "
+		
+		 + integerValue
+		
+		 + "</h1>"
+		
+		 +
+		 "</div><!-- [DocumentBodyEnd:e26c60c0-cb73-47b7-bded-f4eb7320305b] --> "
+		 + " "
+		 + "	</div> "
+		 + "    <div class=\"jive-content-footer\"> "
+		 + " "
+		 + " "
+		 + "    <!-- BEGIN content details --> "
+		 + "        <span class=\"jive-content-footer-item\"> "
+		 + "            18&nbsp;Views</a> "
+		 + "        </span> "
+		 + "  "
+		 + " "
+		 + "    </div> "
+		 + "</div> "
+		 + "</body> "
+		 + "</html> ";
 	}
 
 	@Ignore



More information about the jbosstools-commits mailing list