JBoss Tools SVN: r34537 - trunk/as/plugins/org.jboss.ide.eclipse.as.core.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-09-06 07:11:04 -0400 (Tue, 06 Sep 2011)
New Revision: 34537
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.properties
Log:
JBIDE-9665 - trunk mark EAP6 as experimental
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.properties 2011-09-06 11:10:28 UTC (rev 34536)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/plugin.properties 2011-09-06 11:11:04 UTC (rev 34537)
@@ -40,9 +40,9 @@
jboss.eap.version.50.description=JBoss Enterprise Application Platform (EAP) 5.x
jboss.eap.version.50.runtime.name=JBoss Enterprise Application Platform 5.x Runtime
-jboss.eap.version.60.name=JBoss Enterprise Application Platform 6.x
+jboss.eap.version.60.name=JBoss Enterprise Application Platform 6.x (Experimental)
jboss.eap.version.60.description=JBoss Enterprise Application Platform (EAP) 6.x
-jboss.eap.version.60.runtime.name=JBoss Enterprise Application Platform 6.x Runtime
+jboss.eap.version.60.runtime.name=JBoss Enterprise Application Platform 6.x Runtime (Experimental)
deploy.runtime.name=Deploy Only Runtime
deploy.runtime.description=A runtime provided to allow a deploy-only server the ability to deploy all project types.
14 years, 7 months
JBoss Tools SVN: r34536 - branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.core.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-09-06 07:10:28 -0400 (Tue, 06 Sep 2011)
New Revision: 34536
Modified:
branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.core/plugin.properties
Log:
JBIDE-9665 - branch mark eap6 as experimental
Modified: branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.core/plugin.properties
===================================================================
--- branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.core/plugin.properties 2011-09-06 09:58:32 UTC (rev 34535)
+++ branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.core/plugin.properties 2011-09-06 11:10:28 UTC (rev 34536)
@@ -40,9 +40,9 @@
jboss.eap.version.50.description=JBoss Enterprise Application Platform (EAP) 5.x
jboss.eap.version.50.runtime.name=JBoss Enterprise Application Platform 5.x Runtime
-jboss.eap.version.60.name=JBoss Enterprise Application Platform 6.x
+jboss.eap.version.60.name=JBoss Enterprise Application Platform 6.x (Experimental)
jboss.eap.version.60.description=JBoss Enterprise Application Platform (EAP) 6.x
-jboss.eap.version.60.runtime.name=JBoss Enterprise Application Platform 6.x Runtime
+jboss.eap.version.60.runtime.name=JBoss Enterprise Application Platform 6.x Runtime (Experimental)
deploy.runtime.name=Deploy Only Runtime
deploy.runtime.description=A runtime provided to allow a deploy-only server the ability to deploy all project types.
14 years, 7 months
JBoss Tools SVN: r34534 - in trunk/as/plugins: org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/internal/marshalling and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-09-06 04:46:34 -0400 (Tue, 06 Sep 2011)
New Revision: 34534
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/IHttpClient.java
Removed:
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/internal/core/HttpClient.java
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/Openshift.java
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/internal/marshalling/IOpenshiftRequestMarshaller.java
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/internal/marshalling/UserInfoRequestJsonMarshaller.java
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/internal/core/UrlConnectionHttpClient.java
trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.test/src/org/jboss/ide/eclipse/as/openshift/internal/test/core/OpenshiftTest.java
Log:
[JBIDE-9591]
Copied: trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/IHttpClient.java (from rev 34533, trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/internal/core/HttpClient.java)
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/IHttpClient.java (rev 0)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/IHttpClient.java 2011-09-06 08:46:34 UTC (rev 34534)
@@ -0,0 +1,8 @@
+package org.jboss.ide.eclipse.as.openshift.core;
+
+import org.jboss.ide.eclipse.as.openshift.internal.core.HttpClientException;
+
+public interface IHttpClient {
+
+ public String post(String data) throws HttpClientException;
+}
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/IHttpClient.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/Openshift.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/Openshift.java 2011-09-06 07:32:43 UTC (rev 34533)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/Openshift.java 2011-09-06 08:46:34 UTC (rev 34534)
@@ -6,9 +6,10 @@
import org.eclipse.osgi.util.NLS;
import org.jboss.dmr.ModelNode;
import org.jboss.ide.eclipse.as.openshift.core.internal.marshalling.OpenshiftJsonRequestFactory;
-import org.jboss.ide.eclipse.as.openshift.internal.core.HttpClient;
+import org.jboss.ide.eclipse.as.openshift.core.internal.marshalling.UserInfoRequestJsonMarshaller;
import org.jboss.ide.eclipse.as.openshift.internal.core.HttpClientException;
import org.jboss.ide.eclipse.as.openshift.internal.core.UrlConnectionHttpClient;
+import org.jboss.ide.eclipse.as.openshift.internal.core.request.UserInfoRequest;
import org.jboss.ide.eclipse.as.openshift.internal.core.utils.UrlBuilder;
public class Openshift {
@@ -26,12 +27,10 @@
public UserInfo getUserInfo() throws OpenshiftException {
UrlBuilder userInfoUrlBuilder = new UrlBuilder(BASE_URL).path("userinfo");
try {
- ModelNode node = new ModelNode();
- node.get("rhlogin").set(username);
- node.get("debug").set("true");
- HttpClient httpClient = createHttpClient(userInfoUrlBuilder.toUrl());
- String request = new OpenshiftJsonRequestFactory(password, node.toJSONString(true)).create();
- String userInfoResponse = httpClient.post(request);
+ String userInfoRequest = new UserInfoRequestJsonMarshaller().marshall(new UserInfoRequest(username, true));
+ IHttpClient iHttpClient = createHttpClient(userInfoUrlBuilder.toUrl());
+ String request = new OpenshiftJsonRequestFactory(password, userInfoRequest).create();
+ String userInfoResponse = iHttpClient.post(request);
ModelNode userInfoReponse = ModelNode.fromJSONString(userInfoResponse);
return new UserInfo(
userInfoReponse.get("rhlogin").asString(),
@@ -52,7 +51,7 @@
}
- private HttpClient createHttpClient(URL url) {
+ private IHttpClient createHttpClient(URL url) {
return new UrlConnectionHttpClient(url);
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/internal/marshalling/IOpenshiftRequestMarshaller.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/internal/marshalling/IOpenshiftRequestMarshaller.java 2011-09-06 07:32:43 UTC (rev 34533)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/internal/marshalling/IOpenshiftRequestMarshaller.java 2011-09-06 08:46:34 UTC (rev 34534)
@@ -1,5 +1,9 @@
package org.jboss.ide.eclipse.as.openshift.core.internal.marshalling;
-public interface IOpenshiftRequestMarshaller<OPENSHIFTREQUEST> {
+import org.jboss.ide.eclipse.as.openshift.internal.core.request.UserInfoRequest;
+public interface IOpenshiftRequestMarshaller<REQUEST> {
+
+ public String marshall(REQUEST request);
+
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/internal/marshalling/UserInfoRequestJsonMarshaller.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/internal/marshalling/UserInfoRequestJsonMarshaller.java 2011-09-06 07:32:43 UTC (rev 34533)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/core/internal/marshalling/UserInfoRequestJsonMarshaller.java 2011-09-06 08:46:34 UTC (rev 34534)
@@ -6,13 +6,7 @@
public class UserInfoRequestJsonMarshaller implements IOpenshiftRequestMarshaller<UserInfoRequest> {
- private UserInfoRequest userInfoRequest;
-
- public UserInfoRequestJsonMarshaller(UserInfoRequest userInfoRequest) {
- this.userInfoRequest = userInfoRequest;
- }
-
- public String create() {
+ public String marshall(UserInfoRequest userInfoRequest) {
ModelNode node = new ModelNode();
node.get(IOpenshiftJsonConstants.PROPERTY_RHLOGIN).set(userInfoRequest.getRhLogin());
node.get(IOpenshiftJsonConstants.PROPERTY_DEBUG).set(String.valueOf(userInfoRequest.isDebug()));
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/internal/core/HttpClient.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/internal/core/HttpClient.java 2011-09-06 07:32:43 UTC (rev 34533)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/internal/core/HttpClient.java 2011-09-06 08:46:34 UTC (rev 34534)
@@ -1,6 +0,0 @@
-package org.jboss.ide.eclipse.as.openshift.internal.core;
-
-public interface HttpClient {
-
- public String post(String data) throws HttpClientException;
-}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/internal/core/UrlConnectionHttpClient.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/internal/core/UrlConnectionHttpClient.java 2011-09-06 07:32:43 UTC (rev 34533)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.core/src/org/jboss/ide/eclipse/as/openshift/internal/core/UrlConnectionHttpClient.java 2011-09-06 08:46:34 UTC (rev 34534)
@@ -6,9 +6,10 @@
import java.net.URL;
import java.text.MessageFormat;
+import org.jboss.ide.eclipse.as.openshift.core.IHttpClient;
import org.jboss.ide.eclipse.as.openshift.internal.core.utils.StreamUtils;
-public class UrlConnectionHttpClient implements HttpClient {
+public class UrlConnectionHttpClient implements IHttpClient {
private static final String PROPERTY_CONTENT_TYPE = "Content-Type";
private static final int TIMEOUT = 10 * 1024;
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.test/src/org/jboss/ide/eclipse/as/openshift/internal/test/core/OpenshiftTest.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.test/src/org/jboss/ide/eclipse/as/openshift/internal/test/core/OpenshiftTest.java 2011-09-06 07:32:43 UTC (rev 34533)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.openshift.test/src/org/jboss/ide/eclipse/as/openshift/internal/test/core/OpenshiftTest.java 2011-09-06 08:46:34 UTC (rev 34534)
@@ -32,7 +32,7 @@
public void canMarshallRequestCorrectly() throws OpenshiftException {
String expectedRequestString = "password=" + PASSWORD + "&json_data=%7B%22rhlogin%22+%3A+%22dietisheim%40gmx.net%22%2C+%22debug%22+%3A+%22true%22%7D";
- String userInfoRequest = new UserInfoRequestJsonMarshaller(new UserInfoRequest(USERNAME, true)).create();
+ String userInfoRequest = new UserInfoRequestJsonMarshaller().marshall(new UserInfoRequest(USERNAME, true));
String effectiveRequest = new OpenshiftJsonRequestFactory(PASSWORD, userInfoRequest).create();
assertEquals(expectedRequestString, effectiveRequest);
14 years, 7 months
JBoss Tools SVN: r34533 - in trunk: vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2011-09-06 03:32:43 -0400 (Tue, 06 Sep 2011)
New Revision: 34533
Modified:
trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/EditingActionsTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VisualEditorContextMenuTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/PaletteEditorTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/VPESourceCodeTemplatesPreferencePageTest.java
Log:
Changes for MacOS
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 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -378,9 +378,9 @@
protected static void assertProbelmsViewNoErrors (SWTBotExt botExt){
SWTBotTreeItem[] errors = ProblemsView.getFilteredErrorsTreeItems(botExt, null, null, null, null);
-
+ boolean areThereNoErrors = ((errors == null) || (errors.length == 0));
assertTrue("There are errors in Problems view: " +
- (errors != null && errors.length > 0 ? errors[0].getText() : ""),
- errors == null);
+ (areThereNoErrors ? "" : errors[0].getText()),
+ areThereNoErrors);
}
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/BlockCommentTest.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -3,6 +3,7 @@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
+import org.jboss.tools.ui.bot.ext.SWTJBTExt;
public class BlockCommentTest extends VPEEditorTestCase{
@@ -67,67 +68,76 @@
}
private void pressBlockCommentHotKeys(){
- bot.getDisplay().syncExec(new Runnable() {
- public void run() {
- Display display = bot.getDisplay();
- Event event = new Event();
- event.type = SWT.KeyDown;
- event.keyCode = SWT.CTRL;
- display.post(event);
- event = new Event();
- event.type = SWT.KeyDown;
- event.keyCode = SWT.SHIFT;
- display.post(event);
- event = new Event();
- event.type = SWT.KeyDown;
- event.character = '/';
- display.post(event);
- event = new Event();
- event.type = SWT.KeyUp;
- event.character = '/';
- display.post(event);
- event = new Event();
- event.type = SWT.KeyUp;
- event.keyCode = SWT.SHIFT;
- display.post(event);
- event = new Event();
- event.type = SWT.KeyUp;
- event.keyCode = SWT.CTRL;
- display.post(event);
- }
- });
+ if (SWTJBTExt.isRunningOnMacOs()) {
+ bot.shells()[0].pressShortcut(SWT.COMMAND, '/');
+ } else {
+ bot.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ Display display = bot.getDisplay();
+ Event event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = '/';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = '/';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ }
+ });
+ }
}
private void pressUnBlockCommentHotKeys(){
- bot.getDisplay().syncExec(new Runnable() {
- public void run() {
- Display display = bot.getDisplay();
- Event event = new Event();
- event.type = SWT.KeyDown;
- event.keyCode = SWT.CTRL;
- display.post(event);
- event = new Event();
- event.type = SWT.KeyDown;
- event.keyCode = SWT.SHIFT;
- display.post(event);
- event = new Event();
- event.type = SWT.KeyDown;
- event.character = '\\';
- display.post(event);
- event = new Event();
- event.type = SWT.KeyUp;
- event.character = '\\';
- display.post(event);
- event = new Event();
- event.type = SWT.KeyUp;
- event.keyCode = SWT.SHIFT;
- display.post(event);
- event = new Event();
- event.type = SWT.KeyUp;
- event.keyCode = SWT.CTRL;
- display.post(event);
- }
- });
- }
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.COMMAND,'\\');
+ }
+ else{
+ bot.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ Display display = bot.getDisplay();
+ Event event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = '\\';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = '\\';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ }
+ });
+ }
+ }
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/EditingActionsTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/EditingActionsTest.java 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/EditingActionsTest.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -13,6 +13,7 @@
import java.awt.event.KeyEvent;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
@@ -20,6 +21,7 @@
import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
import org.eclipse.swtbot.swt.finder.results.VoidResult;
import org.jboss.tools.ui.bot.ext.SWTBotExt;
+import org.jboss.tools.ui.bot.ext.SWTJBTExt;
import org.jboss.tools.ui.bot.ext.Timing;
import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
import org.jboss.tools.ui.bot.ext.helper.KeyboardHelper;
@@ -114,18 +116,34 @@
assertProbelmsViewNoErrors(botExt);
// Check Undo Functionality
webBrowser.setFocus();
- KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_Z, KeyEvent.VK_CONTROL);
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.COMMAND, 'z');
+ }
+ else{
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_Z, KeyEvent.VK_CONTROL);
+ }
jspEditor.save();
botExt.sleep(Timing.time3S());
assertSourceEditorContains(stripHTMLSourceText(jspEditor.getText()),
"<h:outputTextvalue=\"outputText\"/><h:inputText/><rich:comboBox>",
EditingActionsTest.TEST_PAGE_NAME);
- KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_Z, KeyEvent.VK_CONTROL);
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.COMMAND, 'z');
+ }
+ else{
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_Z, KeyEvent.VK_CONTROL);
+ }
jspEditor.save();
botExt.sleep(Timing.time3S());
assertSourceEditorContains(stripHTMLSourceText(jspEditor.getText()),
"<h:inputText/><h:inputText/><h:outputTextvalue=\"outputText\"/>",
- EditingActionsTest.TEST_PAGE_NAME);KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_Z, KeyEvent.VK_CONTROL);
+ EditingActionsTest.TEST_PAGE_NAME);
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.COMMAND, 'z');
+ }
+ else{
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_Z, KeyEvent.VK_CONTROL);
+ }
jspEditor.save();
botExt.sleep(Timing.time3S());
assertSourceEditorContains(stripHTMLSourceText(jspEditor.getText()),
@@ -133,8 +151,9 @@
EditingActionsTest.TEST_PAGE_NAME);
// Check Delete Functionality
webBrowser.setFocus();
+ botExt.sleep(Timing.time2S());
webBrowser.selectDomNode(webBrowser.getDomNodeByTagName("INPUT",2),0);
- botExt.sleep(Timing.time1S());
+ botExt.sleep(Timing.time2S());
KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_DELETE);
jspEditor.save();
botExt.sleep(Timing.time3S());
@@ -208,7 +227,9 @@
bot.sleep(Timing.time2S());
assertVisualEditorContainsNodeWithValue(webBrowser, "h:text", EditingActionsTest.TEST_PAGE_NAME);
nsIDOMNode node = webBrowser.getDomNodeByTagName("DIV", 4);
+ bot.sleep(Timing.time2S());
webBrowser.selectDomNode(node, 0);
+ bot.sleep(Timing.time2S());
webBrowser.clickContextMenu(node,
SWTBotWebBrowser.SETUP_VISUAL_TEMPLATE_FOR_MENU_LABEL + "<" + unknownTag + ">...");
// Test if window for Tag Template definition was properly opened
@@ -309,7 +330,12 @@
assertSourceEditorNotContain(jspEditor.getText(), "<f:view>", EditingActionsTest.TEST_PAGE_NAME);
// Undo Changes
webBrowser.setFocus();
- KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_Z, KeyEvent.VK_CONTROL);
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.COMMAND, 'z');
+ }
+ else{
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_Z, KeyEvent.VK_CONTROL);
+ }
jspEditor.save();
bot.sleep(Timing.time2S());
assertSourceEditorContains(jspEditor.getText(), "<f:view>", EditingActionsTest.TEST_PAGE_NAME);
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.java 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/ToggleCommentTest.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -3,6 +3,7 @@
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
+import org.jboss.tools.ui.bot.ext.SWTJBTExt;
public class ToggleCommentTest extends VPEEditorTestCase{
@@ -42,35 +43,39 @@
}
private void pressToggleCommentHotKeys(){
- bot.getDisplay().syncExec(new Runnable() {
- public void run() {
- Display display = bot.getDisplay();
- Event event = new Event();
- event.type = SWT.KeyDown;
- event.keyCode = SWT.CTRL;
- display.post(event);
- event = new Event();
- event.type = SWT.KeyDown;
- event.keyCode = SWT.SHIFT;
- display.post(event);
- event = new Event();
- event.type = SWT.KeyDown;
- event.character = 'c';
- display.post(event);
- event = new Event();
- event.type = SWT.KeyUp;
- event.character = 'c';
- display.post(event);
- event = new Event();
- event.type = SWT.KeyUp;
- event.keyCode = SWT.SHIFT;
- display.post(event);
- event = new Event();
- event.type = SWT.KeyUp;
- event.keyCode = SWT.CTRL;
- display.post(event);
- }
- });
- }
-
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.SHIFT | SWT.COMMAND,'c');
+ }
+ else{
+ bot.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ Display display = bot.getDisplay();
+ Event event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyDown;
+ event.character = 'c';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.character = 'c';
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.SHIFT;
+ display.post(event);
+ event = new Event();
+ event.type = SWT.KeyUp;
+ event.keyCode = SWT.CTRL;
+ display.post(event);
+ }
+ });
+ }
+ }
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VisualEditorContextMenuTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VisualEditorContextMenuTest.java 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VisualEditorContextMenuTest.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -17,12 +17,14 @@
import org.eclipse.gef.palette.PaletteContainer;
import org.eclipse.gef.palette.PaletteEntry;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
import org.eclipse.swtbot.swt.finder.results.VoidResult;
import org.jboss.tools.ui.bot.ext.SWTBotExt;
+import org.jboss.tools.ui.bot.ext.SWTJBTExt;
import org.jboss.tools.ui.bot.ext.Timing;
import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
import org.jboss.tools.ui.bot.ext.helper.KeyboardHelper;
@@ -472,11 +474,18 @@
bot.sleep(Timing.time2S());
webBrowser.setFocus();
// Test Cut
+ System.out.println(1);
calendarNode = webBrowser.getDomNodeByTagName("INPUT",0);
+ bot.sleep(Timing.time2S());
webBrowser.selectDomNode(calendarNode,0);
botExt.sleep(Timing.time2S());
webBrowser.setFocus();
- KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_X,KeyEvent.VK_CONTROL);
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.COMMAND, 'x');
+ }
+ else{
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_X,KeyEvent.VK_CONTROL);
+ }
jspTextEditor.save();
botExt.sleep(Timing.time2S());
sourceEditorText = jspTextEditor.getText();
@@ -486,9 +495,15 @@
// Test Paste
webBrowser.setFocus();
inputTextNode = webBrowser.getDomNodeByTagName("INPUT",0);
+ botExt.sleep(Timing.time2S());
webBrowser.selectDomNode(inputTextNode,0);
botExt.sleep(Timing.time2S());
- KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_V,KeyEvent.VK_CONTROL);
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.COMMAND, 'v');
+ }
+ else{
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_V,KeyEvent.VK_CONTROL);
+ }
jspTextEditor.save();
botExt.sleep(Timing.time2S());
sourceEditorText = jspTextEditor.getText();
@@ -502,12 +517,22 @@
botExt.sleep(Timing.time2S());
webBrowser.selectDomNode(calendarNode,0);
botExt.sleep(Timing.time2S());
- KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_C,KeyEvent.VK_CONTROL);
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.COMMAND, 'c');
+ }
+ else{
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_C,KeyEvent.VK_CONTROL);
+ }
inputTextNode = webBrowser.getDomNodeByTagName("INPUT",1);
botExt.sleep(Timing.time2S());
webBrowser.selectDomNode(inputTextNode,0);
botExt.sleep(Timing.time2S());
- KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_V,KeyEvent.VK_CONTROL);
+ if (SWTJBTExt.isRunningOnMacOs()){
+ bot.shells()[0].pressShortcut(SWT.COMMAND, 'v');
+ }
+ else{
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_V,KeyEvent.VK_CONTROL);
+ }
jspTextEditor.save();
botExt.sleep(Timing.time2S());
sourceEditorText = jspTextEditor.getText();
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.java 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/PreferencesTestCase.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -9,13 +9,15 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCombo;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.ui.bot.ext.SWTJBTExt;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.jboss.tools.vpe.ui.bot.test.Activator;
import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
public abstract class PreferencesTestCase extends VPEAutoTestCase{
- protected static final String TOGGLE_SELECTION_BAR_TOOLTIP = "Toggle Selection Bar (Ctrl+6)"; //$NON-NLS-1$
+ protected static final String TOGGLE_SELECTION_BAR_TOOLTIP = "Toggle Selection Bar (" +
+ (SWTJBTExt.isRunningOnMacOs() ? "⌘6" : "Ctrl+6") + ")"; //$NON-NLS-1$
protected static final String SHOW_NON_VISUAL_TAGS = "Show non-visual tags"; //$NON-NLS-1$
protected static final String SHOW_BORDER_FOR_UNKNOWN_TAGS = "Show border for unknown tags"; //$NON-NLS-1$
protected static final String SHOW_RESOURCE_BUNDLES = "Show resource bundles usage as EL expressions"; //$NON-NLS-1$
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/PaletteEditorTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/PaletteEditorTest.java 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/PaletteEditorTest.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -49,7 +49,6 @@
ContextMenuHelper.clickContextMenu(menu,
IDELabel.PaletteEditor.NEW_MENU_ITEM,
IDELabel.PaletteEditor.CREATE_GROUP_MENU_ITEM);
- ContextMenuHelper.hideMenuRecursively(menu);
SWTBot createGroupDialogBot = bot.shell(IDELabel.Shell.CREATE_GROUP).activate().bot();
final String firstGroup = "First";
createGroupDialogBot.textWithLabel(IDELabel.CreateGroupDialog.NAME).setText(firstGroup);
@@ -63,7 +62,6 @@
menu = ContextMenuHelper.getTreeMenuViaReflections(tree.widget,IDELabel.PaletteEditor.CREATE_GROUP_MENU_ITEM);
ContextMenuHelper.clickContextMenu(menu,
IDELabel.PaletteEditor.CREATE_GROUP_MENU_ITEM);
- ContextMenuHelper.hideMenuRecursively(menu);
SWTBot addPaletteGroupBot = bot.shell(IDELabel.Shell.ADD_PALETTE_GROUP).activate().bot();
final String secondGroup = "Second";
addPaletteGroupBot.textWithLabel(IDELabel.AddPaletteGroupDialog.NAME).setText(secondGroup);
@@ -79,7 +77,6 @@
ContextMenuHelper.clickContextMenu(menu,
IDELabel.PaletteEditor.NEW_MENU_ITEM,
IDELabel.PaletteEditor.CREATE_MACRO_MENU_ITEM);
- ContextMenuHelper.hideMenuRecursively(menu);
SWTBot addPaletteMacroBot = bot.shell(IDELabel.Shell.ADD_PALETTE_MACRO).activate().bot();
final String macroName = "Test Macro";
addPaletteMacroBot.textWithLabel(IDELabel.AddPaletteMacroDialog.NAME).setText(macroName);
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExternalizeStringsDialogTest.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -24,6 +24,7 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
import org.jboss.tools.jst.jsp.messages.JstUIMessages;
+import org.jboss.tools.ui.bot.ext.SWTJBTExt;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.Timing;
import org.jboss.tools.ui.bot.ext.helper.KeyboardHelper;
@@ -32,7 +33,7 @@
public class ExternalizeStringsDialogTest extends VPEAutoTestCase {
private final String ENABLED_TEST_TEXT = "<html>Externalize Text</html>"; //$NON-NLS-1$
- private final String TOOL_TIP = "Externalize Strings... (Ctrl+7)"; //$NON-NLS-1$
+ private final String TOOL_TIP = (SWTJBTExt.isRunningOnMacOs() ? "Externalize Strings... (⌘7)" : "Externalize selected string... (Ctrl+7)"); //$NON-NLS-1$
private final String FOLDER_TEXT_LABEL = "Enter or select the parent folder:"; //$NON-NLS-1$
private final String INCORRECT_TABLE_VALUE = "Table value is incorrect"; //$NON-NLS-1$
private final String TOOLBAR_ICON_ENABLED = "Toolbar button should be enabled"; //$NON-NLS-1$
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -12,6 +12,7 @@
import java.io.File;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.jboss.tools.ui.bot.test.WidgetVariables;
import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
@@ -76,8 +77,7 @@
/*
* Check that templates have been added to the preference page
*/
- bot.menu(IDELabel.Menu.WINDOW).menu(IDELabel.Menu.PREFERENCES).click();
- bot.shell(IDELabel.Shell.PREFERENCES).activate();
+ open.preferenceOpen(ActionItem.Preference.JBossTools.LABEL);
importTree = bot.tree();
importTree.expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS)
.expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB)
@@ -102,4 +102,4 @@
}
-}
+}
\ No newline at end of file
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/VPESourceCodeTemplatesPreferencePageTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/VPESourceCodeTemplatesPreferencePageTest.java 2011-09-06 06:56:42 UTC (rev 34532)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/VPESourceCodeTemplatesPreferencePageTest.java 2011-09-06 07:32:43 UTC (rev 34533)
@@ -10,38 +10,54 @@
******************************************************************************/
package org.jboss.tools.vpe.ui.bot.test.wizard;
-import org.eclipse.swtbot.swt.finder.SWTBotTestCase;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.jboss.tools.ui.bot.ext.gen.ActionItem;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.jboss.tools.ui.bot.test.WidgetVariables;
+import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
/**
- * This test class open vpe preference page
- * Window->Preferences->JBoss Tools->Web->Editors->Visual Page Editor->Templates
+ * This test class open vpe preference page Window->Preferences->JBoss
+ * Tools->Web->Editors->Visual Page Editor->Templates
*
* @author mareshkau
- *
+ *
*/
-public class VPESourceCodeTemplatesPreferencePageTest extends SWTBotTestCase{
+public class VPESourceCodeTemplatesPreferencePageTest extends VPEAutoTestCase {
- //just open a VPE Source Code templates preference test page
- public void testSourceCodeTemplatesPreferencePage() {
- this.bot.menu(IDELabel.Menu.WINDOW).menu(IDELabel.Menu.PREFERENCES).click(); //$NON-NLS-1$ //$NON-NLS-2$
- SWTBotTree preferenceTree = this.bot.tree();
- preferenceTree
- .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS) //$NON-NLS-1$
- .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB) //$NON-NLS-1$
- .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS) //$NON-NLS-1$
- .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS_VPE).select(); //$NON-NLS-1$
- bot.tabItem(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS_VPE_VISUAL_TEMPLATES).activate(); //$NON-NLS-1$
- try{
- this.bot.button(IDELabel.Button.ADD).click(); //$NON-NLS-1$
- this.bot.button(IDELabel.Button.CANCEL).click(); //$NON-NLS-1$
- } catch(WidgetNotFoundException ex){
- fail("Preference Page has not been created"+ex);//$NON-NLS-1$
- }finally{
- this.bot.button(WidgetVariables.OK_BUTTON).click();
- }
- }
+ // just open a VPE Source Code templates preference test page
+ public void testSourceCodeTemplatesPreferencePage() {
+ open.preferenceOpen(ActionItem.Preference.JBossTools.LABEL);
+ SWTBotTree preferenceTree = this.bot.tree();
+ preferenceTree.expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS)
+ //$NON-NLS-1$
+ .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB)
+ //$NON-NLS-1$
+ .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS)
+ //$NON-NLS-1$
+ .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS_VPE)
+ .select(); //$NON-NLS-1$
+ bot.tabItem(
+ IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS_VPE_VISUAL_TEMPLATES)
+ .activate(); //$NON-NLS-1$
+ try {
+ this.bot.button(IDELabel.Button.ADD).click(); //$NON-NLS-1$
+ this.bot.button(IDELabel.Button.CANCEL).click(); //$NON-NLS-1$
+ } catch (WidgetNotFoundException ex) {
+ fail("Preference Page has not been created" + ex);//$NON-NLS-1$
+ } finally {
+ this.bot.button(WidgetVariables.OK_BUTTON).click();
+ }
+ }
+
+ @Override
+ protected void closeUnuseDialogs() {
+
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ return false;
+ }
}
14 years, 7 months
JBoss Tools SVN: r34532 - branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-09-06 02:56:42 -0400 (Tue, 06 Sep 2011)
New Revision: 34532
Modified:
branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/CustomRuntimeClasspathModel.java
Log:
JBIDE-9605 3.3.0.m3 branch - issue with saving default classpath entries
Modified: branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/CustomRuntimeClasspathModel.java
===================================================================
--- branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/CustomRuntimeClasspathModel.java 2011-09-06 06:51:22 UTC (rev 34531)
+++ branches/jbosstools-3.3.0.M3/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/CustomRuntimeClasspathModel.java 2011-09-06 06:56:42 UTC (rev 34532)
@@ -19,19 +19,22 @@
import java.util.Arrays;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
import org.eclipse.wst.server.core.IRuntime;
import org.eclipse.wst.server.core.IRuntimeType;
import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.core.internal.XMLMemento;
import org.jboss.ide.eclipse.archives.webtools.filesets.Fileset;
import org.jboss.ide.eclipse.archives.webtools.filesets.FilesetUtil;
+import org.jboss.ide.eclipse.as.classpath.core.ClasspathCorePlugin;
import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeResourceConstants;
import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
public class CustomRuntimeClasspathModel implements IJBossToolingConstants, IJBossRuntimeResourceConstants {
- protected static IPath DEFAULT_CLASSPATH_FS_ROOT = JBossServerCorePlugin.getGlobalSettingsLocation().append("filesets").append("runtimeClasspaths"); //$NON-NLS-1$ //$NON-NLS-2$
+ protected static final IPath DEFAULT_CLASSPATH_FS_ROOT = JBossServerCorePlugin.getGlobalSettingsLocation().append("filesets").append("runtimeClasspaths"); //$NON-NLS-1$ //$NON-NLS-2$
private static CustomRuntimeClasspathModel instance;
public static CustomRuntimeClasspathModel getInstance() {
@@ -219,6 +222,9 @@
}
public static void saveFilesets(IRuntimeType runtime, IDefaultPathProvider[] sets) {
+ if( !DEFAULT_CLASSPATH_FS_ROOT.toFile().exists()) {
+ DEFAULT_CLASSPATH_FS_ROOT.toFile().mkdirs();
+ }
IPath fileToWrite = DEFAULT_CLASSPATH_FS_ROOT.append(runtime.getId());
XMLMemento memento = XMLMemento.createWriteRoot("classpathProviders"); //$NON-NLS-1$
for( int i = 0; i < sets.length; i++ ) {
@@ -236,7 +242,8 @@
try {
memento.save(new FileOutputStream(fileToWrite.toFile()));
} catch( IOException ioe) {
- // TODO LOG
+ IStatus status = new Status(IStatus.ERROR, ClasspathCorePlugin.PLUGIN_ID, "Could not save default classpath entries", ioe);
+ ClasspathCorePlugin.getDefault().getLog().log(status);
}
}
}
14 years, 7 months
JBoss Tools SVN: r34531 - trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-09-06 02:51:22 -0400 (Tue, 06 Sep 2011)
New Revision: 34531
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/CustomRuntimeClasspathModel.java
Log:
JBIDE-9605 trunk issue with saving default classpath entries
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/CustomRuntimeClasspathModel.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/CustomRuntimeClasspathModel.java 2011-09-05 21:10:44 UTC (rev 34530)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/CustomRuntimeClasspathModel.java 2011-09-06 06:51:22 UTC (rev 34531)
@@ -19,19 +19,22 @@
import java.util.Arrays;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
import org.eclipse.wst.server.core.IRuntime;
import org.eclipse.wst.server.core.IRuntimeType;
import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.core.internal.XMLMemento;
import org.jboss.ide.eclipse.archives.webtools.filesets.Fileset;
import org.jboss.ide.eclipse.archives.webtools.filesets.FilesetUtil;
+import org.jboss.ide.eclipse.as.classpath.core.ClasspathCorePlugin;
import org.jboss.ide.eclipse.as.core.JBossServerCorePlugin;
import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeResourceConstants;
import org.jboss.ide.eclipse.as.core.util.IJBossToolingConstants;
public class CustomRuntimeClasspathModel implements IJBossToolingConstants, IJBossRuntimeResourceConstants {
- protected static IPath DEFAULT_CLASSPATH_FS_ROOT = JBossServerCorePlugin.getGlobalSettingsLocation().append("filesets").append("runtimeClasspaths"); //$NON-NLS-1$ //$NON-NLS-2$
+ protected static final IPath DEFAULT_CLASSPATH_FS_ROOT = JBossServerCorePlugin.getGlobalSettingsLocation().append("filesets").append("runtimeClasspaths"); //$NON-NLS-1$ //$NON-NLS-2$
private static CustomRuntimeClasspathModel instance;
public static CustomRuntimeClasspathModel getInstance() {
@@ -219,6 +222,9 @@
}
public static void saveFilesets(IRuntimeType runtime, IDefaultPathProvider[] sets) {
+ if( !DEFAULT_CLASSPATH_FS_ROOT.toFile().exists()) {
+ DEFAULT_CLASSPATH_FS_ROOT.toFile().mkdirs();
+ }
IPath fileToWrite = DEFAULT_CLASSPATH_FS_ROOT.append(runtime.getId());
XMLMemento memento = XMLMemento.createWriteRoot("classpathProviders"); //$NON-NLS-1$
for( int i = 0; i < sets.length; i++ ) {
@@ -236,7 +242,8 @@
try {
memento.save(new FileOutputStream(fileToWrite.toFile()));
} catch( IOException ioe) {
- // TODO LOG
+ IStatus status = new Status(IStatus.ERROR, ClasspathCorePlugin.PLUGIN_ID, "Could not save default classpath entries", ioe);
+ ClasspathCorePlugin.getDefault().getLog().log(status);
}
}
}
14 years, 7 months
JBoss Tools SVN: r34530 - trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test.
by jbosstools-commits@lists.jboss.org
Author: psrna
Date: 2011-09-05 17:10:44 -0400 (Mon, 05 Sep 2011)
New Revision: 34530
Modified:
trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/OdeDeployTest.java
Log:
* deploy test fixed
Modified: trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/OdeDeployTest.java
===================================================================
--- trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/OdeDeployTest.java 2011-09-05 17:15:43 UTC (rev 34529)
+++ trunk/bpel/tests/org.jboss.tools.bpel.ui.bot.test/src/org/jboss/tools/bpel/ui/bot/test/OdeDeployTest.java 2011-09-05 21:10:44 UTC (rev 34530)
@@ -46,6 +46,7 @@
ServersView sView = new ServersView();
+
@BeforeClass
public static void setupWorkspace() throws Exception {
@@ -103,7 +104,7 @@
SWTBotTreeItem server = tree.getTreeItem(serverName + " [Started, Synchronized]").select();
server.expand();
bot.sleep(TIME_5S);
- assertTrue(server.getNode("say_hello [Synchronized]").isVisible());
+ assertTrue(server.getNode("say_hello [Started, Synchronized]").isVisible());
}
@Test
14 years, 7 months
JBoss Tools SVN: r34529 - in trunk: build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2011-09-05 13:15:43 -0400 (Mon, 05 Sep 2011)
New Revision: 34529
Modified:
trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/DroolsAllBotTests.java
trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/GuvnorRepositoriesTest.java
trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/ManageDroolsProject.java
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
Log:
Use RequirementAwareSuite as runner for tests
Modified: trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/DroolsAllBotTests.java
===================================================================
--- trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/DroolsAllBotTests.java 2011-09-05 17:01:54 UTC (rev 34528)
+++ trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/DroolsAllBotTests.java 2011-09-05 17:15:43 UTC (rev 34529)
@@ -24,6 +24,7 @@
import org.jboss.tools.drools.ui.bot.test.smoke.DroolsRulesEditorTest;
import org.jboss.tools.drools.ui.bot.test.smoke.OpenDroolsPerspective;
import org.jboss.tools.drools.ui.bot.test.smoke.RuleFlowTest;
+import org.jboss.tools.ui.bot.ext.RequirementAwareSuite;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
import org.jboss.tools.ui.bot.ext.SWTUtilExt;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
@@ -31,7 +32,6 @@
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
/**
@@ -41,8 +41,9 @@
* @author Vladimir Pakan
*
*/
-(a)RunWith(Suite.class)
-(a)SuiteClasses({OpenDroolsPerspective.class,
+(a)RunWith(RequirementAwareSuite.class)
+@SuiteClasses({
+ OpenDroolsPerspective.class,
ManageDroolsRuntime.class,
ManageDroolsProject.class,
ManageDroolsRules.class,
Modified: trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/GuvnorRepositoriesTest.java
===================================================================
--- trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/GuvnorRepositoriesTest.java 2011-09-05 17:01:54 UTC (rev 34528)
+++ trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/GuvnorRepositoriesTest.java 2011-09-05 17:15:43 UTC (rev 34529)
@@ -31,6 +31,9 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.hamcrest.Matcher;
import org.jboss.tools.drools.ui.bot.test.DroolsAllBotTests;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Require;
+import org.jboss.tools.ui.bot.ext.config.Annotations.Server;
+import org.jboss.tools.ui.bot.ext.config.Annotations.ServerState;
import org.jboss.tools.ui.bot.ext.config.requirement.PrepareViews;
import org.jboss.tools.ui.bot.ext.config.requirement.RequirementNotFulfilledException;
import org.jboss.tools.ui.bot.ext.config.requirement.StartServer;
@@ -55,6 +58,12 @@
* @author Vladimir Pakan
*
*/
+@Require(server = @Server(state = ServerState.Present),
+clearProjects=false,
+clearWorkspace=false,
+runOnce=true,
+perspective="Guvnor Repository Exploring"
+)
public class GuvnorRepositoriesTest extends SWTTestExt{
@SuppressWarnings("unused")
private static final Logger log = Logger.getLogger(GuvnorRepositoriesTest.class);
@@ -247,10 +256,12 @@
IDELabel.GuvnorRepositories.PACKAGES_TREE_ITEM,
IDELabel.GuvnorRepositories.MORTGAGE_TREE_ITEM,
fileName);
+ String editorText = GuvnorRepositoriesTest.trimEditorText(editor.toTextEditor().getText());
+ String expectedEditorText = GuvnorRepositoriesTest.trimEditorText(changeText + originalEditorText);
assertTrue("Commit to Guvnor Repository was not successful. File " + fileName + " was not commited properly." +
- "\nIt has content: " + editor.toTextEditor().getText() +
- "\nExpected content: " + changeText + originalEditorText,
- editor.toTextEditor().getText().equals(changeText + originalEditorText));
+ "\nIt has content: " + editorText +
+ "\nExpected content: " + expectedEditorText,
+ editorText.equals(expectedEditorText));
// Test Add To Repository
SWTBotTreeItem tiSampleFile = packageExplorer.selectTreeItem(sampleFileName,
new String[] {DroolsAllBotTests.DROOLS_PROJECT_NAME,
@@ -539,4 +550,10 @@
"\n but is " + editorText,editorText.startsWith(addedChange));
}
+ private static String trimEditorText (String textToTrim){
+
+ return textToTrim.replaceAll("\n", "").replaceAll("\t", "").replaceAll("\r", "").replaceAll(" ", "");
+
+ }
+
}
\ No newline at end of file
Modified: trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/ManageDroolsProject.java
===================================================================
--- trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/ManageDroolsProject.java 2011-09-05 17:01:54 UTC (rev 34528)
+++ trunk/build/aggregate/bottests-site/tests/org.jboss.tools.drools.ui.bot.test/src/org/jboss/tools/drools/ui/bot/test/smoke/ManageDroolsProject.java 2011-09-05 17:15:43 UTC (rev 34529)
@@ -73,6 +73,8 @@
}
}
bot.button(IDELabel.Button.NEXT).click();
+ bot.comboBoxWithLabel(IDELabel.NewDroolsProjectDialog.GENERATE_CODE_COMPATIBLE_WITH_COMBO_BOX_LABEL)
+ .setSelection(IDELabel.NewDroolsProjectDialog.CODE_COMPATIBLE_WITH_50_DROOLS);
bot.button(IDELabel.Button.FINISH).click();
SWTTestExt.util.waitForAll(30*1000L);
bot.sleep(Timing.time10S());
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2011-09-05 17:01:54 UTC (rev 34528)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2011-09-05 17:15:43 UTC (rev 34529)
@@ -433,6 +433,9 @@
public static final class NewDroolsProjectDialog {
public static final String NAME = "Project name:";
+ public static final String GENERATE_CODE_COMPATIBLE_WITH_COMBO_BOX_LABEL = "Generate code compatible with: ";
+ public static final String CODE_COMPATIBLE_WITH_51_DROOLS_OR_ABOVE = "Drools 5.1 or above";
+ public static final String CODE_COMPATIBLE_WITH_50_DROOLS = "Drools 5.0.x";
}
14 years, 7 months
JBoss Tools SVN: r34528 - trunk/documentation/whatsnew/core.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-09-05 13:01:54 -0400 (Mon, 05 Sep 2011)
New Revision: 34528
Modified:
trunk/documentation/whatsnew/core/core-news-3.3.0.M3.html
Log:
updated text for remote launch JBIDE-9610
Modified: trunk/documentation/whatsnew/core/core-news-3.3.0.M3.html
===================================================================
--- trunk/documentation/whatsnew/core/core-news-3.3.0.M3.html 2011-09-05 14:58:23 UTC (rev 34527)
+++ trunk/documentation/whatsnew/core/core-news-3.3.0.M3.html 2011-09-05 17:01:54 UTC (rev 34528)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml version="1.0" encoding="iso-8859-1"?>
<!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">
@@ -6,7 +6,7 @@
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../whatsnew.css"/>
-<title>JBoss Remote Debugging 3.3.0.M3 What's New</title>
+<title>Core/Common 3.3.0.M3 What's New</title>
<script type="text/javascript">
var _gaq = _gaq || [];
@@ -21,7 +21,7 @@
</script></head>
<body>
-<h1>Debugging Remote Java Application 3.3.0.M3 What's New</h1>
+<h1>Core/Common 3.3.0.M3 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a>
<a href="../jst/jst-news-3.3.0.M3.html">JST/JSF Tools ></a>
@@ -31,7 +31,7 @@
<tr>
<td colspan="2">
<hr/>
- <h3>Debugging Remote Java Application</h3>
+ <h3>General</h3>
<hr/>
</td>
</tr>
@@ -41,42 +41,82 @@
</td>
<td width="70%" valign="top">
<p>
- Now JBoss Tools supports discovering and debugging remote Java applications.
+ Now JBoss Tools supports discovering and debugging remote Java
+ applications running on an hotspot enabled JVM.
</p>
- <p>
- You can right-click one or more Java projects in the workspace and call
+
+ <p>This feature allows you to connect the Eclipse Java Debugger
+ to any running Java application without having to configure
+ Eclipse to use the right port and source attachements. This
+ feature will do that work for you, making it super easy to
+ remote debug any java application with full source navigation in
+ your loaded Eclipse projects.</p>
+
+ <p>
+ To use it you right-click one or more Java projects in the workspace and call
an action to discover Remote Java applications started in the debug mode.
</p>
<img src="images/remote-debugging1.png" />
- <p>
- If there are remote Java applications on your localhost, a dialog as shown below will appear:
+
+ <p><i>Note: To be able to detect these remote applications you need classes in the package
+ <code>sun.jvmstat.monitor.*</code> which are only provided by
+ Sun/Oracle based JVM's like the standard JVM/JDK and
+ OpenJDK. The feature should work on all common JDK
+ distributions but if you use some custom JDK distribution it
+ might not work. For OSX these classes are included in the normal
+ JavaVM, but on other operating systems you will need to ensure
+ a full JDK with tools.jar is used when running Eclipse.</i></p>
+
+ <p>
+ The selection of projects is important since it tells JBoss Tools
+ which projects you wish to have added as source projects for the
+ remote Java application.
+ </p>
+
+ <p>Once you select "Remote Java Application..." the scanning
+ commmences, normally this should go fast but if you have alot of
+ java applications or one of them are waiting for a debugger to
+ attach the search can take a while. Eventually, if there are remote Java applications on your localhost, a dialog as shown below will appear:
</p>
<img src="images/remote-debugging2.png" />
<p>
- The application with PID 4964 is started with the 'suspend=y' option. In this case, JDK can determine only the application's PID and port.
+ In this case the application with PID 4964 is started with the
+ 'suspend=y' option. In this case, JDK can determine only the
+ application's PID and port and not any info about class and
+ arguments (because the JVM is suspended/not fully started).
</p>
<p>
- The JBoss Remote Java Application feature uses the standard Eclipse Remote Java Application launch configurations having the JBoss Remote configuration preference checked.
+ In the bottom of the dialog a combobox allowing you to choose
+ between Configurations are shown. JBoss Tools will create one
+ automatically based on the selection but if you have some
+ customization you wish to you can do that and just ensure the
+ "JBoss Remote configuration" preference is checked on your own
+ custom launch configuration
</p>
+
+ <p>If that preference is set, it will be included in the list of
+ possible Configurations and every setting beyond the host/port
+ numbers will be reused. This allow you to customize your launch
+ configurations as you wish to for repeated launches.</p>
+
+<p></p>
<img src="images/remote-debugging3.png" />
<p>
The JBoss Remote Java Application supports the following features:
</p>
<ul>
- <li>all selected projects will be included in the source attachment</li>
- <li>if there is the m2e feature, Maven dependencies for all the selected projects will be resolved
+ <li>Discovers remote applications running on the local host (not external hosts)</li>
+ <li>all selected projects will be included in the source
+ attachment for the project</li>
+ <li>if you have m2e installed, Maven dependencies for all the selected projects will be resolved
and included in the source attachment
(m2e supports this functionality only for Java application, JUnit and TestNG launch configurations)</li>
<li>The user can create Remote Java Application launch configurations containing user specific source attachments</li>
</ul>
- <p>
- The JBoss Remote Java Application feature for now only supports discovering remote applications on localhost.
- </p>
- <p>This feature requires JDK on Windows and Linux. Java for Mac OS X includes all necessary requirements.</p>
<p><small><a href="https://jira.jboss.org/jira/browse/JBIDE-8548">Related Jira</a></small></p>
</td>
14 years, 7 months