Author: jpeterka
Date: 2011-03-15 08:58:42 -0400 (Tue, 15 Mar 2011)
New Revision: 29788
Added:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotFactory.java
Log:
swtbotext: SWTBotFactory added
Added:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotFactory.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotFactory.java
(rev 0)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotFactory.java 2011-03-15
12:58:42 UTC (rev 29788)
@@ -0,0 +1,69 @@
+package org.jboss.tools.ui.bot.ext;
+
+import org.jboss.tools.ui.bot.ext.view.ConsoleView;
+import org.jboss.tools.ui.bot.ext.view.PackageExplorer;
+import org.jboss.tools.ui.bot.ext.view.ProblemsView;
+import org.jboss.tools.ui.bot.ext.view.ProjectExplorer;
+import org.jboss.tools.ui.bot.ext.view.ServersView;
+
+/**
+ * Provide factory for bot extensions, bot views and other parts. If needed
+ * getter methods can be re-implemented to avoid specific bot issues
+ *
+ * @author jpeterka
+ *
+ */
+public class SWTBotFactory {
+ protected static final SWTBotExt bot = new SWTBotExt();
+ protected static final SWTEclipseExt eclipse = new SWTEclipseExt(bot);
+ protected static final SWTUtilExt util = new SWTUtilExt(bot);
+ protected static final SWTOpenExt open = new SWTOpenExt(bot);
+ protected static final SWTJBTExt jbt = new SWTJBTExt(bot);
+
+ // Views
+ protected static final PackageExplorer packageExplorer = new PackageExplorer();
+ protected static final ProjectExplorer projectExplorer = new ProjectExplorer();
+ protected static final ServersView servers = new ServersView();
+ protected static final ProblemsView problems = new ProblemsView();
+ protected static final ConsoleView console = new ConsoleView();
+
+ public static SWTBotExt getBot() {
+ return bot;
+ }
+
+ public static SWTEclipseExt getEclipse() {
+ return eclipse;
+ }
+
+ public static SWTUtilExt getUtil() {
+ return util;
+ }
+
+ public static SWTOpenExt getOpen() {
+ return open;
+ }
+
+ public static SWTJBTExt getJbt() {
+ return jbt;
+ }
+
+ public static PackageExplorer getPackageexplorer() {
+ return packageExplorer;
+ }
+
+ public static ProjectExplorer getProjectexplorer() {
+ return projectExplorer;
+ }
+
+ public static ServersView getServers() {
+ return servers;
+ }
+
+ public static ProblemsView getProblems() {
+ return problems;
+ }
+
+ public static ConsoleView getConsole() {
+ return console;
+ }
+}
Property changes on:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotFactory.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain