JBoss Tools SVN: r39100 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-24 07:15:59 -0500 (Fri, 24 Feb 2012)
New Revision: 39100
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
Log:
[JBIDE-11037] changed error to warning iforming the user that the app names could possibly conflict with an existing proj in his workspace
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java 2012-02-24 10:22:41 UTC (rev 39099)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java 2012-02-24 12:15:59 UTC (rev 39100)
@@ -78,6 +78,7 @@
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Text;
import org.jboss.tools.common.ui.WizardUtils;
+import org.jboss.tools.common.ui.databinding.ParametrizableWizardPageSupport;
import org.jboss.tools.common.ui.databinding.ValueBindingBuilder;
import org.jboss.tools.openshift.express.internal.ui.OpenShiftUIActivator;
import org.jboss.tools.openshift.express.internal.ui.utils.Logger;
@@ -802,8 +803,8 @@
"An application with the same name already exists on OpenShift.");
}
if (isExistingProject(applicationName)) {
- return ValidationStatus.error(
- NLS.bind("A project {0} already exists in the workspace.", applicationName));
+ return ValidationStatus.warning(
+ NLS.bind("A project already exists with the same application name. This can cause problems when importing.", applicationName));
}
return ValidationStatus.ok();
}
@@ -853,4 +854,11 @@
return targets;
}
}
+
+ protected void setupWizardPageSupport(DataBindingContext dbc) {
+ ParametrizableWizardPageSupport.create(
+ IStatus.ERROR | IStatus.INFO | IStatus.CANCEL, this,
+ dbc);
+ }
+
}
12 years, 7 months
JBoss Tools SVN: r39099 - in branches/jbosstools-3.3.0.Beta1/as/plugins: org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2012-02-24 05:22:41 -0500 (Fri, 24 Feb 2012)
New Revision: 39099
Modified:
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/IJBossRuntimeResourceConstants.java
branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBoss7LaunchConfigurator.java
Log:
JBIDE-10342 to beta1 branch
Modified: branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/IJBossRuntimeResourceConstants.java
===================================================================
--- branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/IJBossRuntimeResourceConstants.java 2012-02-24 10:14:22 UTC (rev 39098)
+++ branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/IJBossRuntimeResourceConstants.java 2012-02-24 10:22:41 UTC (rev 39099)
@@ -117,4 +117,7 @@
public static final String DESCRIPTOR_CONNECTOR = "META-INF/ra.xml"; //$NON-NLS-1$
public static final String JBOSS_AS = "JBOSS_AS"; //$NON-NLS-1$
public static final String JBOSS_AS_EAP_DIRECTORY = "jboss-as"; //$NON-NLS-1$
+
+ public static final String AS_70_MANAGEMENT_SCRIPT = "jboss-admin.sh"; //$NON-NLS-1$
+ public static final String AS_71_MANAGEMENT_SCRIPT = "jboss-cli.sh"; //$NON-NLS-1$
}
Modified: branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBoss7LaunchConfigurator.java
===================================================================
--- branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBoss7LaunchConfigurator.java 2012-02-24 10:14:22 UTC (rev 39098)
+++ branches/jbosstools-3.3.0.Beta1/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSEJBoss7LaunchConfigurator.java 2012-02-24 10:22:41 UTC (rev 39099)
@@ -15,11 +15,15 @@
import org.eclipse.core.runtime.Path;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.IServerType;
import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.server.ILaunchConfigConfigurator;
import org.jboss.ide.eclipse.as.core.server.internal.JBossServer;
+import org.jboss.ide.eclipse.as.core.util.ArgsUtil;
import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeConstants;
import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeResourceConstants;
+import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
+import org.jboss.ide.eclipse.as.core.util.LaunchCommandPreferences;
import org.jboss.ide.eclipse.as.core.util.ServerConverter;
/**
@@ -54,11 +58,25 @@
protected String getShutdownCommand(JBossServer jbossServer, IJBossServerRuntime jbossRuntime) throws CoreException {
String rseHome = RSEUtils.getRSEHomeDir(jbossServer.getServer());
IPath p = new Path(rseHome).append(IJBossRuntimeResourceConstants.BIN);
- return p.toString() + "/jboss-admin.sh --connect command=:shutdown";
+ return p.toString() + "/" + getManagementScript(jbossServer) + " --connect command=:shutdown";
}
+
+ protected String getManagementScript(JBossServer server) {
+ IServerType type = server.getServer().getServerType();
+ if( type.getId().equals(IJBossToolingConstants.SERVER_AS_71) || type.getId().equals(IJBossToolingConstants.SERVER_EAP_60)) {
+ return IJBossRuntimeResourceConstants.AS_71_MANAGEMENT_SCRIPT;
+ }
+ return IJBossRuntimeResourceConstants.AS_70_MANAGEMENT_SCRIPT;
+ }
protected String getLaunchCommand(JBossServer jbossServer, IJBossServerRuntime jbossRuntime) throws CoreException {
String programArguments = getDefaultProgramArguments(jbossServer, jbossRuntime);
+ if( LaunchCommandPreferences.listensOnAllHosts(jbossServer.getServer())) {
+ programArguments = ArgsUtil.setArg(programArguments,
+ IJBossRuntimeConstants.STARTUP_ARG_HOST_SHORT,
+ null, "0.0.0.0");
+ }
+
String vmArguments = getDefaultVMArguments(jbossServer, jbossRuntime);
String jar = getJar(jbossServer, jbossRuntime);
12 years, 7 months
JBoss Tools SVN: r39098 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2012-02-24 05:14:22 -0500 (Fri, 24 Feb 2012)
New Revision: 39098
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/pom.xml
Log:
Added dependency for community examples
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/pom.xml
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/pom.xml 2012-02-24 10:06:38 UTC (rev 39097)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/pom.xml 2012-02-24 10:14:22 UTC (rev 39098)
@@ -46,6 +46,11 @@
<artifactId>org.jboss.tools.project.examples.feature.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.tools.community.project.examples.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
</dependencies>
</configuration>
</plugin>
12 years, 7 months
JBoss Tools SVN: r39097 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2012-02-24 05:06:38 -0500 (Fri, 24 Feb 2012)
New Revision: 39097
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java
Log:
Quick fix window now appears everytime
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java 2012-02-24 10:06:07 UTC (rev 39096)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/ExampleTest.java 2012-02-24 10:06:38 UTC (rev 39097)
@@ -88,12 +88,13 @@
String hasProjName = wiz.textWithLabel(JBossToolsProjectExamples.TEXT_PROJECT_NAME).getText();
assertTrue(String.format("Example project name changed, have '%s', expected '%s'",hasProjName,getProjectNames()[0]),hasProjName.equals(getProjectNames()[0]));
int projSize = getProjectSize(wiz.textWithLabel(JBossToolsProjectExamples.TEXT_PROJECT_SIZE).getText());
- wiz.checkBox("Show the Quick Fix dialog").deselect();
wiz.button(IDELabel.Button.FINISH).click();
SWTBotShell shell = bot.shell("Downloading...");
shell.activate();
bot.waitUntil(shellCloses(shell),Timing.time(projSize*20*1000));
util.waitForNonIgnoredJobs(Timing.time20S());
+ bot.waitForShell("New Project Example");
+ bot.shell("New Project Example").bot().button(IDELabel.Button.FINISH).click();
for (String project : getProjectNames()) {
assertTrue(String.format("Example project '%s' was not found in project explorer",project),projectExplorer.existsResource(project));
}
12 years, 7 months
JBoss Tools SVN: r39096 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/gen.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2012-02-24 05:06:07 -0500 (Fri, 24 Feb 2012)
New Revision: 39096
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/gen/ActionItem.java
Log:
Changed examples location
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/gen/ActionItem.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/gen/ActionItem.java 2012-02-24 09:56:51 UTC (rev 39095)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/gen/ActionItem.java 2012-02-24 10:06:07 UTC (rev 39096)
@@ -3200,6 +3200,7 @@
public String getName() { return "Project Examples";}
public List<String> getGroupPath() {
List<String> l = new Vector<String>();
+ l.add("Examples");
l.add("JBoss Tools");
return l;
}
12 years, 7 months
JBoss Tools SVN: r39095 - in trunk/central/tests/org.jboss.tools.central.test.ui.bot: resources and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: rhopp
Date: 2012-02-24 04:56:51 -0500 (Fri, 24 Feb 2012)
New Revision: 39095
Added:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/requirements.properties
trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/
trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/as7.swtbot.test.properties
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/DocumentationSectionTest.java
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/EmptyTestForHudson.java
Removed:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/properties/
Modified:
trunk/central/tests/org.jboss.tools.central.test.ui.bot/pom.xml
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java
trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsTest.java
Log:
Added empty test to test if JBossAS7 resource is working on hudson
Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/pom.xml
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/pom.xml 2012-02-24 09:21:10 UTC (rev 39094)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/pom.xml 2012-02-24 09:56:51 UTC (rev 39095)
@@ -13,8 +13,9 @@
<packaging>eclipse-test-plugin</packaging>
<properties>
- <!-- for debugging ucomment and comment next line <systemProperties>-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y -Dswtbot.test.properties.file=${swtbot.properties}</systemProperties> -->
- <systemProperties>-Dswtbot.test.properties.file=${swtbot.properties}</systemProperties>
+ <jbosstools.test.jbossas.home>${requirement.build.root}/jboss-as-web-7.0.2.Final</jbosstools.test.jbossas.home>
+ <!-- for debugging ucomment and comment next line <systemProperties>-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y -Djbosstools.test.jbossas.home=${jbosstools.test.jbossas.home} -Dswtbot.test.properties.file=${swtbot.properties}</systemProperties> -->
+ <systemProperties>-Djbosstools.test.jbossas.home=${jbosstools.test.jbossas.home} -Dswtbot.test.properties.file=${swtbot.properties}</systemProperties>
</properties>
<build>
@@ -23,6 +24,10 @@
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<configuration>
+ <!-- <systemPropertyVariables>
+ <MOZILLA_FIVE_HOME>/home/rhopp/jbdevstudio/studio/plugins/org.mozilla.xulrunner.gtk.linux.x86_64_1.9.2.19pre/xulrunner</MOZILLA_FIVE_HOME>
+ <LD_LIBRARY_PATH>${env.MOZILLA_FIVE_HOME}</LD_LIBRARY_PATH>
+ </systemPropertyVariables> -->
<testSuite>org.jboss.tools.central.test.ui.bot</testSuite>
<testClass>org.jboss.tools.central.test.ui.bot.CentralAllBotTests</testClass>
<useUIThread>false</useUIThread>
@@ -53,6 +58,11 @@
<artifactId>org.jboss.tools.openshift.express.feature.feature.group</artifactId>
<version>0.0.0</version>
</dependency>
+ <dependency>
+ <type>p2-installable-unit</type>
+ <artifactId>org.jboss.tools.xulrunner.feature.feature.group</artifactId>
+ <version>0.0.0</version>
+ </dependency>
</dependencies>
</configuration>
</plugin>
Added: trunk/central/tests/org.jboss.tools.central.test.ui.bot/requirements.properties
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/requirements.properties (rev 0)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/requirements.properties 2012-02-24 09:56:51 UTC (rev 39095)
@@ -0,0 +1 @@
+requirements=jbossas-7.0.2.Final
\ No newline at end of file
Property changes on: trunk/central/tests/org.jboss.tools.central.test.ui.bot/requirements.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Copied: trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/as7.swtbot.test.properties (from rev 38859, trunk/central/tests/org.jboss.tools.central.test.ui.bot/properties/as7.swtbot.test.properties)
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/as7.swtbot.test.properties (rev 0)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/as7.swtbot.test.properties 2012-02-24 09:56:51 UTC (rev 39095)
@@ -0,0 +1 @@
+SERVER=AS,7.0,default,${jbosstools.test.jbossas.home}
\ No newline at end of file
Property changes on: trunk/central/tests/org.jboss.tools.central.test.ui.bot/resources/as7.swtbot.test.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java 2012-02-24 09:21:10 UTC (rev 39094)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CentralAllBotTests.java 2012-02-24 09:56:51 UTC (rev 39095)
@@ -7,7 +7,9 @@
@RunWith(RequirementAwareSuite.class)
@SuiteClasses({
//BaseFunctionalityTest.class,
- CreateProjectsTest.class
+ //CreateProjectsTest.class
+ //DocumentationSectionTest.class
+ EmptyTestForHudson.class
})
public class CentralAllBotTests {
Modified: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsTest.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsTest.java 2012-02-24 09:21:10 UTC (rev 39094)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/CreateProjectsTest.java 2012-02-24 09:56:51 UTC (rev 39095)
@@ -120,9 +120,12 @@
//@Test
public void projectExamplesSectionTest(){
SWTBotTwistie twistieBot = bot.twistieByLabel("JBoss Quickstarts");
- if (!twistieBot.isExpanded()){
+ while (!twistieBot.isExpanded()){
twistieBot.toggle();
}
+ /*if (!twistieBot.isExpanded()){
+ twistieBot.toggle();
+ }*/
SWTFormsBotExt formsBot = SWTBotFactory.getFormsBot();
formsBot.formTextWithText("Helloworld").click();
bot.clickButton("Start");
@@ -139,34 +142,6 @@
bot.waitWhile(new NonSystemJobRunsCondition(), TaskDuration.NORMAL.getTimeout());
}
- @Test
- public void documentationSectionTest(){
- /*bot.hyperlink("New and Noteworthy").click();
- bot.waitUntil(new BrowserIsLoaded(bot.browserExt()), TaskDuration.LONG.getTimeout());
- assertFalse("JBoss Central sould not be active editor right now", bot.activeEditor().getTitle().equals("JBoss Central"));
- bot.activeEditor().close();
- bot.hyperlink("User Forum").click();
- bot.waitUntil(new BrowserIsLoaded(bot.browserExt()), TaskDuration.LONG.getTimeout());
- assertFalse("JBoss Central sould not be active editor right now", bot.activeEditor().getTitle().equals("JBoss Central"));
- bot.activeEditor().close();*/
- testHyperlinkToBrowser("New and Noteworthy");
- testHyperlinkToBrowser("User Forum");
- testHyperlinkToBrowser("Reference");
- testHyperlinkToBrowser("Developer Forum");
- testHyperlinkToBrowser("FAQ");
- testHyperlinkToBrowser("Wiki");
- testHyperlinkToBrowser("Screencasts");
- testHyperlinkToBrowser("Issue Tracker");
- bot.sleep(TIME_10S);
- }
-
- private void testHyperlinkToBrowser(String hyperlinkText){
- bot.hyperlink(hyperlinkText).click();
- bot.waitUntil(new BrowserIsLoaded(bot.browserExt()), TaskDuration.LONG.getTimeout());
- assertFalse("JBoss Central sould not be active editor right now", bot.activeEditor().getTitle().equals("JBoss Central"));
- bot.activeEditor().close();
- }
-
private void waitForAWhile(){
bot.sleep(Long.MAX_VALUE);
}
Added: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/DocumentationSectionTest.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/DocumentationSectionTest.java (rev 0)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/DocumentationSectionTest.java 2012-02-24 09:56:51 UTC (rev 39095)
@@ -0,0 +1,42 @@
+package org.jboss.tools.central.test.ui.bot;
+
+import org.jboss.tools.ui.bot.ext.SWTTestExt;
+import org.jboss.tools.ui.bot.ext.condition.BrowserIsLoaded;
+import org.jboss.tools.ui.bot.ext.condition.TaskDuration;
+import org.jboss.tools.ui.bot.ext.parts.SWTBotBrowserExt;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class DocumentationSectionTest extends SWTTestExt {
+
+ @BeforeClass
+ public static void setup(){
+ bot.menu("Help").menu(IDELabel.JBossCentralEditor.JBOSS_CENTRAL).click();
+ util.waitForAll();
+ }
+
+ @Test
+ public void documentationSectionTest(){
+ testHyperlinkToBrowser("New and Noteworthy");
+ testHyperlinkToBrowser("User Forum");
+ testHyperlinkToBrowser("Reference");
+ testHyperlinkToBrowser("Developer Forum");
+ testHyperlinkToBrowser("FAQ");
+ testHyperlinkToBrowser("Wiki");
+ testHyperlinkToBrowser("Screencasts");
+ testHyperlinkToBrowser("Issue Tracker");
+ bot.sleep(TIME_10S);
+ }
+
+ private void testHyperlinkToBrowser(String hyperlinkText){
+ bot.hyperlink(hyperlinkText).click();
+ SWTBotBrowserExt browser = bot.browserExt();
+ bot.waitUntil(new BrowserIsLoaded(browser), TaskDuration.LONG.getTimeout());
+ assertFalse("JBoss Central sould not be active editor right now", bot.activeEditor().getTitle().equals("JBoss Central"));
+ System.out.println(browser.getText());
+ bot.activeEditor().close();
+ }
+
+
+}
Property changes on: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/DocumentationSectionTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/EmptyTestForHudson.java
===================================================================
--- trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/EmptyTestForHudson.java (rev 0)
+++ trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/EmptyTestForHudson.java 2012-02-24 09:56:51 UTC (rev 39095)
@@ -0,0 +1,17 @@
+package org.jboss.tools.central.test.ui.bot;
+
+import org.jboss.tools.ui.bot.ext.SWTTestExt;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerType;
+import org.junit.Test;
+
+
+@Require(server=(a)org.jboss.tools.ui.bot.ext.config.Annotations.Server(type=ServerType.JbossAS))
+public class EmptyTestForHudson extends SWTTestExt {
+
+
+ @Test
+ public void isRuntimeTest(){
+ assertTrue(jbt.isServerRuntimeDefined());
+ }
+}
Property changes on: trunk/central/tests/org.jboss.tools.central.test.ui.bot/src/org/jboss/tools/central/test/ui/bot/EmptyTestForHudson.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 7 months
JBoss Tools SVN: r39094 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-24 04:21:10 -0500 (Fri, 24 Feb 2012)
New Revision: 39094
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
Log:
cleanup: reformatted code to improve readability
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java 2012-02-24 09:08:01 UTC (rev 39093)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationConfigurationWizardPage.java 2012-02-24 09:21:10 UTC (rev 39094)
@@ -145,8 +145,8 @@
useExistingAppBtn.setText("Use existing application:");
useExistingAppBtn.setToolTipText("Select an existing application or uncheck to create a new one.");
useExistingAppBtn.setFocus();
- GridDataFactory.fillDefaults().span(1, 1).align(SWT.FILL, SWT.CENTER).grab(false, false)
- .applyTo(useExistingAppBtn);
+ GridDataFactory.fillDefaults()
+ .span(1, 1).align(SWT.FILL, SWT.CENTER).grab(false, false).applyTo(useExistingAppBtn);
IObservableValue useExistingAppObservable = BeanProperties.value(
ApplicationConfigurationWizardPageModel.PROPERTY_USE_EXISTING_APPLICATION).observe(pageModel);
final IObservableValue useExistingAppBtnSelection = WidgetProperties.selection().observe(useExistingAppBtn);
@@ -154,8 +154,8 @@
// existing app name
this.existingAppNameText = new Text(existingAppSelectionGroup, SWT.BORDER);
- GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).span(1, 1).grab(true, false)
- .applyTo(existingAppNameText);
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.CENTER).span(1, 1).grab(true, false).applyTo(existingAppNameText);
IObservableValue existingAppNameTextObservable = WidgetProperties.text(SWT.Modify).observe(existingAppNameText);
IObservableValue existingAppNameModelObservable = BeanProperties.value(
ApplicationConfigurationWizardPageModel.PROPERTY_EXISTING_APPLICATION_NAME).observe(pageModel);
@@ -176,21 +176,21 @@
new ApplicationToSelectNameValidator(
useExistingAppBtnSelection, existingAppNameTextObservable, existingApplicationsLoaded);
dbc.addValidationStatusProvider(existingAppValidator);
- ControlDecorationSupport.create(existingAppValidator, SWT.LEFT | SWT.TOP, null,
- new CustomControlDecorationUpdater(false));
+ ControlDecorationSupport.create(
+ existingAppValidator, SWT.LEFT | SWT.TOP, null, new CustomControlDecorationUpdater(false));
return existingAppSelectionGroup;
}
private void createExistingAppNameContentAssist() {
ControlDecoration dec = new ControlDecoration(existingAppNameText, SWT.TOP | SWT.LEFT);
- FieldDecoration contentProposalFieldIndicator = FieldDecorationRegistry.getDefault().getFieldDecoration(
- FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
+ FieldDecoration contentProposalFieldIndicator =
+ FieldDecorationRegistry.getDefault().getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
dec.setImage(contentProposalFieldIndicator.getImage());
dec.setDescriptionText("Auto-completion is enabled when you start typing an application name.");
dec.setShowOnlyOnFocus(true);
- AutoCompleteField adapter = new AutoCompleteField(existingAppNameText, new TextContentAdapter(),
- new String[] {});
+ AutoCompleteField adapter =
+ new AutoCompleteField(existingAppNameText, new TextContentAdapter(), new String[] {});
adapter.setProposals(pageModel.getApplicationNames());
}
@@ -221,8 +221,10 @@
private void createApplicationConfigurationGroup(Composite parent, DataBindingContext dbc) {
this.newAppConfigurationGroup = new Group(parent, SWT.NONE);
newAppConfigurationGroup.setText("New application");
- GridLayoutFactory.fillDefaults().numColumns(2).margins(6, 6).applyTo(newAppConfigurationGroup);
- GridDataFactory.fillDefaults().grab(true, true).align(SWT.FILL, SWT.FILL).applyTo(newAppConfigurationGroup);
+ GridLayoutFactory.fillDefaults()
+ .numColumns(2).margins(6, 6).applyTo(newAppConfigurationGroup);
+ GridDataFactory.fillDefaults()
+ .grab(true, true).align(SWT.FILL, SWT.FILL).applyTo(newAppConfigurationGroup);
IObservableValue useExistingApplication = WidgetProperties.selection().observe(useExistingAppBtn);
@@ -236,34 +238,36 @@
this.newAppNameText = new Text(newAppConfigurationGroup, SWT.BORDER);
GridDataFactory.fillDefaults().grab(true, false).align(SWT.FILL, SWT.FILL).applyTo(newAppNameText);
UIUtils.selectAllOnFocus(newAppNameText);
- final IObservableValue applicationNameTextObservable = WidgetProperties.text(SWT.Modify)
- .observe(newAppNameText);
- final IObservableValue applicationNameModelObservable = BeanProperties.value(
- ApplicationConfigurationWizardPageModel.PROPERTY_APPLICATION_NAME).observe(pageModel);
+ final IObservableValue applicationNameTextObservable =
+ WidgetProperties.text(SWT.Modify).observe(newAppNameText);
+ final IObservableValue applicationNameModelObservable =
+ BeanProperties.value(ApplicationConfigurationWizardPageModel.PROPERTY_APPLICATION_NAME).observe(
+ pageModel);
ValueBindingBuilder.bind(applicationNameTextObservable).to(applicationNameModelObservable).in(dbc);
this.newAppTypeLabel = new Label(newAppConfigurationGroup, SWT.NONE);
newAppTypeLabel.setText("Type:");
- GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).span(1, 1).applyTo(newAppTypeLabel);
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.CENTER).span(1, 1).applyTo(newAppTypeLabel);
this.newAppCartridgeCombo = new Combo(newAppConfigurationGroup, SWT.BORDER | SWT.READ_ONLY);
- GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).span(1, 1).grab(true, false)
- .applyTo(newAppCartridgeCombo);
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.CENTER).span(1, 1).grab(true, false).applyTo(newAppCartridgeCombo);
fillCartridgesCombo(dbc, newAppCartridgeCombo);
- final ISWTObservableValue selectedCartridgeComboObservable = WidgetProperties.selection().observe(
- newAppCartridgeCombo);
+ final ISWTObservableValue selectedCartridgeComboObservable =
+ WidgetProperties.selection().observe(newAppCartridgeCombo);
final IObservableValue selectedCartridgeModelObservable = BeanProperties.value(
NewApplicationWizardPageModel.PROPERTY_SELECTED_CARTRIDGE).observe(pageModel);
ValueBindingBuilder.bind(selectedCartridgeComboObservable).converting(new StringToCartridgeConverter())
.to(selectedCartridgeModelObservable).converting(new CartridgeToStringConverter()).in(dbc);
final ISWTObservableValue useExistingAppBtnSelection = WidgetProperties.selection().observe(useExistingAppBtn);
- final NewApplicationNameValidator newApplicationNameValidator = new NewApplicationNameValidator(
- useExistingAppBtnSelection, applicationNameTextObservable);
+ final NewApplicationNameValidator newApplicationNameValidator =
+ new NewApplicationNameValidator(useExistingAppBtnSelection, applicationNameTextObservable);
dbc.addValidationStatusProvider(newApplicationNameValidator);
- ControlDecorationSupport.create(newApplicationNameValidator, SWT.LEFT | SWT.TOP, null,
- new CustomControlDecorationUpdater());
- final NewApplicationTypeValidator newApplicationTypeValidator = new NewApplicationTypeValidator(
- useExistingAppBtnSelection, selectedCartridgeComboObservable);
+ ControlDecorationSupport.create(
+ newApplicationNameValidator, SWT.LEFT | SWT.TOP, null, new CustomControlDecorationUpdater());
+ final NewApplicationTypeValidator newApplicationTypeValidator =
+ new NewApplicationTypeValidator(useExistingAppBtnSelection, selectedCartridgeComboObservable);
dbc.addValidationStatusProvider(newApplicationTypeValidator);
ControlDecorationSupport.create(newApplicationTypeValidator, SWT.LEFT | SWT.TOP, null,
new CustomControlDecorationUpdater());
@@ -285,19 +289,20 @@
this.checkAllButton = new Button(newAppEmbeddableCartridgesGroup, SWT.PUSH);
checkAllButton.setText("&Select All");
- GridDataFactory.fillDefaults().hint(110, SWT.DEFAULT).grab(false, false).align(SWT.FILL, SWT.TOP)
- .applyTo(checkAllButton);
+ GridDataFactory.fillDefaults()
+ .hint(110, SWT.DEFAULT).grab(false, false).align(SWT.FILL, SWT.TOP).applyTo(checkAllButton);
checkAllButton.addSelectionListener(onCheckAll());
this.uncheckAllButton = new Button(newAppEmbeddableCartridgesGroup, SWT.PUSH);
uncheckAllButton.setText("&Deselect All");
- GridDataFactory.fillDefaults().hint(110, SWT.DEFAULT).grab(false, true).align(SWT.FILL, SWT.TOP)
- .applyTo(uncheckAllButton);
+ GridDataFactory.fillDefaults()
+ .hint(110, SWT.DEFAULT).grab(false, true).align(SWT.FILL, SWT.TOP).applyTo(uncheckAllButton);
uncheckAllButton.addSelectionListener(onUncheckAll());
// bottom filler
Composite spacer = new Composite(newAppConfigurationGroup, SWT.NONE);
- GridDataFactory.fillDefaults().span(2, 1).align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(spacer);
+ GridDataFactory.fillDefaults()
+ .span(2, 1).align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(spacer);
}
/**
@@ -318,9 +323,9 @@
Object newValue = event.diff.getNewValue();
if (newValue instanceof Boolean) {
Boolean useExisting = (Boolean) newValue;
-// if (!useExisting) {
-// resetExistingApplication();
-// }
+ // if (!useExisting) {
+ // resetExistingApplication();
+ // }
enableApplicationWidgets(useExisting);
}
}
@@ -328,7 +333,8 @@
}
/**
- * Enables/disables the given widgets based on the flag to use an existing app or create a new application.
+ * Enables/disables the given widgets based on the flag to use an existing
+ * app or create a new application.
*
* @param useExisting
* @param applicationConfigurationGroup
@@ -356,8 +362,8 @@
}
protected CheckboxTableViewer createTable(Composite tableContainer) {
- Table table = new Table(tableContainer, SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.H_SCROLL
- | SWT.CHECK);
+ Table table =
+ new Table(tableContainer, SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.H_SCROLL | SWT.CHECK);
table.setLinesVisible(true);
TableColumnLayout tableLayout = new TableColumnLayout();
tableContainer.setLayout(tableLayout);
@@ -592,11 +598,12 @@
}
/**
- * Viewer element comparer based on #equals(). The default implementation in CheckboxTableViewer compares elements
- * based on instance identity.
+ * Viewer element comparer based on #equals(). The default implementation in
+ * CheckboxTableViewer compares elements based on instance identity.
* <p>
- * We need this since the available cartridges (item listed in the viewer) are not the same instance as the ones in
- * the embedded application (items to check in the viewer).
+ * We need this since the available cartridges (item listed in the viewer)
+ * are not the same instance as the ones in the embedded application (items
+ * to check in the viewer).
*/
private static class EqualityComparer implements IElementComparer {
@@ -654,11 +661,11 @@
dialog.create();
dialog.setBlockOnOpen(true);
int result = dialog.open();
- if(result != Dialog.OK) {
+ if (result != Dialog.OK) {
final IWizardContainer container = getWizard().getContainer();
- if(container instanceof WizardDialog) {
+ if (container instanceof WizardDialog) {
event.doit = false;
- ((WizardDialog)container).close();
+ ((WizardDialog) container).close();
}
}
}
12 years, 7 months
JBoss Tools SVN: r39093 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-24 04:08:01 -0500 (Fri, 24 Feb 2012)
New Revision: 39093
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySection.java
Log:
cleanup: corrected warnings
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySection.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySection.java 2012-02-24 09:07:13 UTC (rev 39092)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySection.java 2012-02-24 09:08:01 UTC (rev 39093)
@@ -10,9 +10,7 @@
******************************************************************************/
package org.jboss.tools.openshift.express.internal.ui.viewer.property;
-import org.eclipse.core.runtime.Assert;
import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.layout.FormAttachment;
@@ -54,8 +52,8 @@
public void setInput(IWorkbenchPart part, ISelection selection) {
super.setInput(part, selection);
- Assert.isTrue(selection instanceof IStructuredSelection);
- Object input = ((IStructuredSelection) selection).getFirstElement();
+// Assert.isTrue(selection instanceof IStructuredSelection);
+// Object input = ((IStructuredSelection) selection).getFirstElement();
}
public void refresh() {
12 years, 7 months
JBoss Tools SVN: r39092 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-02-24 04:07:13 -0500 (Fri, 24 Feb 2012)
New Revision: 39092
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySource.java
Log:
cleanup: extracted constants
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySource.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySource.java 2012-02-24 08:45:34 UTC (rev 39091)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/viewer/property/UserPropertySource.java 2012-02-24 09:07:13 UTC (rev 39092)
@@ -23,6 +23,8 @@
*/
public class UserPropertySource implements IPropertySource {
+ private static final String PROPERTY_DOMAIN = "Domain";
+ private static final String PROPERTY_USERNAME = "Username";
private final IUser user;
public UserPropertySource(IUser user) {
@@ -36,17 +38,18 @@
@Override
public IPropertyDescriptor[] getPropertyDescriptors() {
- return new IPropertyDescriptor[] { new PropertyDescriptor("Username", "Username"),
- new PropertyDescriptor("Domain", "Domain") };
+ return new IPropertyDescriptor[] {
+ new PropertyDescriptor(PROPERTY_USERNAME, PROPERTY_USERNAME),
+ new PropertyDescriptor(PROPERTY_DOMAIN, PROPERTY_DOMAIN) };
}
@Override
public Object getPropertyValue(Object id) {
try {
- if (id.equals("Username")) {
+ if (id.equals(PROPERTY_USERNAME)) {
return user.getRhlogin();
}
- if (id.equals("Domain") && user.hasDomain()) {
+ if (id.equals(PROPERTY_DOMAIN) && user.hasDomain()) {
return user.getDomain().getNamespace() + "." + user.getDomain().getRhcDomain();
}
} catch (OpenShiftException e) {
12 years, 7 months
JBoss Tools SVN: r39091 - in trunk/examples/plugins/org.jboss.tools.project.examples: template and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: fbricon
Date: 2012-02-24 03:45:34 -0500 (Fri, 24 Feb 2012)
New Revision: 39091
Modified:
trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/configurators/DefaultJBossCentralConfigurator.java
trunk/examples/plugins/org.jboss.tools.project.examples/template/DefaultJBossCentralConfigurator.java
Log:
JBIDE-10264 : restore hard-coded wizard ids in JBoss Central.
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/configurators/DefaultJBossCentralConfigurator.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/configurators/DefaultJBossCentralConfigurator.java 2012-02-24 08:41:59 UTC (rev 39090)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/configurators/DefaultJBossCentralConfigurator.java 2012-02-24 08:45:34 UTC (rev 39091)
@@ -11,6 +11,7 @@
package org.jboss.tools.project.examples.configurators;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
import org.eclipse.swt.graphics.Image;
@@ -24,11 +25,26 @@
public class DefaultJBossCentralConfigurator implements
IJBossCentralConfigurator {
+ private static final List<String> WIZARD_IDS;
+
+ static {
+ List<String> wizardIds = new ArrayList<String>();
+ wizardIds.add("org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.ide.eclipse.as.openshift.express.ui.wizard.createNewApplicationWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewJavaeeWarProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewJavaeeEarProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewHtml5ProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewRichfacesProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewSpringMvcProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewGwtProjectWizard"); //$NON-NLS-1$
+ WIZARD_IDS = Collections.unmodifiableList(wizardIds);
+ }
+
// TODO: for GA, change this from /development/indigo/ to /stable/indigo/
private static final String JBOSS_DIRECTORY_URL_DEFAULT = "http://download.jboss.org/jbosstools/updates/development/indigo/jbosstool..."; //$NON-NLS-1$
// see pom.xml for actual value -- this is passed it at build-time via Maven
- private static final String JBOSS_DIRECTORY_URL = "${jboss.discovery.directory.url}"; //$NON-NLS-1$
+ private static final String JBOSS_DIRECTORY_URL = "http://download.jboss.org/jbosstools/updates/development/indigo/jbosstool..."; //$NON-NLS-1$
private static final String TWITTER_LINK ="http://twitter.com/#!/jbosstools"; //$NON-NLS-1$
@@ -73,10 +89,7 @@
@Override
public List<String> getWizardIds() {
- List<String> wizardIds = new ArrayList<String>();
- wizardIds.add("org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard"); //$NON-NLS-1$
- wizardIds.add("org.jboss.ide.eclipse.as.openshift.express.ui.wizard.createNewApplicationWizard"); //$NON-NLS-1$
- return wizardIds;
+ return WIZARD_IDS;
}
@Override
Modified: trunk/examples/plugins/org.jboss.tools.project.examples/template/DefaultJBossCentralConfigurator.java
===================================================================
--- trunk/examples/plugins/org.jboss.tools.project.examples/template/DefaultJBossCentralConfigurator.java 2012-02-24 08:41:59 UTC (rev 39090)
+++ trunk/examples/plugins/org.jboss.tools.project.examples/template/DefaultJBossCentralConfigurator.java 2012-02-24 08:45:34 UTC (rev 39091)
@@ -11,6 +11,7 @@
package org.jboss.tools.project.examples.configurators;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
import org.eclipse.swt.graphics.Image;
@@ -24,6 +25,21 @@
public class DefaultJBossCentralConfigurator implements
IJBossCentralConfigurator {
+ private static final List<String> WIZARD_IDS;
+
+ static {
+ List<String> wizardIds = new ArrayList<String>();
+ wizardIds.add("org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.ide.eclipse.as.openshift.express.ui.wizard.createNewApplicationWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewJavaeeWarProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewJavaeeEarProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewHtml5ProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewRichfacesProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewSpringMvcProjectWizard"); //$NON-NLS-1$
+ wizardIds.add("org.jboss.tools.central.wizards.NewGwtProjectWizard"); //$NON-NLS-1$
+ WIZARD_IDS = Collections.unmodifiableList(wizardIds);
+ }
+
// TODO: for GA, change this from /development/indigo/ to /stable/indigo/
private static final String JBOSS_DIRECTORY_URL_DEFAULT = "http://download.jboss.org/jbosstools/updates/development/indigo/jbosstool..."; //$NON-NLS-1$
@@ -73,10 +89,7 @@
@Override
public List<String> getWizardIds() {
- List<String> wizardIds = new ArrayList<String>();
- wizardIds.add("org.eclipse.jst.servlet.ui.project.facet.WebProjectWizard"); //$NON-NLS-1$
- wizardIds.add("org.jboss.ide.eclipse.as.openshift.express.ui.wizard.createNewApplicationWizard"); //$NON-NLS-1$
- return wizardIds;
+ return WIZARD_IDS;
}
@Override
12 years, 7 months