Author: vpakan(a)redhat.com
Date: 2009-12-11 09:24:22 -0500 (Fri, 11 Dec 2009)
New Revision: 19208
Added:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/WidgetFinderHelper.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java
trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
Log:
Changes to support SWTBot Tests running from Command Line.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java 2009-12-11
14:15:30 UTC (rev 19207)
+++
trunk/jsf/tests/org.jboss.tools.jsf.ui.bot.test/src/org/jboss/tools/jsf/ui/bot/test/smoke/AddRemoveJSFCapabilitiesTest.java 2009-12-11
14:24:22 UTC (rev 19208)
@@ -11,22 +11,17 @@
package org.jboss.tools.jsf.ui.bot.test.smoke;
-import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.withRegex;
-
import java.io.File;
-
-import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.widgets.MenuItem;
-import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
import org.eclipse.swtbot.swt.finder.SWTBot;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
-import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
-import org.eclipse.swtbot.swt.finder.results.StringResult;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.jsf.ui.bot.test.JSFAutoTestCase;
+import org.jboss.tools.ui.bot.ext.SWTUtilExt;
import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
+import org.jboss.tools.ui.bot.ext.helper.WidgetFinderHelper;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.jboss.tools.ui.bot.test.WidgetVariables;
@@ -44,7 +39,6 @@
private static final String CLOSE_PROJECT_POPUP_MENU = "Clo&se Project";
private static final String OPEN_PROJECT_POPUP_MENU = "Op&en Project";
private static final String DELETE_PROJECT_POPUP_MENU = "Delete";
- private static final String IMPORT_PROJECT_POPUP_MENU = "Import Existing JSF
Project...";
private static final String JBDS_REMOVE_JSF_CAPABILITIES_POPUP_MENU = "Remove Red
Hat Capabilities";
private static final String JBT_REMOVE_JSF_CAPABILITIES_POPUP_MENU = "Remove JSF
Capabilities";
@@ -74,164 +68,171 @@
* Import existing JSF Project to Workspace
*/
private void importJsfProject() {
-
- openWebProjects();
-
- openWebProjects();
- SWTBot webProjects = bot.viewByTitle(WidgetVariables.WEB_PROJECTS).bot();
- SWTBotTree tree = webProjects.tree();
- ContextMenuHelper.prepareTreeItemForContextMenu(tree);
-
- new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
- IMPORT_PROJECT_POPUP_MENU, false)).click();
-
- bot.shell("Import JSF Project").activate();
-
String[] parts =
System.getProperty("eclipse.commands").split("\n");
-
+
int index = 0;
- for (index = 0;parts.length > index + 1 &&
!parts[index].equals("-data");index+=2){
+ for (index = 0;parts.length > index + 1 &&
!parts[index].equals("-data");index++){
// do nothing just go through
}
-
+
if (parts.length > index + 1){
String webXmlFileLocation = parts[index + 1] + File.separator
- + JBT_TEST_PROJECT_NAME + File.separator
- + "WebContent" + File.separator
- + "WEB-INF" + File.separator
- + "web.xml";
+ + JBT_TEST_PROJECT_NAME + File.separator
+ + "WebContent" + File.separator
+ + "WEB-INF" + File.separator
+ + "web.xml";
+
+ bot.menu(IDELabel.Menu.FILE).menu(IDELabel.Menu.IMPORT).click();
+ bot.shell(IDELabel.Shell.IMPORT).activate();
+ SWTBotTree tree = bot.tree();
+ delay();
+ tree.expandNode("Other").select("JSF Project");
+ bot.button("Next >").click();
+ bot.shell(IDELabel.Shell.IMPORT_JSF_PROJECT).activate();
+
bot.textWithLabel("web.xml Location*").setText(webXmlFileLocation);
- }
- else{
- throw new RuntimeException("eclipse.commands property doesn't contain
-data option");
- }
- bot.button(WidgetVariables.NEXT_BUTTON).click();
- // Specify Application Server for Deployment
- bot.button(WidgetVariables.NEW_BUTTON, 1).click();
- bot.shell("New Server").activate();
- bot.tree().expandNode("JBoss Enterprise Middleware")
- .select("JBoss Enterprise Application Platform 4.3");
- bot.button(WidgetVariables.FINISH_BUTTON).click();
- delay();
- // Finish Import
- bot.button(WidgetVariables.FINISH_BUTTON).click();
- bot.shell("Warning").activate();
- bot.button(WidgetVariables.CONTINUE_BUTTON).click();
-
- waitForBlockingJobsAcomplished(BUILDING_WS);
- // Start Application Server
- openServerView();
- SWTBot servers = bot.viewByTitle(WidgetVariables.SERVERS)
- .bot();
- SWTBotTree serverTree = servers.tree();
-
- ContextMenuHelper.prepareTreeItemForContextMenu(serverTree);
-
- new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree,
- "Start", false)).click();
- waitForBlockingJobsAcomplished(45*1000L,STARTING_JBOSS_EAP_43_RUNTIME);
- // Run it on server
- openPackageExplorer();
- SWTBot packageExplorer = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
+ bot.button(WidgetVariables.NEXT_BUTTON).click();
+ // Default Application Server is the one bundled with JBDS Installation
+ String asStartingJob = IDELabel.ServerJobName.STARTING_JBOSS_EAP;
+ String asStoppingJob = IDELabel.ServerJobName.STOPPING_JBOSS_EAP;
+ // Check if there is defined Application Server if not create one
+ boolean isServerDefined = false;
+ try{
+ bot.label(IDELabel.ImportJSFProjectDialog.CHOICE_LIST_IS_EMPTY);
+ } catch (WidgetNotFoundException wnfe){
+ isServerDefined = true;
+ }
+ if (!isServerDefined){
+ // Specify Application Server for Deployment
+ bot.button(WidgetVariables.NEW_BUTTON, 1).click();
+ bot.shell("New Server").activate();
+ bot.tree().expandNode("JBoss Enterprise Middleware")
+ .select("JBoss Enterprise Application Platform 4.3");
+ bot.button(WidgetVariables.FINISH_BUTTON).click();
+ // Server Jobs has different labels now
+ asStartingJob = IDELabel.ServerJobName.STARTING_JBOSS_EAP_43_RUNTIME;
+ asStoppingJob = IDELabel.ServerJobName.STOPPING_JBOSS_EAP_43_RUNTIME;
+ }
+ delay();
+ // Finish Import
+ bot.button(WidgetVariables.FINISH_BUTTON).click();
+ bot.shell("Warning").activate();
+ bot.button(WidgetVariables.CONTINUE_BUTTON).click();
+
+ waitForBlockingJobsAcomplished(BUILDING_WS);
+ // Start Application Server
+ openServerView();
+ SWTBot servers = bot.viewByTitle(WidgetVariables.SERVERS)
.bot();
- SWTBotTree packageExplorerTree = packageExplorer.tree();
+ SWTBotTree serverTree = servers.tree();
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(serverTree);
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree,
+ "Start", false)).click();
+ waitForBlockingJobsAcomplished(45*1000L,asStartingJob);
+ // Run it on server
+ openPackageExplorer();
+ SWTBot packageExplorer = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
+ .bot();
+ SWTBotTree packageExplorerTree = packageExplorer.tree();
- packageExplorerTree.setFocus();
+ packageExplorerTree.setFocus();
- SWTBotTreeItem packageExplorerTreeItem = packageExplorerTree
- .getTreeItem(JBT_TEST_PROJECT_NAME);
- packageExplorerTreeItem.select();
- packageExplorerTreeItem.click();
- // Search for Menu Item with Run on Server substring within label
- final SWTBotMenu menuRunAs = bot.menu("Run").menu("Run As");
- bot.getDisplay().syncExec(new Runnable() {
- public void run() {
- int menuItemIndex = 0;
- boolean isFound = false;
- final MenuItem[] menuItems = menuRunAs.widget.getMenu().getItems();
- while (!isFound && menuItemIndex < menuItems.length){
- if (menuItems[menuItemIndex].getText().indexOf("Run on Server") >
- 1){
- isFound = true;
+ SWTBotTreeItem packageExplorerTreeItem = packageExplorerTree
+ .getTreeItem(JBT_TEST_PROJECT_NAME);
+ packageExplorerTreeItem.select();
+ packageExplorerTreeItem.click();
+ // Search for Menu Item with Run on Server substring within label
+ final SWTBotMenu menuRunAs = bot.menu("Run").menu("Run As");
+ bot.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ int menuItemIndex = 0;
+ boolean isFound = false;
+ final MenuItem[] menuItems = menuRunAs.widget.getMenu().getItems();
+ while (!isFound && menuItemIndex < menuItems.length){
+ if (menuItems[menuItemIndex].getText().indexOf("Run on Server")
> - 1){
+ isFound = true;
+ }
+ else{
+ menuItemIndex++;
+ }
}
+ if (isFound){
+ setMiRunOnServer(menuItems[menuItemIndex]);
+ }
else{
- menuItemIndex++;
+ setMiRunOnServer(null);
}
}
- if (isFound){
- setMiRunOnServer(menuItems[menuItemIndex]);
- }
- else{
- setMiRunOnServer(null);
- }
+ });
+
+ if (getMiRunOnServer() != null){
+ new SWTBotMenu(getMiRunOnServer()).click();
}
- });
+ else
+ {
+ throw new WidgetNotFoundException("Menu item with mnemonic Run on
Server");
+ }
- if (getMiRunOnServer() != null){
- new SWTBotMenu(getMiRunOnServer()).click();
+ bot.shell("Run On Server").activate();
+ bot.button(WidgetVariables.FINISH_BUTTON).click();
+
+ waitForBlockingJobsAcomplished(10*1000L , BUILDING_WS);
+ waitForBlockingJobsAcomplished(10*1000L , UPDATING_INDEXES);
+ // Check Browser Content
+ String browserText = WidgetFinderHelper.browserInEditorText(bot, "Input User
Name Page",true);
+
+ assertTrue("Displayed HTML page has wrong content",
+ browserText.indexOf("<TITLE>Input User Name Page</TITLE>")
> - 1);
+ // Stop Application Server and remove Application Server from Server View
+ openServerView();
+
+ ContextMenuHelper.prepareTreeItemForContextMenu(serverTree);
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree,
+ "Stop", false)).click();
+
+ waitForBlockingJobsAcomplished(10*1000L , asStoppingJob);
+
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree,
+ "Delete", false)).click();
+ bot.shell("Delete Server").activate();
+ bot.button(WidgetVariables.OK_BUTTON).click();
+
+ setException(null);
}
- else
- {
- throw new WidgetNotFoundException("Menu item with mnemonic Run on
Server");
+ else{
+ throw new RuntimeException("eclipse.commands property doesn't contain
-data option");
}
-
- bot.shell("Run On Server").activate();
- bot.button(WidgetVariables.FINISH_BUTTON).click();
- waitForBlockingJobsAcomplished(10*1000L , BUILDING_WS);
- waitForBlockingJobsAcomplished(10*1000L , UPDATING_INDEXES);
- // Check Browser Content
- final SWTBotEditor editor = bot.editorByTitle("Input User Name Page");
- final Browser browser =
((Browser)editor.bot().widgets(withRegex("<HTML><HEAD>.*\n*.*")).get(0));
- final String browserText = UIThreadRunnable
- .syncExec(new StringResult() {
- public String run() {
- return browser.getText();
- }
- });
- assertTrue("Displayed HTML page has wrong content",
- browserText.indexOf("<TITLE>Input User Name Page</TITLE>")
> - 1);
- editor.close();
- // Stop Application Server and remove Application Server from Server View
- openServerView();
- ContextMenuHelper.prepareTreeItemForContextMenu(serverTree);
-
- new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree,
- "Stop", false)).click();
-
- waitForBlockingJobsAcomplished(10*1000L , STOPPING_JBOSS_EAP_43_RUNTIME);
-
- new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree,
- "Delete", false)).click();
- bot.shell("Delete Server").activate();
- bot.button(WidgetVariables.OK_BUTTON).click();
-
- setException(null);
-
}
/**
* Delete JSF Project from workspace
*/
private void deleteJsfProject() {
+
+ removeJSFTestProjectFromServers();
openPackageExplorer();
+ delay();
SWTBot packageExplorer = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
.bot();
SWTBotTree tree = packageExplorer.tree();
+ delay();
ContextMenuHelper.prepareTreeItemForContextMenu(tree,
tree.getTreeItem(JBT_TEST_PROJECT_NAME));
-
new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
DELETE_PROJECT_POPUP_MENU, false)).click();
-
bot.shell("Delete Resources").activate();
bot.button(WidgetVariables.OK_BUTTON).click();
- delay();
+ new SWTUtilExt(bot).waitForNonIgnoredJobs();
}
@@ -242,9 +243,10 @@
private void removeJSFCapabilities(boolean jbdsIsRunning) {
openWebProjects();
-
delay();
+ removeJSFTestProjectFromServers();
+
SWTBot webProjects = bot.viewByTitle(WidgetVariables.WEB_PROJECTS).bot();
SWTBotTree tree = webProjects.tree();
@@ -290,6 +292,7 @@
private void addJSFCapabilities() {
openPackageExplorer();
+ delay();
SWTBot packageExplorer = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
.bot();
SWTBotTree tree = packageExplorer.tree();
@@ -344,6 +347,7 @@
private void closeOpenJsfProject() {
openPackageExplorer();
+ delay();
SWTBot packageExplorer = bot.viewByTitle(WidgetVariables.PACKAGE_EXPLORER)
.bot();
SWTBotTree tree = packageExplorer.tree();
@@ -359,6 +363,8 @@
new SWTBotMenu(ContextMenuHelper.getContextMenu(tree,
OPEN_PROJECT_POPUP_MENU, false)).click();
+ delay();
+
}
private void setMiRunOnServer(MenuItem menuItem){
@@ -368,5 +374,37 @@
private MenuItem getMiRunOnServer(){
return miRunOnServer;
}
+ /**
+ * Remove JSF Test Project from all Servers
+ */
+ private void removeJSFTestProjectFromServers(){
+
+ openServerView();
+ delay();
+
+ SWTBot servers = bot.viewByTitle(WidgetVariables.SERVERS)
+ .bot();
+ SWTBotTree serverTree = servers.tree();
+
+ // Expand All
+ for (SWTBotTreeItem serverTreeItem : serverTree.getAllItems()){
+ serverTreeItem.expand();
+ // if JSF Test Project is deployed to server remove it
+ int itemIndex = 0;
+ SWTBotTreeItem[] serverTreeItemChildren = serverTreeItem.getItems();
+ while (itemIndex < serverTreeItemChildren.length
+ &&
!serverTreeItemChildren[itemIndex].getText().startsWith(JBT_TEST_PROJECT_NAME)){
+ itemIndex++;
+ }
+ // Server Tree Item has Child with Text equal to JSF TEst Project
+ if (itemIndex < serverTreeItemChildren.length){
+
ContextMenuHelper.prepareTreeItemForContextMenu(serverTree,serverTreeItemChildren[itemIndex]);
+ new SWTBotMenu(ContextMenuHelper.getContextMenu(serverTree, IDELabel.Menu.REMOVE,
false)).click();
+ bot.shell("Server").activate();
+ bot.button(WidgetVariables.OK_BUTTON).click();
+ }
+ }
+ delay();
+ }
}
Modified:
trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java 2009-12-11
14:15:30 UTC (rev 19207)
+++
trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java 2009-12-11
14:24:22 UTC (rev 19208)
@@ -22,8 +22,7 @@
protected static final String VISUAL_UPDATE = "Visual Editor View Update";
protected static final String VISUAL_REFRESH = "Visual Editor Refresh";
protected static final String UPDATING_INDEXES = "Updating indexes";
- protected static final String STARTING_JBOSS_EAP_43_RUNTIME = "Starting JBoss EAP
4.3 Runtime Serve";
- protected static final String STOPPING_JBOSS_EAP_43_RUNTIME = "Stoppig JBoss EAP
4.3 Runtime Server";
+
private static Properties SWT_BOT_PROPERTIES;
private volatile Throwable exception;
public static final String PATH_TO_SWT_BOT_PROPERTIES = "SWTBot.properties";
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java 2009-12-11
14:15:30 UTC (rev 19207)
+++
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTUtilExt.java 2009-12-11
14:24:22 UTC (rev 19208)
@@ -25,6 +25,7 @@
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.swt.finder.utils.SWTUtils;
import org.jboss.tools.ui.bot.ext.types.JobLists;
import org.jboss.tools.ui.bot.ext.types.JobState;
@@ -39,9 +40,9 @@
public class SWTUtilExt extends SWTUtils {
private Logger log = Logger.getLogger(SWTUtilExt.class);
- protected SWTBotExt bot;
+ protected SWTWorkbenchBot bot;
- public SWTUtilExt(SWTBotExt bot) {
+ public SWTUtilExt(SWTWorkbenchBot bot) {
this.bot = bot;
}
Added:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/WidgetFinderHelper.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/WidgetFinderHelper.java
(rev 0)
+++
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/WidgetFinderHelper.java 2009-12-11
14:24:22 UTC (rev 19208)
@@ -0,0 +1,69 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.ui.bot.ext.helper;
+
+import static org.eclipse.swtbot.swt.finder.matchers.WidgetMatcherFactory.widgetOfType;
+
+import org.eclipse.swt.browser.Browser;
+import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
+import org.eclipse.swtbot.swt.finder.results.StringResult;
+
+/**
+ * Helper to find widgets
+ * @author Vladimir Pakan
+ *
+ */
+public class WidgetFinderHelper {
+ /**
+ * Returns Browser contained in Editor with specified Title
+ * @param bot
+ * @param editorTitle
+ * @return
+ */
+ public static Browser browserInEditor(SWTWorkbenchBot bot , String editorTitle){
+ return browserInEditor(bot.editorByTitle(editorTitle));
+ }
+ /**
+ * Returns Browser contained in specified Editor
+ * @param editor
+ * @return
+ */
+ public static Browser browserInEditor(SWTBotEditor editor){
+ return ((Browser)editor.bot().widgets(widgetOfType(Browser.class)).get(0));
+ }
+
+ public static final String browserInEditorText(SWTWorkbenchBot bot , String editorTitle
, boolean closeEditor){
+
+ String browserText = null;
+
+ SWTBotEditor editor = bot.editorByTitle(editorTitle);
+
+ final Browser browser = browserInEditor(editor);
+
+ browserText = UIThreadRunnable
+ .syncExec(new StringResult() {
+ public String run() {
+ return browser.getText();
+ }
+ });
+
+ if (closeEditor){
+ editor.close();
+ }
+
+ return browserText;
+
+ }
+
+}
Property changes on:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/WidgetFinderHelper.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2009-12-11
14:15:30 UTC (rev 19207)
+++
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2009-12-11
14:24:22 UTC (rev 19208)
@@ -40,6 +40,8 @@
public static final String ABOUT_JBOSS_DEVELOPER_STUDIO = "About JBoss Developer
Studio";
public static final String HIBERNATE_CODE_GENERATION = "Hibernate Code
Generation...";
public static final String HIBERNATE_CODE_GENERATION_CONF = "Hibernate Code
Generation Configurations...";
+ public static final String REMOVE = "Remove";
+ public static final String IMPORT = "Import...";
public static final String RUN_AS = "Run As";
}
@@ -69,6 +71,8 @@
public static final String NEW_JSP_FILE = "New JSP File";
public static final String PROPERTIES = "Properties";
public static final String NEW_XHTML_FILE = "New File XHTML";
+ public static final String IMPORT_JSF_PROJECT = "Import JSF Project";
+ public static final String IMPORT = "Import";
}
public class EntityGroup {
@@ -195,4 +199,36 @@
public static final String TEMPLATE_FACELET_FORM_XHTML =
"FaceletForm.xhtml";
}
+
+ public static final class ServerName {
+
+ public static final String JBOSS_EAP_4_3_RUNTIME_SERVER = "JBoss EAP 4.3 Runtime
Server";
+ // Server with this Label is created during JBDS installation for bundled EAP
+ public static final String JBOSS_EAP = "jboss-eap";
+
+ }
+
+ public static final class ServerRuntimeName {
+
+ public static final String JBOSS_EAP_4_3 = "JBoss EAP 4.3 Runtime";
+ // Server Runtime with this Label is created during JBDS installation for bundled
EAP
+ public static final String JBOSS_EAP = "jboss-eap Runtime";
+
+ }
+
+ public static final class ServerJobName {
+
+ public static final String STARTING_JBOSS_EAP_43_RUNTIME = "Starting JBoss EAP
4.3 Runtime Serve";
+ public static final String STOPPING_JBOSS_EAP_43_RUNTIME = "Stoppig JBoss EAP
4.3 Runtime Server";
+ public static final String STARTING_JBOSS_EAP = "Starting jboss-eap";
+ public static final String STOPPING_JBOSS_EAP = "Stopping jboss-eap";
+
+ }
+
+ public static class ImportJSFProjectDialog {
+
+ public static final String RUNTIME = "Runtime*";
+ public static final String CHOICE_LIST_IS_EMPTY = "Choice list is
empty.";
+
+ }
}