[jbosstools-commits] JBoss Tools SVN: r30372 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Apr 6 08:51:53 EDT 2011


Author: lzoubek at redhat.com
Date: 2011-04-06 08:51:52 -0400 (Wed, 06 Apr 2011)
New Revision: 30372

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/Annotations.java
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java
Log:
swtbot ext: added secure storage requirement (Annotation)


Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/Annotations.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/Annotations.java	2011-04-06 12:50:40 UTC (rev 30371)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/Annotations.java	2011-04-06 12:51:52 UTC (rev 30372)
@@ -81,6 +81,12 @@
 		 * @return
 		 */
 		boolean runOnce() default false;
+		/**
+		 * if your class requires Secured Storage to be configured (master password is provided in configuration properties)
+		 * set this to true, default is false
+		 * @return
+		 */
+		boolean secureStorage() default false;
 	}
 	/**
 	 * Server requirement, by default matches all server types and versions,

Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java	2011-04-06 12:50:40 UTC (rev 30371)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java	2011-04-06 12:51:52 UTC (rev 30372)
@@ -272,6 +272,9 @@
 		if (requies == null) {
 			return reqs;
 		}
+		if (requies.secureStorage() && currentConfig.getSecureStorage()==null) {
+			return null;
+		}
 		if (requies.server().required()) {
 			RequirementBase req = getServerRequirement(requies.server());
 			if (req == null) {



More information about the jbosstools-commits mailing list