JBoss Tools SVN: r27018 - in trunk/usage: plugins/org.jboss.tools.usage/META-INF and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-30 04:58:35 -0500 (Tue, 30 Nov 2010)
New Revision: 27018
Added:
trunk/usage/plugins/org.jboss.tools.usage/.settings/org.jboss.ide.eclipse.as.core.prefs
trunk/usage/tests/org.jboss.tools.usage.test/.settings/org.jboss.ide.eclipse.as.core.prefs
Modified:
trunk/usage/plugins/org.jboss.tools.usage/META-INF/MANIFEST.MF
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpGetRequest.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpRemotePropertiesProvider.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/preferences/GlobalUsageSettings.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/preferences/UsageReportPreferences.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/UsageReport.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/UsageReportDispatcher.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/Tracker.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/UsagePluginLogger.java
trunk/usage/tests/org.jboss.tools.usage.test/JBoss Developer Studio Usage Reporter.launch
trunk/usage/tests/org.jboss.tools.usage.test/JBoss Tools Usage Reporter.launch
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageSettingsTest.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/HttpRemotePropertiesTest.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageIntegrationTest.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/UrlRevealingTracker.java
Log:
[JBIDe-7751] [JBIDe-7552] removed dependency to org.jboss.tools.commons, fixed NPE when logging (accessed a plugin instance variable that was never initialized), made getting/setting pref values does always access pref store (code gets more clear)
Added: trunk/usage/plugins/org.jboss.tools.usage/.settings/org.jboss.ide.eclipse.as.core.prefs
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/.settings/org.jboss.ide.eclipse.as.core.prefs (rev 0)
+++ trunk/usage/plugins/org.jboss.tools.usage/.settings/org.jboss.ide.eclipse.as.core.prefs 2010-11-30 09:58:35 UTC (rev 27018)
@@ -0,0 +1,3 @@
+#Thu Nov 25 17:40:19 CET 2010
+eclipse.preferences.version=1
+org.jboss.ide.eclipse.as.core.singledeployable.deployableList=
Property changes on: trunk/usage/plugins/org.jboss.tools.usage/.settings/org.jboss.ide.eclipse.as.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/usage/plugins/org.jboss.tools.usage/META-INF/MANIFEST.MF
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/META-INF/MANIFEST.MF 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/plugins/org.jboss.tools.usage/META-INF/MANIFEST.MF 2010-11-30 09:58:35 UTC (rev 27018)
@@ -23,6 +23,5 @@
Bundle-Activator: org.jboss.tools.usage.internal.JBossToolsUsageActivator
Bundle-Vendor: %bundle-vendor
Bundle-ActivationPolicy: lazy
-Import-Package: org.jboss.tools.common.log
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpGetRequest.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpGetRequest.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpGetRequest.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -15,7 +15,7 @@
import java.net.URL;
import java.text.MessageFormat;
-import org.jboss.tools.common.log.ILoggingAdapter;
+import org.jboss.tools.usage.tracker.internal.UsagePluginLogger;
/**
* Class that executes a HTTP Get request to the given url.
@@ -28,18 +28,13 @@
private static final String GET_METHOD_NAME = "GET"; //$NON-NLS-1$
- private ILoggingAdapter loggingAdapter = null;
+ private UsagePluginLogger logger = null;
-// private CookieHandler cookieHandler;
-
private String userAgent;
- public HttpGetRequest(String userAgent, ILoggingAdapter loggingAdapter) {
+ public HttpGetRequest(String userAgent, UsagePluginLogger logger) {
this.userAgent = userAgent;
- this.loggingAdapter = loggingAdapter;
-// this.cookieHandler = new CookieHandler();
-// this.cookieHandler = CookieHandler.getDefault();
-// cookieHandler.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
+ this.logger = logger;
}
/* (non-Javadoc)
@@ -47,20 +42,17 @@
*/
public void request(String urlString) {
-// CookieHandler currentCookieHandler = setCookieHandler(cookieHandler);
try {
HttpURLConnection urlConnection = createURLConnection(urlString, userAgent);
urlConnection.connect();
int responseCode = getResponseCode(urlConnection);
if (responseCode == HttpURLConnection.HTTP_OK) {
- loggingAdapter.debug(MessageFormat.format(HttpMessages.HttpGetMethod_Success, urlString, responseCode));
+ logger.debug(MessageFormat.format(HttpMessages.HttpGetMethod_Success, urlString, responseCode));
} else {
- loggingAdapter.error(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Http, urlString, responseCode));
+ logger.error(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Http, urlString, responseCode));
}
} catch (Exception e) {
- loggingAdapter.debug(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Io, urlString, e.toString()));
- } finally {
-// setCookieHandler(currentCookieHandler);
+ logger.debug(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Io, urlString, e.toString()));
}
}
@@ -76,12 +68,6 @@
return urlConnection.getResponseCode();
}
-// private CookieHandler setCookieHandler(CookieHandler cookieHandler) {
-// CookieHandler currentCookieHandler = CookieHandler.getDefault();
-// CookieHandler.setDefault(cookieHandler);
-// return currentCookieHandler;
-// }
-
/**
* Creates a new url connection.
*
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpRemotePropertiesProvider.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpRemotePropertiesProvider.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpRemotePropertiesProvider.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -21,12 +21,8 @@
import java.util.HashMap;
import java.util.Map;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Plugin;
-import org.jboss.tools.common.log.ILoggingAdapter;
+import org.jboss.tools.usage.tracker.internal.UsagePluginLogger;
import org.jboss.tools.usage.util.HttpEncodingUtils;
-import org.jboss.tools.usage.util.LoggingUtils;
-import org.jboss.tools.usage.util.StatusUtils;
import org.jboss.tools.usage.util.reader.ReaderUtils;
@@ -45,14 +41,13 @@
private String[] keys;
private String url;
private char valueDelimiter;
- protected Plugin plugin;
- private ILoggingAdapter loggingAdapter;
+ private UsagePluginLogger logger;
- public HttpRemotePropertiesProvider(String url, char valueDelimiter, ILoggingAdapter loggingAdapter, String... keys) {
+ public HttpRemotePropertiesProvider(String url, char valueDelimiter, UsagePluginLogger loggingAdapter, String... keys) {
this.url = url;
this.keys = keys;
this.valueDelimiter = valueDelimiter;
- this.loggingAdapter = loggingAdapter;
+ this.logger = loggingAdapter;
}
@@ -86,18 +81,14 @@
urlConnection.connect();
int responseCode = getResponseCode(urlConnection);
if (responseCode == HttpURLConnection.HTTP_OK) {
- IStatus status = StatusUtils.getInfoStatus(
- plugin.getBundle().getSymbolicName()
- , HttpMessages.HttpResourceMap_Info_HttpQuery
- , url);
- LoggingUtils.log(status, plugin);
+ logger.debug(MessageFormat.format(HttpMessages.HttpResourceMap_Info_HttpQuery, url));
responseReader = getInputStreamReader(urlConnection.getInputStream(), urlConnection.getContentType());
} else {
- loggingAdapter.error(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Http, url, responseCode));
+ logger.error(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Http, url, responseCode));
}
return responseReader;
} catch (IOException e) {
- loggingAdapter.debug(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Io, url, e.toString()));
+ logger.debug(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Io, url, e.toString()));
throw e;
}
}
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/preferences/GlobalUsageSettings.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/preferences/GlobalUsageSettings.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/preferences/GlobalUsageSettings.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -32,8 +32,12 @@
* system property that enables/disables reporting for current eclipse
* instance
*/
- public static final String USAGE_REPORTING_ENABLED_KEY = "usage_reporting_enabled";
+ public static final String USAGE_REPORTING_ENABLED_KEY = "usage_reporting_enabled"; //$NON-NLS-1$
+ /**
+ * system property that enables/disables reporting for all eclipse
+ * instances
+ */
public static final String REMOTEPROPS_USAGE_REPORTING_ENABLED_KEY = USAGE_REPORTING_ENABLED_KEY + "="; //$NON-NLS-1$
/** the enablement default for the local instance */
@@ -96,7 +100,8 @@
*
* @return true, if this instance shall report usage
*
- * @see #SYSPROPS_INSTANCE_ENABLED_KEY
+ * @see #USAGE_REPORTING_ENABLED_KEY
+ * @see #INSTANCE_USAGE_REPORTING_ENABLED_DEFAULT
*/
private boolean isInstanceReportingEnabled() {
return Boolean.valueOf(
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/preferences/UsageReportPreferences.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/preferences/UsageReportPreferences.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/preferences/UsageReportPreferences.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -10,11 +10,12 @@
******************************************************************************/
package org.jboss.tools.usage.internal.preferences;
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import java.io.IOException;
+
import org.eclipse.jface.preference.IPreferenceStore;
import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
import org.jboss.tools.usage.internal.reporting.ReportingMessages;
-import org.jboss.tools.usage.util.StatusUtils;
+import org.jboss.tools.usage.tracker.internal.UsagePluginLogger;
import org.osgi.service.prefs.BackingStoreException;
/**
@@ -24,7 +25,8 @@
public static void setEnabled(boolean enabled) {
UsageReportPreferencesUtils.getStore().putValue(
- IUsageReportPreferenceConstants.USAGEREPORT_ENABLED_ID, String.valueOf(enabled));
+ IUsageReportPreferenceConstants.USAGEREPORT_ENABLED_ID, String.valueOf(enabled));
+ save();
}
public static boolean isEnabled() {
@@ -35,21 +37,24 @@
public static boolean isAskUser() {
return UsageReportPreferencesUtils.getPreferences().getBoolean(
- IUsageReportPreferenceConstants.ASK_USER_USAGEREPORT_ID,
+ IUsageReportPreferenceConstants.ASK_USER_USAGEREPORT_ID,
IUsageReportPreferenceConstants.ASK_USER_USAGEREPORT_DEFAULTVALUE);
}
public static void setAskUser(boolean askUser) {
+ UsageReportPreferencesUtils.getStore().putValue(IUsageReportPreferenceConstants.ASK_USER_USAGEREPORT_ID,
+ String.valueOf(askUser));
+ save();
+ }
+
+ private static void save() {
try {
- IEclipsePreferences preferences = UsageReportPreferencesUtils.getPreferences();
- preferences.putBoolean(IUsageReportPreferenceConstants.ASK_USER_USAGEREPORT_ID, askUser);
- preferences.flush();
- } catch (BackingStoreException e) {
- JBossToolsUsageActivator.getDefault().getLog().log(
- StatusUtils.getErrorStatus(JBossToolsUsageActivator.PLUGIN_ID,
- ReportingMessages.UsageReport_Error_SavePreferences, e,
- IUsageReportPreferenceConstants.ASK_USER_USAGEREPORT_ID));
+ UsageReportPreferencesUtils.getStore().save();
+ } catch (IOException e) {
+ new UsagePluginLogger(JBossToolsUsageActivator.getDefault()).error(
+ ReportingMessages.UsageReport_Error_SavePreferences);
}
+
}
public static void flush() throws BackingStoreException {
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/UsageReport.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/UsageReport.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/UsageReport.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -19,7 +19,6 @@
import org.eclipse.jface.window.Window;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.progress.UIJob;
-import org.jboss.tools.common.log.ILoggingAdapter;
import org.jboss.tools.usage.googleanalytics.GoogleAnalyticsUrlStrategy;
import org.jboss.tools.usage.googleanalytics.IJBossToolsEclipseEnvironment;
import org.jboss.tools.usage.http.HttpGetRequest;
@@ -33,7 +32,6 @@
import org.jboss.tools.usage.tracker.internal.SuffixFocusPoint;
import org.jboss.tools.usage.tracker.internal.Tracker;
import org.jboss.tools.usage.tracker.internal.UsagePluginLogger;
-import org.jboss.tools.usage.util.StatusUtils;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.service.prefs.BackingStoreException;
@@ -48,13 +46,14 @@
private IJBossToolsEclipseEnvironment eclipseEnvironment;
+ UsagePluginLogger logger = new UsagePluginLogger(JBossToolsUsageActivator.getDefault());
+
public UsageReport() throws InvalidSyntaxException {
eclipseEnvironment = JBossToolsUsageActivator.getDefault().getJBossToolsEclipseEnvironment();
focusPoint = new SuffixFocusPoint("tools", eclipseEnvironment.getJBossToolsVersion()) //$NON-NLS-1$
.setChild(new FocusPoint("usage") //$NON-NLS-1$
.setChild(new FocusPoint("action") //$NON-NLS-1$
.setChild(new FocusPoint("wsstartup")))); //$NON-NLS-1$
-
globalSettings = new GlobalUsageSettings(JBossToolsUsageActivator
.getDefault());
}
@@ -78,9 +77,7 @@
try {
UsageReportPreferences.flush();
} catch (BackingStoreException e) {
- IStatus status = StatusUtils.getErrorStatus(JBossToolsUsageActivator.PLUGIN_ID,
- ReportingMessages.UsageReport_Error_SavePreferences, e);
- JBossToolsUsageActivator.getDefault().getLog().log(status);
+ logger.error(ReportingMessages.UsageReport_Error_SavePreferences);
}
}
@@ -91,11 +88,10 @@
private void doReport() {
if (UsageReportPreferences.isEnabled()) {
IURLBuildingStrategy urlBuildingStrategy = new GoogleAnalyticsUrlStrategy(eclipseEnvironment);
- ILoggingAdapter loggingAdapter = new UsagePluginLogger(JBossToolsUsageActivator.getDefault());
ITracker tracker = new Tracker(
urlBuildingStrategy
- , new HttpGetRequest(eclipseEnvironment.getUserAgent(), loggingAdapter)
- , loggingAdapter);
+ , new HttpGetRequest(eclipseEnvironment.getUserAgent(), logger)
+ , logger);
tracker.trackAsynchronously(focusPoint);
}
}
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/UsageReportDispatcher.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/UsageReportDispatcher.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/reporting/UsageReportDispatcher.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -10,12 +10,10 @@
******************************************************************************/
package org.jboss.tools.usage.internal.reporting;
-import org.eclipse.core.runtime.IStatus;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IStartup;
import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
-import org.jboss.tools.usage.util.LoggingUtils;
-import org.jboss.tools.usage.util.StatusUtils;
+import org.jboss.tools.usage.tracker.internal.UsagePluginLogger;
/**
* @author Andre Dieitsheim
@@ -29,8 +27,7 @@
try {
new UsageReport().report();
} catch (Exception e) {
- IStatus status = StatusUtils.getErrorStatus(JBossToolsUsageActivator.PLUGIN_ID, "could not start usage reporting", e);
- LoggingUtils.log(status, JBossToolsUsageActivator.getDefault());
+ new UsagePluginLogger(JBossToolsUsageActivator.getDefault()).error("could not start usage reporting");
}
}
});
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/Tracker.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/Tracker.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/Tracker.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -20,7 +20,6 @@
import java.io.UnsupportedEncodingException;
import java.text.MessageFormat;
-import org.jboss.tools.common.log.ILoggingAdapter;
import org.jboss.tools.usage.http.IHttpGetRequest;
import org.jboss.tools.usage.tracker.IFocusPoint;
import org.jboss.tools.usage.tracker.ITracker;
@@ -37,21 +36,21 @@
private IURLBuildingStrategy urlBuildingStrategy = null;
private IHttpGetRequest httpRequest;
- private ILoggingAdapter loggingAdapter;
+ private UsagePluginLogger logger;
- public Tracker(IURLBuildingStrategy urlBuildingStrategy, IHttpGetRequest httpGetRequest, ILoggingAdapter loggingAdapter) {
+ public Tracker(IURLBuildingStrategy urlBuildingStrategy, IHttpGetRequest httpGetRequest, UsagePluginLogger logger) {
this.httpRequest = httpGetRequest;
- this.loggingAdapter = loggingAdapter;
+ this.logger = logger;
this.urlBuildingStrategy = urlBuildingStrategy;
}
public void trackSynchronously(IFocusPoint focusPoint) {
- loggingAdapter
+ logger
.debug(MessageFormat.format(TrackerMessages.Tracker_Synchronous, focusPoint.getTitle()));
try {
httpRequest.request(getTrackingUrl(focusPoint));
} catch (Exception e) {
- loggingAdapter.error(MessageFormat.format(TrackerMessages.Tracker_Error, e.getMessage()));
+ logger.error(MessageFormat.format(TrackerMessages.Tracker_Error, e.getMessage()));
}
}
@@ -60,7 +59,7 @@
}
public void trackAsynchronously(IFocusPoint focusPoint) {
- loggingAdapter.debug(MessageFormat
+ logger.debug(MessageFormat
.format(TrackerMessages.Tracker_Asynchronous, focusPoint.getTitle()));
new Thread(new TrackingRunnable(focusPoint)).start();
}
@@ -76,7 +75,7 @@
try {
httpRequest.request(getTrackingUrl(focusPoint));
} catch (Exception e) {
- loggingAdapter.error(MessageFormat.format(TrackerMessages.Tracker_Error, e.getMessage()));
+ logger.error(MessageFormat.format(TrackerMessages.Tracker_Error, e.getMessage()));
}
}
}
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/UsagePluginLogger.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/UsagePluginLogger.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/UsagePluginLogger.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -10,21 +10,48 @@
******************************************************************************/
package org.jboss.tools.usage.tracker.internal;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Plugin;
-import org.jboss.tools.common.log.PluginLogger;
-import org.jboss.tools.usage.util.LoggingUtils;
+import org.eclipse.core.runtime.Status;
/**
* @author Andre Dietisheim
- *
*/
-public class UsagePluginLogger extends PluginLogger {
+public class UsagePluginLogger {
+ private Plugin plugin;
+
public UsagePluginLogger(Plugin plugin) {
- super(plugin);
+ this.plugin = plugin;
}
+ public void error(String message) {
+ log(IStatus.ERROR, message);
+ }
+
+ public void debug(String message) {
+ log(IStatus.INFO, message);
+ }
+
+ private void log(int severity, String message) {
+ if (!isTracingEnabled()) {
+ return;
+ }
+
+ if (plugin != null) {
+ IStatus status = new Status(severity, plugin.getBundle().getSymbolicName(), message);
+ plugin.getLog().log(status);
+ }
+ }
+
+
protected boolean isTracingEnabled() {
- return LoggingUtils.isPluginTracingEnabled(getPlugin());
+ Plugin plugin = getPlugin();
+ return plugin != null && plugin.isDebugging();
}
+
+ protected Plugin getPlugin() {
+ return plugin;
+ }
+
}
Added: trunk/usage/tests/org.jboss.tools.usage.test/.settings/org.jboss.ide.eclipse.as.core.prefs
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/.settings/org.jboss.ide.eclipse.as.core.prefs (rev 0)
+++ trunk/usage/tests/org.jboss.tools.usage.test/.settings/org.jboss.ide.eclipse.as.core.prefs 2010-11-30 09:58:35 UTC (rev 27018)
@@ -0,0 +1,3 @@
+#Thu Nov 25 17:40:37 CET 2010
+eclipse.preferences.version=1
+org.jboss.ide.eclipse.as.core.singledeployable.deployableList=
Property changes on: trunk/usage/tests/org.jboss.tools.usage.test/.settings/org.jboss.ide.eclipse.as.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/usage/tests/org.jboss.tools.usage.test/JBoss Developer Studio Usage Reporter.launch
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/JBoss Developer Studio Usage Reporter.launch 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/tests/org.jboss.tools.usage.test/JBoss Developer Studio Usage Reporter.launch 2010-11-30 09:58:35 UTC (rev 27018)
@@ -11,7 +11,7 @@
<booleanAttribute key="clearwslog" value="false"/>
<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/JBoss Developer Studio Usage Reporter"/>
<booleanAttribute key="default" value="false"/>
-<stringAttribute key="deselected_workspace_plugins" value="org.jboss.tools.common.text.xml,org.jboss.tools.common.meta.ui,org.jboss.tools.common,org.jboss.tools.common.verification.ui.test,org.jboss.tools.common.projecttemplates,org.jboss.tools.common.el.core,org.jboss.tools.common.verification.ui,org.mozilla.xulrunner.gtk.linux.x86,org.jboss.tools.common.gef,org.mozilla.xulrunner.carbon.macosx,org.jboss.tools.common.test,org.jboss.tools.common.verification.test,org.jboss.tools.common.verification,org.jboss.tools.common.model,org.jboss.tools.gwt.ui,org.jboss.tools.common.model.ui.capabilities,org.jboss.tools.common.resref.core,org.mozilla.xulrunner.cocoa.macosx,org.jboss.tools.common.ui,org.mozilla.xulrunner.gtk.linux.x86_64,org.jboss.tools.common.el.ui,org.mozilla.xulrunner.win32.win32.x86,org.jboss.tools.usage.test,org.jboss.tools.common.text.ext,org.jboss.tools.gwt.core,org.jboss.tools.common.resref.ui,org.jboss.tools.common.el.core.test,org.jboss.tools.common.model.ui.t!
est,org.mozilla.xpcom,org.jboss.tools.tests,org.jboss.tools.common.model.ui,org.jboss.tools.common.model.test"/>
+<stringAttribute key="deselected_workspace_plugins" value="org.mozilla.xulrunner.cocoa.macosx,org.jboss.tools.common,org.mozilla.xulrunner.gtk.linux.x86_64,org.mozilla.xulrunner.win32.win32.x86,org.jboss.tools.usage.test,org.mozilla.xulrunner.gtk.linux.x86,org.mozilla.xulrunner.carbon.macosx,org.mozilla.xpcom,org.jboss.tools.tests"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}/../runtime-New_configuration(1)"/>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
@@ -23,8 +23,8 @@
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m -Xmx1024m"/>
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
-<stringAttribute key="selected_target_plugins" value="org.eclipse.equinox.ds@default:true,org.eclipse.core.runtime@default:true,org.eclipse.swt.gtk.linux.x86_64@default:false,org.eclipse.ui.intro@default:default,org.eclipse.osgi@-1:true,org.eclipse.core.jobs@default:default,org.eclipse.equinox.concurrent@default:default,org.eclipse.osgi.services@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,org.apache.lucene.analysis@default:default,javax.servlet.jsp@default:default,org.eclipse.core.net@default:default,org.eclipse.core.variables@default:default,org.eclipse.jface.text@default:default,org.eclipse.ecf@default:default,org.eclipse.equinox.http.jetty@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.core.contenttype@default:default,org.apache.commons.el@default:default,org.eclipse.equinox.registry@default:default,org.apache.lucene@default:default,org.eclipse.ecf.ssl@default:false,org.eclipse.ecf.filetransfer@default:default,jav!
ax.mail@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.equinox.util@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.help@default:default,javax.activation@default:default,org.eclipse.text@default:default,org.mortbay.jetty.util@default:default,org.eclipse.core.net.linux.x86_64@default:false,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.ui.ide@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.equinox.app@default:default,org.eclipse.jface@default:default,org.eclipse.ecf.provider.filetransfer@default:default,org.eclipse.help.base@default:default,org.eclipse.core.resources@default:default,org.apache.jasper@default:default,org.eclipse.core.expressions@default:default,com.ibm.icu@default:default,org.apache.!
ant@default:default,org.eclipse.swt@default:default,org.eclips!
e.core.r
untime.compatibility.registry@default:false,org.eclipse.core.filesystem@default:default,org.mortbay.jetty.server@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.security@default:default,org.eclipse.help.ui@default:default,org.jboss.tools.xulrunner.initializer@default:false,org.eclipse.ui.ide.application@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.ui.intro.universal@default:default,org.eclipse.core.filesystem.linux.x86_64@default:false,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.ant.core@default:default,org.eclipse.ui.views@default:default,javax.servlet@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.core.commands@default:default,org.eclipse.ui.forms@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.ui@default:default"/>
-<stringAttribute key="selected_workspace_plugins" value="org.eclipse.epp.usagedata.recording@default:default,org.eclipse.epp.usagedata.gathering@default:default,org.jboss.tools.deltacloud.core@default:default,org.jboss.tools.usage@default:default,com.jboss.jbds.usage.branding@default:default,org.eclipse.epp.usagedata.ui@default:default,org.jboss.tools.deltacloud.ui@default:default,org.jboss.tools.deltacloud.docs@default:default"/>
+<stringAttribute key="selected_target_plugins" value="com.ibm.icu@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,javax.servlet.jsp@default:default,org.eclipse.core.net.linux.x86_64@default:false,org.eclipse.ui.ide.application@default:default,org.eclipse.core.filesystem.linux.x86_64@default:false,org.eclipse.ui.forms@default:default,org.eclipse.equinox.util@default:default,org.eclipse.ecf.provider.filetransfer@default:default,org.eclipse.ui@default:default,org.apache.jasper@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.equinox.concurrent@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.osgi@-1:true,org.eclipse.core.runtime.compatibility.registry@default:false,org.mortbay.jetty.server@default:default,org.eclipse.core.variables@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.registry@default:default,org.eclipse.equi!
nox.p2.repository@default:default,org.eclipse.core.databinding@default:default,org.eclipse.swt@default:default,org.eclipse.swt.gtk.linux.x86_64@default:false,org.eclipse.equinox.app@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.ecf@default:default,org.eclipse.equinox.security@default:default,org.apache.lucene.analysis@default:default,org.eclipse.jface@default:default,org.jboss.tools.xulrunner.initializer@default:false,org.eclipse.ui.intro@default:default,org.eclipse.core.commands@default:default,javax.servlet@default:default,org.eclipse.ui.intro.universal@default:default,javax.activation@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.ecf.ssl@default:false,org.eclipse.ui.views@default:default,org.eclipse.core.filesystem@default:default,org.apache.lucene@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.osgi.services@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.equinox.http.jetty@defa!
ult:default,org.eclipse.jface.text@default:default,org.eclipse!
.help.ui
@default:default,org.eclipse.ant.core@default:default,org.eclipse.core.contenttype@default:default,javax.mail@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.apache.commons.el@default:default,org.eclipse.equinox.ds@default:true,org.eclipse.core.runtime@default:true,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.core.net@default:default,org.eclipse.help.base@default:default,org.apache.ant@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.ecf.filetransfer@default:default,org.eclipse.text@default:default,org.eclipse.core.resources@default:default,org.eclipse.core.jobs@default:default,org.eclipse.help@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.core.expressions@default:default,org.eclipse.ui.ide@default:default,org.eclipse.core.databinding.property@default:default,org.mortbay.jetty.util@default:default"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.deltacloud.ui@default:default,org.jruby.jruby@default:default,org.eclipse.epp.usagedata.gathering@default:default,org.eclipse.epp.usagedata.recording@default:default,org.eclipse.epp.usagedata.ui@default:default,org.jboss.tools.deltacloud.docs@default:default,org.jboss.tools.deltacloud.core@default:default,org.jboss.tools.usage@default:default,com.jboss.jbds.usage.branding@default:default,org.jboss.tools.deltacloud.test@default:default"/>
<booleanAttribute key="show_selected_only" value="false"/>
<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
<booleanAttribute key="tracing" value="false"/>
Modified: trunk/usage/tests/org.jboss.tools.usage.test/JBoss Tools Usage Reporter.launch
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/JBoss Tools Usage Reporter.launch 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/tests/org.jboss.tools.usage.test/JBoss Tools Usage Reporter.launch 2010-11-30 09:58:35 UTC (rev 27018)
@@ -11,7 +11,7 @@
<booleanAttribute key="clearwslog" value="false"/>
<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/JBoss Tools Usage Reporter"/>
<booleanAttribute key="default" value="false"/>
-<stringAttribute key="deselected_workspace_plugins" value="org.jboss.tools.common.text.xml,org.jboss.tools.common.meta.ui,org.jboss.tools.common,org.jboss.tools.common.verification.ui.test,org.jboss.tools.common.projecttemplates,org.jboss.tools.common.el.core,com.jboss.jbds.usage.branding,org.jboss.tools.common.verification.ui,org.mozilla.xulrunner.gtk.linux.x86,org.jboss.tools.common.gef,org.mozilla.xulrunner.carbon.macosx,org.jboss.tools.common.test,org.jboss.tools.common.verification.test,org.jboss.tools.common.verification,org.jboss.tools.common.model,org.jboss.tools.gwt.ui,org.jboss.tools.common.model.ui.capabilities,org.jboss.tools.common.resref.core,org.mozilla.xulrunner.cocoa.macosx,org.jboss.tools.common.ui,org.mozilla.xulrunner.gtk.linux.x86_64,org.jboss.tools.common.el.ui,org.mozilla.xulrunner.win32.win32.x86,org.jboss.tools.usage.test,org.jboss.tools.common.text.ext,org.jboss.tools.gwt.core,org.jboss.tools.common.resref.ui,org.jboss.tools.common.el.core.test,org!
.jboss.tools.common.model.ui.test,org.mozilla.xpcom,org.jboss.tools.tests,org.jboss.tools.common.model.ui,org.jboss.tools.common.model.test"/>
+<stringAttribute key="deselected_workspace_plugins" value="org.mozilla.xulrunner.cocoa.macosx,org.mozilla.xulrunner.gtk.linux.x86_64,org.mozilla.xulrunner.win32.win32.x86,com.jboss.jbds.usage.branding,org.jboss.tools.usage.test,org.mozilla.xulrunner.gtk.linux.x86,org.mozilla.xulrunner.carbon.macosx,org.mozilla.xpcom,org.jboss.tools.tests"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc}/../runtime-New_configuration(1)"/>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
@@ -23,8 +23,8 @@
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m -Xmx1024m"/>
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="org.eclipse.sdk.ide"/>
-<stringAttribute key="selected_target_plugins" value="org.eclipse.equinox.ds@default:true,org.eclipse.core.runtime@default:true,org.eclipse.swt.gtk.linux.x86_64@default:false,org.eclipse.osgi@-1:true,org.eclipse.core.jobs@default:default,org.eclipse.equinox.concurrent@default:default,org.eclipse.osgi.services@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,org.apache.lucene.analysis@default:default,javax.servlet.jsp@default:default,org.eclipse.core.net@default:default,org.eclipse.core.variables@default:default,org.eclipse.jface.text@default:default,org.eclipse.ecf@default:default,org.eclipse.equinox.http.jetty@default:default,org.eclipse.equinox.http.servlet@default:default,org.hamcrest.core@default:default,org.eclipse.core.contenttype@default:default,org.apache.commons.el@default:default,org.eclipse.equinox.registry@default:default,org.apache.lucene@default:default,org.eclipse.ecf.ssl@default:false,org.apache.commons.logging*1.0.4.v201005080501@defa!
ult:default,org.eclipse.ecf.filetransfer@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.equinox.util@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.sdk@default:default,org.eclipse.core.runtime.compatibility@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.help@default:default,org.eclipse.text@default:default,org.mortbay.jetty.util@default:default,org.eclipse.swtbot.ant.optional.junit4@default:false,org.eclipse.core.net.linux.x86_64@default:false,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.ui.ide@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.equinox.app@default:default,org.eclipse.jface@default:default,org.eclipse.ecf.provider.filetransfer@default:default,org.eclipse.help.base@default:default,org.eclipse.core.reso!
urces@default:default,org.apache.jasper@default:default,org.ec!
lipse.co
re.expressions@default:default,com.ibm.icu@default:default,org.apache.ant@default:default,org.eclipse.swt@default:default,org.eclipse.swtbot.ant.optional.junit3@default:false,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.core.filesystem@default:default,org.junit*4.8.1.v4_8_1_v20100427-1100@default:default,org.mortbay.jetty.server@default:default,org.eclipse.equinox.common@2:true,org.eclipse.equinox.security@default:default,org.eclipse.help.ui@default:default,org.jboss.tools.xulrunner.initializer@default:false,org.eclipse.ui.ide.application@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.core.filesystem.linux.x86_64@default:false,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.update.configurator@3:true,org.eclipse.ant.core@default:default,org.eclipse.ui.views@default:default,javax.servlet@default:default,org.e!
clipse.core.databinding.property@default:default,org.junit4@default:default,org.eclipse.core.commands@default:default,org.eclipse.ui.forms@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.ui@default:default"/>
-<stringAttribute key="selected_workspace_plugins" value="org.eclipse.epp.usagedata.recording@default:default,org.eclipse.epp.usagedata.gathering@default:default,org.jboss.tools.deltacloud.core@default:default,org.jboss.tools.usage@default:default,org.eclipse.epp.usagedata.ui@default:default,org.jboss.tools.deltacloud.ui@default:default,org.jboss.tools.deltacloud.docs@default:default"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.swtbot.ant.optional.junit3@default:false,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.ui@default:default,org.apache.lucene.analysis@default:default,org.eclipse.search@default:default,org.eclipse.ant.core@default:default,org.apache.xml.resolver@default:default,org.eclipse.jface.text@default:default,org.eclipse.help.ui@default:default,org.apache.ant@default:default,org.eclipse.wst.common.core@default:default,org.eclipse.core.commands@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.wst.common.environment@default:default,org.eclipse.core.expressions@default:default,org.eclipse.wst.common.project.facet.core@default:default,org.eclipse.wst.xml.core@default:default,com.ibm.icu@default:default,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.ui.forms@default:default,org.eclipse.ui.intro@default:default,org.eclipse.ecf.provider.filetransfer@default:default,org.ec!
lipse.jdt.compiler.tool@default:false,org.eclipse.equinox.security@default:default,org.eclipse.ltk.core.refactoring@default:default,org.eclipse.ecf.filetransfer@default:default,org.eclipse.wst.validation@default:default,org.eclipse.core.filesystem.linux.x86_64@default:false,org.eclipse.equinox.registry@default:default,org.eclipse.core.jobs@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.emf.ecore.change@default:default,org.apache.commons.codec*1.3.0.v20100518-1140@default:default,org.eclipse.core.net.linux.x86_64@default:false,org.eclipse.compare@default:default,org.eclipse.wst.common.uriresolver@default:default,com.instantiations.designer.jdt.fragment@default:false,org.eclipse.wst.sse.core@default:default,org.eclipse.equinox.common@2:true,org.eclipse.jdt.core.manipulation@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.ui.views.properties.tabbed@default:default,org.eclipse.team.core@default:defa!
ult,org.eclipse.osgi@-1:true,org.eclipse.wst.common.emf@defaul!
t:defaul
t,org.eclipse.core.databinding.property@default:default,org.eclipse.ltk.ui.refactoring@default:default,org.mortbay.jetty.server@default:default,org.eclipse.update.configurator@3:true,org.apache.jasper@default:default,org.junit*4.8.1.v4_8_1_v20100427-1100@default:default,org.eclipse.wst.common.frameworks@default:default,org.eclipse.core.resources@default:default,org.eclipse.ecf.identity@default:default,org.eclipse.team.ui@default:default,org.eclipse.ui.editors@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.rse.core@default:default,org.eclipse.jem.util@default:default,org.apache.commons.httpclient*3.1.0.v201005080502@default:default,org.eclipse.help.base@default:default,org.eclipse.core.filebuffers@default:default,org.eclipse.ecf@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.ui.intro.universal@default:default,org.eclipse.equinox.app@default:default,org.mortbay.jetty.util@default:default,org.apache.xerces@default:default,or!
g.eclipse.ui.console@default:default,org.eclipse.ui.ide@default:default,org.jboss.tools.xulrunner.initializer@default:false,org.eclipse.core.runtime.compatibility@default:default,org.eclipse.jdt.ui@default:default,org.eclipse.equinox.p2.repository@default:default,javax.servlet@default:default,org.hamcrest.core@default:default,org.eclipse.emf.edit@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.core.databinding.beans@default:default,org.eclipse.core.databinding.observable@default:default,org.junit4@default:default,org.apache.lucene@default:default,org.eclipse.ui.views@default:default,org.eclipse.core.runtime@default:true,org.eclipse.equinox.concurrent@default:default,org.eclipse.equinox.ds@default:true,org.eclipse.emf.ecore@default:default,org.eclipse.emf.ecore.xmi@default:default,org.projectusus.core@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.ui.navigator@default:default,org.eclipse.osgi.util@default:default,org.eclipse.!
help@default:default,org.eclipse.jface@default:default,org.ecl!
ipse.ecf
.ssl@default:false,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.osgi.services@default:default,org.eclipse.ui.ide.application@default:default,org.eclipse.jdt.compiler.apt@default:false,org.apache.commons.logging*1.0.4.v201005080501@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.jdt.apt.core@default:default,org.eclipse.core.databinding@default:default,org.eclipse.wst.common.emfworkbench.integration@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,org.eclipse.text@default:default,org.eclipse.equinox.util@default:default,org.eclipse.compare.core@default:default,org.eclipse.swtbot.ant.optional.junit4@default:false,org.eclipse.equinox.preferences@default:default,org.eclipse.jdt.core@default:default,org.eclipse.ui.navigator.resources@default:default,org.eclipse.debug.core@default:default,org.eclipse.jdt.debug@default:default,org.eclipse.core.variables@default:default,org.eclipse.jdt.launching@default:def!
ault,org.eclipse.rse.services@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.core.filesystem@default:default,javax.xml@default:default,org.eclipse.debug.ui@default:default,javax.servlet.jsp@default:default,org.eclipse.swt@default:default,org.eclipse.emf.common@default:default,org.eclipse.core.net@default:default,org.apache.commons.el@default:default,org.eclipse.equinox.http.jetty@default:default,org.apache.xml.serializer@default:default,org.eclipse.sdk@default:default,org.eclipse.swt.gtk.linux.x86_64@default:false"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.deltacloud.test@default:default,org.jruby.jruby@default:default,org.jboss.tools.usage@default:default,org.eclipse.epp.usagedata.ui@default:default,org.jboss.tools.deltacloud.core@default:default,org.eclipse.epp.usagedata.recording@default:default,org.jboss.tools.common@default:default,org.eclipse.epp.usagedata.gathering@default:default,org.jboss.tools.deltacloud.docs@default:default,org.jboss.tools.deltacloud.ui@default:default"/>
<booleanAttribute key="show_selected_only" value="false"/>
<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
<booleanAttribute key="tracing" value="true"/>
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageSettingsTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageSettingsTest.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/GlobalUsageSettingsTest.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -22,6 +22,7 @@
import org.jboss.tools.usage.http.HttpRemotePropertiesProvider;
import org.jboss.tools.usage.http.IPropertiesProvider;
import org.jboss.tools.usage.internal.preferences.GlobalUsageSettings;
+import org.jboss.tools.usage.tracker.internal.UsagePluginLogger;
import org.junit.Test;
/**
@@ -110,7 +111,7 @@
@Override
protected IPropertiesProvider createRemoteMap(String url, char valueDelimiter, Plugin plugin,
String... keys) {
- return new HttpRemotePropertiesProvider(url, valueDelimiter, new SystemOutLogger(), keys) {
+ return new HttpRemotePropertiesProvider(url, valueDelimiter, new UsagePluginLogger(plugin), keys) {
@Override
protected InputStreamReader request(HttpURLConnection urlConnection)
throws UnsupportedEncodingException {
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/HttpRemotePropertiesTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/HttpRemotePropertiesTest.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/HttpRemotePropertiesTest.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -20,6 +20,7 @@
import org.jboss.tools.usage.http.HttpRemotePropertiesProvider;
import org.jboss.tools.usage.http.IPropertiesProvider;
+import org.jboss.tools.usage.tracker.internal.UsagePluginLogger;
import org.junit.Test;
/**
@@ -55,7 +56,7 @@
final String stringValue, final String anotherValue, char valueDelimiter, String... keys) {
return new HttpRemotePropertiesProvider("http://dummy", valueDelimiter,
- new SystemOutLogger(), keys) {
+ new UsagePluginLogger(JBossToolsUsageTestActivator.getDefault()), keys) {
@Override
protected InputStreamReader request(HttpURLConnection urlConnection)
throws UnsupportedEncodingException {
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageIntegrationTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageIntegrationTest.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageIntegrationTest.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -100,10 +100,10 @@
}
private UrlRevealingTracker getTracker(IGoogleAnalyticsParameters environment) {
- ILoggingAdapter loggingAdapter = new UsagePluginLogger(JBossToolsUsageTestActivator.getDefault());
+ UsagePluginLogger logger = new UsagePluginLogger(JBossToolsUsageTestActivator.getDefault());
IURLBuildingStrategy urlStrategy = new GoogleAnalyticsUrlStrategy(environment);
- IHttpGetRequest httpGetRequest = new HttpGetRequest(environment.getUserAgent(), loggingAdapter);
- return new UrlRevealingTracker(urlStrategy, httpGetRequest, loggingAdapter);
+ IHttpGetRequest httpGetRequest = new HttpGetRequest(environment.getUserAgent(), logger);
+ return new UrlRevealingTracker(urlStrategy, httpGetRequest, logger);
}
private IFocusPoint createFocusPoint(String childFocusPoint) {
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -14,8 +14,8 @@
import java.io.IOException;
import java.net.HttpURLConnection;
-import org.jboss.tools.common.log.ILoggingAdapter;
import org.jboss.tools.usage.http.HttpGetRequest;
+import org.jboss.tools.usage.tracker.internal.UsagePluginLogger;
import org.junit.Test;
/**
@@ -23,6 +23,8 @@
*/
public class JBossToolsUsageRequestsTest {
+ UsagePluginLogger logger = new UsagePluginLogger(JBossToolsUsageTestActivator.getDefault());
+
// @Ignore
// @Test
// public void testUrl0() throws IOException {
@@ -1780,19 +1782,19 @@
private HttpURLConnection urlConnection;
public TestHttpGetMethod(String userAgentString) {
- this(userAgentString, new SystemOutLogger());
+ this(userAgentString, logger);
}
public TestHttpGetMethod(UserAgentString userAgentString) {
- this(userAgentString.toString(), new SystemOutLogger());
+ this(userAgentString.toString(), logger);
}
public TestHttpGetMethod() {
- super(UserAgentString.DEFAULT.toString(), new SystemOutLogger());
+ super(UserAgentString.DEFAULT.toString(), logger);
}
- public TestHttpGetMethod(String userAgent, ILoggingAdapter loggingAdapter) {
- super(userAgent, loggingAdapter);
+ public TestHttpGetMethod(String userAgent, UsagePluginLogger logger) {
+ super(userAgent, logger);
}
@Override
Modified: trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/UrlRevealingTracker.java
===================================================================
--- trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/UrlRevealingTracker.java 2010-11-30 07:57:24 UTC (rev 27017)
+++ trunk/usage/tests/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/UrlRevealingTracker.java 2010-11-30 09:58:35 UTC (rev 27018)
@@ -14,11 +14,11 @@
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
-import org.jboss.tools.common.log.ILoggingAdapter;
import org.jboss.tools.usage.http.IHttpGetRequest;
import org.jboss.tools.usage.tracker.IFocusPoint;
import org.jboss.tools.usage.tracker.IURLBuildingStrategy;
import org.jboss.tools.usage.tracker.internal.Tracker;
+import org.jboss.tools.usage.tracker.internal.UsagePluginLogger;
/**
* @author Andre Dietisheim
@@ -29,8 +29,8 @@
private Lock lock;
public UrlRevealingTracker(IURLBuildingStrategy urlBuildingStrategy, IHttpGetRequest httpGetRequest,
- ILoggingAdapter loggingAdapter) {
- super(urlBuildingStrategy, httpGetRequest, loggingAdapter);
+ UsagePluginLogger logger) {
+ super(urlBuildingStrategy, httpGetRequest, logger);
lock = new ReentrantLock();
}
14 years, 3 months
JBoss Tools SVN: r27017 - trunk/bpel/docs/reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2010-11-30 02:57:24 -0500 (Tue, 30 Nov 2010)
New Revision: 27017
Modified:
trunk/bpel/docs/reference/en-US/reference.xml
trunk/bpel/docs/reference/en-US/tasks.xml
Log:
Update BPEL User Guide to make the build success
https://jira.jboss.org/browse/TOOLSDOC-90
Modified: trunk/bpel/docs/reference/en-US/reference.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/reference.xml 2010-11-30 07:22:07 UTC (rev 27016)
+++ trunk/bpel/docs/reference/en-US/reference.xml 2010-11-30 07:57:24 UTC (rev 27017)
@@ -70,7 +70,6 @@
<colspec colnum="1" align="left" colwidth="1*"/>
<colspec colnum="2" align="left" colwidth="3*"/>
<colspec colnum="3" align="left" colwidth="1*"/>
-
<thead>
<row>
<entry>Option</entry>
@@ -83,15 +82,12 @@
<entry>Name</entry>
<entry>Enter the process name.</entry>
<entry>no default value</entry>
- </row>
-
-
+ </row>
<row>
<entry>Namespace</entry>
<entry>Enter the namespace url here</entry>
<entry>no default value</entry>
</row>
-
<row>
<entry>Template</entry>
<entry>Select one of the provided templates:
@@ -109,7 +105,7 @@
the caller is notified synchronously when the process completes.</para></listitem>
</itemizedlist></entry>
<entry>Asynchronous BPEL Process</entry>
- </row>
+ </row>
<row>
<entry>Abstract Process</entry>
<entry>Specifies the created process as an abstract one -partially
@@ -149,9 +145,9 @@
<entry>Enter a wsdl service name for the BPEL process.</entry>
<entry>The process name</entry>
</row>
- <row
+ <row>
<entry>Port Name</entry>
- <entryEnter a wsdl port name for the BPEL process.</entry>
+ <entry>Enter a wsdl port name for the BPEL process.</entry>
<entry>The process name + 'Port'</entry>
</row>
<row>
@@ -168,7 +164,7 @@
</tbody>
</tgroup>
</table>
- <figurefloat="0">
+ <figure float="0">
<title>New BPEL Process file Wizard</title>
<mediaobject>
<imageobject>
Modified: trunk/bpel/docs/reference/en-US/tasks.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/tasks.xml 2010-11-30 07:22:07 UTC (rev 27016)
+++ trunk/bpel/docs/reference/en-US/tasks.xml 2010-11-30 07:57:24 UTC (rev 27017)
@@ -73,7 +73,6 @@
<row>
<entry>Field</entry>
<entry>Value</entry>
-
</row>
</thead>
<tbody>
@@ -115,8 +114,7 @@
<thead>
<row>
<entry>Field</entry>
- <entry>Value</entry>
-
+ <entry>Value</entry>
</row>
</thead>
<tbody>
@@ -195,8 +193,7 @@
<thead>
<row>
<entry>Tab</entry>
- <entry>Description</entry>
-
+ <entry>Description</entry>
</row>
</thead>
<tbody>
14 years, 3 months
JBoss Tools SVN: r27016 - trunk/bpel/docs/reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2010-11-30 02:22:07 -0500 (Tue, 30 Nov 2010)
New Revision: 27016
Modified:
trunk/bpel/docs/reference/en-US/install.xml
trunk/bpel/docs/reference/en-US/master.xml
trunk/bpel/docs/reference/en-US/reference.xml
trunk/bpel/docs/reference/en-US/tasks.xml
Log:
Update BPEL User Guide
https://jira.jboss.org/browse/TOOLSDOC-90
Modified: trunk/bpel/docs/reference/en-US/install.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/install.xml 2010-11-30 01:26:00 UTC (rev 27015)
+++ trunk/bpel/docs/reference/en-US/install.xml 2010-11-30 07:22:07 UTC (rev 27016)
@@ -3,7 +3,7 @@
<title>Installation JBoss BPEL Tools</title>
<section id="installeclipse">
<title>Installation JBoss BPEL editor</title>
- <para>At first, you need Eclipse 3.5. You can get it from <ulink url="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downlo...">Eclipse Web Site</ulink>.
+ <para>At first, you need Eclipse 3.6. You can get it from <ulink url="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downlo...">Eclipse Web Site</ulink>.
</para>
<para>The JBoss BPEL editor is included into JBoss Tools.
You have some methods to install JBoss Tools.
@@ -20,7 +20,7 @@
<listitem><para> JBossAS (version 5.1.0.GA or higher),
available from <ulink url="http://www.jboss.org/jbossas">
http://www.jboss.org/jbossas</ulink>.</para></listitem>
- <listitem><para>RiftSaw (version 2.0 or higher), available from <ulink url="http://www.jboss.org/riftsaw">http://www.jboss.org/riftsaw</ulink>.</para></listitem>
+ <listitem><para>RiftSaw (version 2.1 or higher), available from <ulink url="http://www.jboss.org/riftsaw">http://www.jboss.org/riftsaw</ulink>.</para></listitem>
<listitem><para>Ant, available from <ulink url="http://ant.apache.org">here</ulink>.</para></listitem>
</itemizedlist>
@@ -53,7 +53,7 @@
<para>Then in the
<property>${RiftSaw}/install</property> folder run the command:
<property>ant deploy -Ddatabase=hsql -Dws.stack=native -Dws.version=3.2.2.GA</property>
- It will help you to download the web service stack, and then upgrade it for JBoss AS.
+It will help you to download the web service stack, and then upgrade it for JBoss AS. Anyway, you can do it step by step by following the guide from <ulink url="http://www.jboss.org/riftsaw/documentation">JBoss RiftSaw documents</ulink> or the README file in <property moreinfo="none">${RiftSaw}/install</property>
</para>
</listitem>
</itemizedlist>
Modified: trunk/bpel/docs/reference/en-US/master.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/master.xml 2010-11-30 01:26:00 UTC (rev 27015)
+++ trunk/bpel/docs/reference/en-US/master.xml 2010-11-30 07:22:07 UTC (rev 27016)
@@ -1,1106 +1,56 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
-"http://www.docbook.org/xml/4.3/docbookx.dtd">
-<book>
- <bookinfo>
- <title>JBoss BPEL User Guide</title>
- <corpauthor>
- <inlinemediaobject>
- <imageobject role="fo">
- <imagedata fileref="images/jbosstools_logo.png" format="PNG"></imagedata>
- </imageobject>
- <imageobject role="html">
- <imagedata></imagedata>
- </imageobject>
- </inlinemediaobject>
- </corpauthor>
- <author><firstname>Denny</firstname><surname>Xu</surname><email>dxu(a)redhat.com</email></author>
- <author><firstname>Grid</firstname><surname>Qian</surname><email>fqian(a)redhat.com</email></author>
- <author><firstname>Bob</firstname><surname>Brodt</surname><email>bbrodt(a)redhat.com</email></author>
- <copyright>
- <year>2009</year>
- <year>2010</year>
- <holder>JBoss by Red Hat</holder>
- </copyright>
- <releaseinfo>
- Version: 1.0.0.trunk
- </releaseinfo>
- <abstract>
- <title></title>
- <para><ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/bpel_ref_guide/pdf/B...">PDF version</ulink></para>
- </abstract>
- </bookinfo>
- <toc></toc>
-
-<chapter id="overview" xml:base="file:///home/vchukhutsina/repos/ochik_jboss/bpel/docs/reference/en-US/modules/overview.xml">
- <title>JBoss BPEL project Overview</title>
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3CR3//EN"
+"http://www.docbook.org/xml/4.3/docbookx.dtd"
- <para>JBoss BPEL project is a WS-BPEL 2.0 project that gives a way to create, edit, validate and deploy BPEL files to JBoss BPEL runtime. It is based on Eclipse
- <ulink url="http://www.eclipse.org/bpel/">BPEL
- project </ulink>. </para>
-
- <para>It improves the Eclipse BPEL project in the following way: </para>
- <itemizedlist>
- <listitem><para> Implements close integration with JBoss BPEL runtime. Adds a new project type for the deployment to JBoss BPEL runtime.</para></listitem>
- <listitem><para> Supports two ways of deployment: one way is to deploy a bpel project directly to JBoss BPEL runtime. The other way is to deploy bpel files in JBoss ESB project to JBoss BPEL runtime. </para></listitem>
- <listitem><para> Improves the BPEL validator and increases Eclipse BPEL editor's quality. </para></listitem>
- </itemizedlist>
-
- <para>
- <ulink url="http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html">WS-BPEL 2.0</ulink>
- stands for Web Service Business Process Execution Language. Like EAI, BPEL is an XML-based language,
- but BPEL is more specific and targeted. A programmer uses BPEL to join sometimes
- disparate functions into an integrated process, resulting in a seamless use of the Internet to
- conduct business transactions ranging from simple money exchanges to complex calculations and
- asset reallocation.
- </para>
-
- <section>
- <title>Key Features of JBoss BPEL project</title>
- <para>Let's start with looking through the table of the main features of JBoss BPEL editor project: </para>
-
- <table>
- <title>Key Functionality for JBoss BPEL editor project</title>
- <tgroup cols="2">
- <colspec align="left" colnum="1" colwidth="2*"></colspec>
- <colspec colnum="2" colwidth="4*"></colspec>
- <thead>
- <row>
- <entry>Feature</entry>
- <entry>Benefit</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><para>WS-BPEL 2.0 support</para></entry>
- <entry><para>JBoss BPEL project supports the newest WS-BPEL 2.0 specifications. </para></entry>
- </row>
- <row>
- <entry><para>Close integration with JBoss BPEL runtime</para></entry>
- <entry><para>There are two ways to deploy BPEL files to JBoss BPEL runtime.
- The user can deploy a BPEL project as a whole and can deploy BPEL files in
- JBoss ESB project to JBoss BPEL runtime. </para></entry>
- </row>
- <row>
- <entry><para>BPEL file editor</para></entry>
- <entry><para>The user can use the editor separately to edit a BPEL file. </para></entry>
- </row>
- <row>
- <entry><para>BPEL file validator</para></entry>
- <entry><para>The validator can give the error messages about BPEL files to the user. </para></entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
-</chapter>
-
-<chapter id="install" xml:base="file:///home/vchukhutsina/repos/ochik_jboss/bpel/docs/reference/en-US/modules/install.xml">
- <title>Installation JBoss BPEL Tools</title>
- <section id="installeclipse">
- <title>Installation JBoss BPEL editor</title>
- <para>At first, you need Eclipse 3.6. You can get it from <ulink url="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downlo...">Eclipse Web Site</ulink>.
- </para>
- <para>The JBoss BPEL editor is included into JBoss Tools.
- You have some methods to install JBoss Tools.
- See <ulink url="http://www.jboss.org/tools/download/installation.html">Installing JBoss Tools</ulink> for more information.</para>
- <para>If you want to install only the JBoss BPEL editor, you can install it from <ulink url="http://jboss.org/tools/download/dev.html">JBoss Tools</ulink> page separately.
- Please, note, that only JBoss Tools 3.1 or higher version includes JBoss BPEL editor.
- </para>
- </section>
- <section id="installriftsaw">
- <title>Prerequisites</title>
- <para>For installation and configuring BPEL engine into a JBossAS environment you will need the following: </para>
- <itemizedlist>
- <listitem><para>JBossAS (version 5.1.0.GA or higher), available from <ulink url="http://www.jboss.org/jbossas">http://www.jboss.org/jbossas</ulink>.</para></listitem>
- <listitem><para>RiftSaw (version 2.1 or higher), available from <ulink url="http://www.jboss.org/riftsaw">http://www.jboss.org/riftsaw</ulink>.</para></listitem>
- <listitem><para>Ant, available from <ulink url="http://ant.apache.org">here</ulink>.</para></listitem>
- </itemizedlist>
- </section>
- <section id="installRuntime">
- <title>Installation JBoss BPEL Runtime</title>
- <itemizedlist>
- <listitem>
- <para>Unpack the JBossAS installation archive into the required location.</para>
- </listitem>
- <listitem>
- <para>Unpack the RiftSaw distribution into the location alongside the JBossAS installation:</para>
- <itemizedlist>
- <listitem>
- <para>Edit the <property moreinfo="none">install/deployment.properties</property> file to update the JBossAS location settings.</para>
- </listitem>
- <listitem>
- <para>From the <property moreinfo="none">install</property> folder,
- run: <property moreinfo="none">ant deploy -Ddatabase=hsql</property>
- to deploy RiftSaw to JBossAS.
- </para>
- </listitem>
- </itemizedlist>
- </listitem>
- <listitem>
- <para>Then in the
- <property moreinfo="none">${RiftSaw}/install</property> folder run the command:
- <property moreinfo="none">ant deploy -Ddatabase=hsql -Dws.stack=native -Dws.version=3.2.2.GA</property>
- It will help you to download the web service stack, and then upgrade it for JBoss AS. Anyway, you can do it step by step by following the guide from <ulink url="http://www.jboss.org/riftsaw/documentation">JBoss RiftSaw documents</ulink> or the README file in <property moreinfo="none">${RiftSaw}/install</property>
- </para>
- </listitem>
- </itemizedlist>
-
- </section>
-</chapter>
-
-<chapter id="tasks" xml:base="file:///home/vchukhutsina/repos/ochik_jboss/bpel/docs/reference/en-US/modules/tasks.xml">
- <title>Tasks</title>
- <section id="detail">
- <title>Creating and editing a BPEL project</title>
- <para>In the chapter we describe the necessary steps to create a new BPEL project and edit the BPEL files.
- You can get the source of the example from <property moreinfo="none">
- riftsaw/samples/quickstart/hello_world</property>.
- Here and further in the guide we will create
- a simple echo example, used to respond to a sent message with a
- modified version of the request message being returned in a response.
- First of all, you should create a BPEL project.
-
- </para>
- <section id="createproject">
- <title>Creating a BPEL project</title>
- <para>Create the project by selecting
- <emphasis><property moreinfo="none">New > Project... > BPEL 2.0 > BPEL Project</property></emphasis> from the menu bar.
- Then click the <property moreinfo="none">Next</property> button.
- </para>
- <figure float="0">
- <title>New BPEL Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createproject_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>On this page of the <property moreinfo="none">New BPEL Project Wizard</property> enter a project name in the <property moreinfo="none">Project Name</property>
- field,e.g enter <property moreinfo="none">HelloWorld</property>.</para>
-
- <figure float="0">
- <title>New BPEL Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createproject_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Click the <property moreinfo="none">Finish</property> button.
- So you have created the BPEL project named <property moreinfo="none">HelloWorld</property>.
- Its structure is like this: </para>
- <figure float="0">
- <title>The BPEL Project structure</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createproject_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="createprocess">
- <title>Creating a BPEL process</title>
- <para>Now you should create a BPEL process. You can create it by selecting
- <emphasis><property moreinfo="none">New > Others... > BPEL 2.0 > New BPEL Process File</property></emphasis>.
- </para>
- <figure float="0">
- <title>New BPEL Process File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createprocess_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Click the <property moreinfo="none">Next</property> button. Enter the following information:</para>
- <table>
-
- <title>Fields and values</title>
- <tgroup cols="2">
- <colspec align="left" colnum="1" colwidth="2*"></colspec>
- <colspec colnum="2" colwidth="4*"></colspec>
- <thead>
- <row>
- <entry>Field</entry>
- <entry>Value</entry>
-
- </row>
- </thead>
- <tbody>
- <row>
- <entry><para>BPEL Process Name</para></entry>
- <entry><para>enter a process name. For example, <property moreinfo="none">HelloWorld</property>.</para></entry>
- </row>
- <row>
- <entry><para>Namespace</para></entry>
- <entry><para>enter or select a namespace for the BPEL process.</para></entry>
- </row>
- <row>
- <entry><para>Template</para></entry>
- <entry><para>Select the necessary template for the BPEL process.
- When you select the template, you will see the information
- about the template below on the page.In our case you should
- select <property moreinfo="none">Synchronous BPEL Process</property>.</para></entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
-
- <figure float="0">
- <title>New BPEL Process File Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createprocess_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Click the <property moreinfo="none">Next</property> button. On the second page, you can custom your wsdl service details. Enter the following information:</para>
- <table>
-
- <title>Fields and values</title>
- <tgroup cols="2">
- <colspec align="left" colnum="1" colwidth="2*"></colspec>
- <colspec colnum="2" colwidth="4*"></colspec>
- <thead>
- <row>
- <entry>Field</entry>
- <entry>Value</entry>
-
- </row>
- </thead>
- <tbody>
- <row>
- <entry><para>Service Name</para></entry>
- <entry><para>a wsdl service name for the BPEL process. The default is, <property moreinfo="none">HelloWorld</property>.</para></entry>
- </row>
- <row>
- <entry><para>Port Name</para></entry>
- <entry><para>a wsdl port name for the BPEL process. The default is, <property moreinfo="none">HelloWorldPort</property>.</para></entry>
- </row>
- <row>
- <entry><para>Service Address</para></entry>
- <entry><para>an address of the wsdl service for the BPEL process. The default is, <property moreinfo="none">http://localhost:8080/HelloWorld</property>.</para></entry>
- </row>
- <row>
- <entry><para>Binding Protocol</para></entry>
- <entry><para>the binding protocal that you use in the wsdl. You can choose SOAP or HTTP. The default is, <property moreinfo="none">SOAP</property>.</para></entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <figure float="0">
- <title>Create WSDL file for the BPEL Process wizardpage</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createprocess_2a.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Click the <property moreinfo="none">Next</property> button. On the third page, you can choose a folder for the process file from the projects in your workspace. If not choose, The default folder <property moreinfo="none">HelloWorld/bpelContent</property> is selected.
- Click <property moreinfo="none">Finish</property>.
- </para>
- <note>
- <para>All of your files that are used in your BPEL project must be under the <property moreinfo="none">bpelContent</property> folder of a BPEL project. Only in this case
- these files can be deployed to JBoss server.
- </para>
- </note>
-
- <para>Up to now, you have got a simple BPEL process as on the screen below.</para>
- <figure float="0">
- <title>A simple BPEL Process File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createprocess_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The next step, you can do is to edit the BPEL process file and then deploy it to JBoss server. </para>
- </section>
- <section id="editprocess">
- <title>Editing a BPEL process file</title>
- <para>If the <emphasis><property moreinfo="none">Properties view</property></emphasis> and <emphasis><property moreinfo="none">Palette view</property></emphasis> are not opened, you can open the views by right-clicking the BPEL editor and selecting
- <property moreinfo="none">Show in Properties</property>, <property moreinfo="none">Show Palette in Palette view</property>. Then you should have the view like this:
- </para>
- <figure float="0">
- <title>The BPEL editor view</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>In the <emphasis><property moreinfo="none">Palette view</property></emphasis>, you can drag a BPEL element to the BPEL editor and drop it in the place you want.</para>
- <para>In the <emphasis><property moreinfo="none">Properties view</property></emphasis>, you can get the information about every element of the BPEL process.
- In the BPEL editor select any element you want,and then
- the element's properties will be shown in the Properties view.The table below describes the tabs of the Properties view:
- </para>
- <table>
-
- <title>Tabs of the Property view</title>
- <tgroup cols="2">
- <colspec align="left" colnum="1" colwidth="2*"></colspec>
- <colspec colnum="2" colwidth="4*"></colspec>
- <thead>
- <row>
- <entry>Tab</entry>
- <entry>Description</entry>
-
- </row>
- </thead>
- <tbody>
- <row>
- <entry><para>Description</para></entry>
- <entry><para>Shows the descriptive information about the element,e.g. <property moreinfo="none">Name</property> of the element.</para></entry>
- </row>
- <row>
- <entry><para>Details</para></entry>
- <entry><para>Shows the detailed and important information about the element.
- It is the most important section of an element.
- Most of the properties of an element are set in this section.</para></entry>
- </row>
- <row>
- <entry><para>Join Behavior</para></entry>
- <entry><para>Shows the <property moreinfo="none">Join Failure</property> property of the element.</para></entry>
- </row>
- <row>
- <entry><para>Documentation</para></entry>
- <entry><para>Shows the <property moreinfo="none">documentation</property> sub-element of an element.</para></entry>
- </row>
- <row>
- <entry><para>Other</para></entry>
- <entry><para>Every BPEL element has its own sections: Correlation section, Message Exchange section, and so on. We will
- introduce them while using them.</para></entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <para>In order to see how a simple BPEL process works in action, you should do some steps as below: </para>
- <itemizedlist>
- <listitem>
- <para>Modify two variables of the process:</para>
- <itemizedlist>
- <listitem><para>Click on the details tab of the input variable,
- select <property moreinfo="none">Browse...</property>.
- Then choose <property moreinfo="none">string</property> primitive from the list.</para>
- <figure float="0">
- <title>Edit variable in <property moreinfo="none">process</property> file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bpel_task_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Select <property moreinfo="none">xsd</property> as a namespace in the popup menu.</para>
- </listitem>
- </itemizedlist>
-
- </listitem>
- <listitem>
- <para>Add an <property moreinfo="none">Assign</property> element between the <property moreinfo="none">receiveInput</property> element and <property moreinfo="none">replyOutput</property> element.</para>
- </listitem>
- <listitem>
- <para>Click the <property moreinfo="none">Assign</property> element in the BPEL editor in order to get the properties information of it in the Properties view.
- </para>
- </listitem>
- <listitem>
- <para>Set its name in the <property moreinfo="none">Description</property> tab as <property moreinfo="none">assignHelloMesg</property>.</para>
- <para>In the <property moreinfo="none">Details</property> section of Properties view,
- you should click the <property moreinfo="none">New</property> button to add a <property moreinfo="none">copy</property> sub-element to the element.
- Assign "Variable to Variable"(input:string to output). At this time, an "<property moreinfo="none">initializer</property>" popup dialog appears. Click on the <property moreinfo="none">Yes</property> button in the dialog.
- </para>
- <figure float="0">
- <title>Add <property moreinfo="none">Assign</property> to the process</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bpel_task_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Then you should click <property moreinfo="none">New</property> once more and select Expression to Variable (assign <code>concat($input,' World')</code>) to <property moreinfo="none">result:string</property>.</para>
- <figure float="0">
- <title>Add <property moreinfo="none">Expression assign</property> to the process</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bpel_task_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- </section>
-
- <section id="wsdl">
- <title>Adding Service to WSDL file</title>
- <para></para>
- <para>The HelloWorldArtifacts.wsdl has been added a service when you create a BPEL process file. You have a default service in this WSDL file. But if you want to add a service by yourself, you can follow the steps as below: </para>
- <itemizedlist>
- <listitem>
- <para>Open the file "<property moreinfo="none">HelloWorldArtifacts.wsdl</property>" in the "<property moreinfo="none">HelloWorld</property>" project by double-clicking the file. Right-click the WSDL editor and select
- <property moreinfo="none">Add Service</property>. A new service should appear in the editor. Name it <property moreinfo="none">HelloWorldProcessService</property>. It has the Port
- named <property moreinfo="none">NewPort</property>. Select it, right-click on it and rename it to <property moreinfo="none">HelloWorldProcessPort</property> in the Properties
- view.
- </para>
- <figure float="0">
- <title>Add <property moreinfo="none">Service</property> to the WSDL file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Right-click somewhere in the whitespace of the WSDL editor and select
- <property moreinfo="none">Add Binding</property>. A new Binding component will appear in the editor. Name it <property moreinfo="none">HelloWorldSOAPBinding</property>. Select it, in the
- General tab of the Properties view and select <property moreinfo="none">HelloWorld</property> as a port type in the <property moreinfo="none">PortType</property>. Then click on the
- <property moreinfo="none">Generate Binding Content...</property> button to open the <property moreinfo="none">Binding Wizard</property>. In the wizard, select <property moreinfo="none">SOAP </property>
- as the <property moreinfo="none">Protocol</property>. Finally, click the <property moreinfo="none">Finish</property> button to close the wizard.
- </para>
- <figure float="0">
- <title>Add a <property moreinfo="none">Binding</property> to the WSDL file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_4.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Click the <property moreinfo="none">HelloWorldProcessPort</property> property in the General section of the Properties view, select <property moreinfo="none">HelloWorldSOAPBinding</property> in
- the <property moreinfo="none">Binding</property> combobox. In the <property moreinfo="none">Address</property> field input <ulink url="http://localhost:8080/bpel/processes/HelloWorld?wsdl">http://localhost:8080/bpel/processes/HelloWorld?wsdl</ulink>.
- </para>
- <figure float="0">
- <title>Add the <property moreinfo="none">HelloWorldSOAPBinding</property> to the <property moreinfo="none">HelloWorldProcessPort</property></title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_5.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem><para>You should also change some service part configurations.
- To do this,click part element in the WSDL editor,
- then put the following data in the Properties view.
- </para>
- <figure float="0">
- <title>Configuration of service part</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_5.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
-
- <para>Now you have finished creating a simple BPEL process. As a next step, you can deploy the BPEL project to JBoss BPEL Runtime.</para>
-
- </section>
-
- </section>
- <section id="deploy">
- <title>Deploy a JBoss BPEL project to JBoss BPEL Runtime</title>
- <section id="createdeploy">
- <title>Creating a deploy.xml file</title>
- <para>If you want to deploy a BPEL project to JBoss BPEL Runtime, you should create a deploy.xml file.
- JBoss tools can help you to create it:
- </para>
- <itemizedlist>
- <listitem>
- <para>Create the deploy.xml by selecting
- <emphasis><property moreinfo="none">New > Other... > BPEL 2.0 > Apache ODE Deployment Descriptor</property></emphasis>. Click the <property moreinfo="none">Next</property> button.
- </para>
- <figure float="0">
- <title>New BPEL Deploy file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>On the next wizard page you should enter the following information:</para>
- <para><emphasis><property moreinfo="none">BPEL Project</property></emphasis>: Click the <property moreinfo="none">Browse...</property> button to select the BPEL project in your workspace which you want to deploy to the runtime.
- Please note, that you should select the <property moreinfo="none">bpelContent</property> folder in your new BPEL project as a value of <property moreinfo="none">BPEL Project</property> field because the deploy.xml should be created in this place.
- </para>
- <para><emphasis><property moreinfo="none">File name</property></emphasis>: The default value is deploy.xml. Please, don't change it.</para>
- <para>Click on <property moreinfo="none">Finish</property> button to close the wizard and a new deploy.xml file will be created.</para>
- <figure float="0">
- <title>New BPEL Deploy file Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Double-click the deploy.xml file to open it in ODE Descriptor Deployment Editor.
- In the <property moreinfo="none">Inbound Interfaces</property> section, click the
- <property moreinfo="none">Associated Port</property> column and select <property moreinfo="none">HelloWorldProcessPort</property>
- in the dropdown box.The <property moreinfo="none">Related Service</property> and <property moreinfo="none">Binding Used</property>
- columns should be automatically filled in. Save the <emphasis><property moreinfo="none">deploy.xml</property></emphasis>.
- </para>
- <figure float="0">
- <title>deploy.xml file editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- </section>
- <section id="createruntime">
- <title>Creating JBoss BPEL Server</title>
- <para>Suppose you have installed the <property moreinfo="none">JBoss BPEL Runtime-RiftSaw</property> as it was described <link linkend="installRuntime">before</link>, now you can create a server for JBoss BPEL runtime.</para>
- <itemizedlist>
- <listitem>
- <para>Open the <property moreinfo="none">Servers</property> view by selecting
- <emphasis><property moreinfo="none">Windows > Show View > Other... > Server > Servers</property></emphasis>.
- </para>
- </listitem>
- <listitem>
- <para>Right-click the Servers view and select
- <emphasis><property moreinfo="none">New > Server</property></emphasis> to open the New Server Wizard:
- </para>
- <figure float="0">
- <title>New Server Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_4.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Select <property moreinfo="none">JBoss AS 5.1 </property>as a server type. </para>
- <note>
- <para>Please note, that only JBoss As 5.1 or higher version supports BPEL.</para>
- </note>
- </listitem>
- <listitem>
-
- <para>Click the <property moreinfo="none">Next</property> button. On the next page, you should input your <emphasis><property moreinfo="none">JBoss As</property></emphasis> location. Then click the <property moreinfo="none">Next</property> button and
- you will get the page like this:
- </para>
- <figure float="0">
- <title>Add resource to the server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_5.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Select <property moreinfo="none">HelloWorld</property>, then click the <property moreinfo="none">Add </property> button to add the project to the server.
- Then click on the <property moreinfo="none">Finish</property> button.
- </para>
- <para>Start the server by right-clicking on the server and selecting the <property moreinfo="none">Start</property> item. </para>
-
- <figure float="0">
- <title>The started server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_6.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>If some aspects of server creation is not clear, please, read <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/as/html_single/index...">JBoss Server Manager Reference Guide</ulink> for more details.</para>
- </listitem>
- <listitem>
- <para>You can enter the link <ulink url="http://localhost:8080/bpel-console/app.html">http://localhost:8080/bpel-console/app.html</ulink> to the browser to get the deployed processes.</para>
- <figure float="0">
- <title>The BPEL console</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_7.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- <para>If there's anything we didn't cover or you can't figure out, please feel free to visit our <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201"
- >JBoss Tools Users Forum</ulink> to ask questions.
- There we are also waiting for your suggestions and comments.</para> </section>
- </section>
-</chapter>
-
- <!-- &detail;
- &deploy;-->
-
-<chapter id="reference" xml:base="file:///home/vchukhutsina/repos/ochik_jboss/bpel/docs/reference/en-US/modules/reference.xml">
- <?dbhtml filename="reference.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Tools</keyword>
- <keyword>BPEL</keyword>
- <keyword>JBT</keyword>
- </keywordset>
- </chapterinfo>
- <title>Reference</title>
- <para>This chapter includes detailed reference information about all BPEL tools wizards and editors.</para>
- <section>
- <title>Wizards</title>
- <section>
- <title>New BPEL project Wizard</title>
- <para>This wizard helps to create new BPEL project.It is available with clicking
- <property moreinfo="none">File->New->Other->BPEL project</property> in the menu bar.</para>
- <figure float="0">
- <title>New BPEL Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_1.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>It consists of only one page:</para>
- <itemizedlist>
- <listitem><para>On the page you can adjust the name of the project and the directory where it will be created.</para>
- <para>If "<property moreinfo="none">Use default</property>" option is checked the output directory will be the workspace,
- othervise the user should specify it by himself using <property moreinfo="none">Browse</property> button.</para>
- <figure float="0">
- <title>New BPEL Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Apache ODE Deployment Descriptor Wizard</title>
- <para>Using this wizard user can create ODE deployment descriptor (deploy.xml) and place it in the temporary directory.It is available with clicking
- <property moreinfo="none">File->New->Other->Apache ODE Deployment Descriptor Wizard</property> in the menu bar.</para>
- <figure float="0">
- <title>New BPEL Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_2.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>On the page you can adjust the name of the deployment descriptor and
- the directory where it will be created.Note,that you should use <property moreinfo="none">
- /PROJECT_NAME/bpelContent</property> directory as an output one.</para>
-
- </section>
- <section>
- <title>New BPEL Process file Wizard</title>
- <para>Using <property moreinfo="none">New BPEL Process file Wizard</property>
- user can create BPEL process file and WSDL file if it is necessary.
- The wizard includes several pages:</para>
- <itemizedlist>
- <listitem><para>The first page has the following options to set:</para>
- <table>
- <title>New BPEL Process file Wizard. First Page Options.</title>
- <tgroup cols="3">
- <colspec align="left" colnum="1" colwidth="1*"></colspec>
- <colspec align="left" colnum="2" colwidth="3*"></colspec>
- <colspec align="left" colnum="3" colwidth="1*"></colspec>
-
- <thead>
- <row>
- <entry>Option</entry>
- <entry>Description</entry>
- <entry>Default</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>Name</entry>
- <entry>Enter the process name.</entry>
- <entry>no default value</entry>
- </row>
-
-
- <row>
- <entry>Namespace</entry>
- <entry>Enter the namespace url here</entry>
- <entry>no default value</entry>
- </row>
-
- <row>
- <entry>Template</entry>
- <entry>Select one of the provided templates:
- <itemizedlist>
- <listitem><para><emphasis>Asynchronous BPEL Process</emphasis> -
- generates the basis of orchestration logic: receive and reply activities
- are included into the process;client WSDL is generated,
- service is defined in the <property moreinfo="none">parentlink</property> of the process.
- The caller is notified asynchronously when the process completes.
- </para></listitem>
- <listitem><para><emphasis>Empty BPEL Process</emphasis> - list of services participating in this BPEL process together
- with the one of messages used within the process is empty.There are no any orchestration logic.</para></listitem>
- <listitem><para><emphasis>Synchronous BPEL Process</emphasis> -
- similar to Asynchronous BPEL Process template except the fact that here
- the caller is notified synchronously when the process completes.</para></listitem>
- </itemizedlist></entry>
- <entry>Asynchronous BPEL Process</entry>
- </row>
- <row>
- <entry>Abstract Process</entry>
- <entry>Specifies the created process as an abstract one -partially
- specified processes that are not intended to be executed.</entry>
- <entry>unchecked</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <figure float="0">
- <title>New BPEL Process file Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_3.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- </listitem>
-
- <listitem><para>The second page has the following options to set:</para>
- <table>
- <title>New BPEL Process file Wizard. Second Page Options.</title>
- <tgroup cols="3">
- <colspec align="left" colnum="1" colwidth="1*"></colspec>
- <colspec align="left" colnum="2" colwidth="3*"></colspec>
- <colspec align="left" colnum="3" colwidth="1*"></colspec>
-
- <thead>
- <row>
- <entry>Option</entry>
- <entry>Description</entry>
- <entry>Default</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>Service Name</entry>
- <entry>Enter a wsdl service name for the BPEL process.</entry>
- <entry>The process name</entry>
- </row>
-
- <row>
- <entry>Port Name</entry>
- <entry>Enter a wsdl port name for the BPEL process.</entry>
- <entry>The process name + 'Port' </entry>
- </row>
-
- <row>
- <entry>Service Address</entry>
- <entry>Enter an address of the wsdl service for the BPEL process.</entry>
- <entry>http://localhost:8080/ + process name </entry>
- </row>
-
- <row>
- <entry>Binding Protocol</entry>
- <entry>Choose the binding protocal that you use in the wsdl: SOAP or HTTP </entry>
- <entry>SOAP </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <figure float="0">
- <title>New BPEL Process file Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_3a.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
-
- </listitem>
-
-
-
- <listitem><para>On the third page the user should select the BPEL project
- and folder where the process file will be created:</para>
- <figure float="0">
- <title>New BPEL Process file Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_4.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- <note>
- <para>Process files that are used in the BPEL project must be under the <property moreinfo="none">bpelContent</property> folder. Only in this case
- these files can be deployed to JBoss server.
- </para>
- </note>
- </section>
- </section>
- <section>
- <title>Editors</title>
- <section>
- <title>Business Process Editor</title>
- <para>Business Process Editor is intended to facilitate the process of changing and
- adding new logic to BPEL process file.You can open <emphasis>.bpel</emphasis>
- in this editor by right click the file in the project explorer and selecting
- <property moreinfo="none">Open With...->Business Process Editor</property>
- </para>
- <figure float="0">
- <title>Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_5.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The editor consists of two tabs:<property moreinfo="none">Design</property> tab and <property moreinfo="none">Source</property> tab.</para>
- <section>
- <title>Design tab</title>
- <para>Design tab is the main part of Business Process Editor.It consists of 3 parts:</para>
- <itemizedlist>
- <listitem><para>Visual Pane:</para>
- <figure float="0">
- <title>Visual Pane of Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_6.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The Visual Pane graphically displays the order in which the activities are executed.</para>
- </listitem>
- <listitem><para>Palette:</para>
- <figure float="0">
- <title>Palette of Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_7.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The <property moreinfo="none">Palette</property> represents different elements of the BPEL activities
- organized into functional categories.
- Using it the user can easily add new elements to the sequence activity.
- To do this,he should just click the required element and then drug
- and drop it to the place on the Visual Pane where it should be added.</para>
- </listitem>
- <listitem><para>Behavior Components View:</para>
- <figure float="0">
- <title>Behavior Components View of Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_8.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Execution behavior components are grouped into the <property moreinfo="none">
- Behavior Components View</property>.
- The view is also fully syncronized with Properties view where you can customize all
- the properties of the component.</para>
- <figure float="0">
- <title>Process Structure View of Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_9.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>To add an element to some component group click plus(<inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_10.png"></imagedata>
- </imageobject>
- </inlinemediaobject>) icon,
- for its deleting you should click the element and
- use its <property moreinfo="none">Delete</property> option in the popup menu.</para>
- </listitem>
-
- </itemizedlist>
-
-
- </section>
- <section>
- <title>Source tab</title>
- <para>Source tab can be used for editing BPEL process file directly.
- The validation of file structure is also available.
- </para>
- <figure float="0">
- <title>Validation error in Source tab</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_11.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>If the user wants to disable/unable validation he can do it by following
- <property moreinfo="none">Window->Preferences->Validation</property>.</para>
- <figure float="0">
- <title>Validation configuration</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_12.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- </section>
- <section>
- <title>ODE Deployment Descriptor Editor</title>
- <para>To deploy your process in Ode you need to create a
- simple deployment descriptor with basic information and
- <property moreinfo="none">ODE Deployment Descriptor Editor</property> facilitates the process of descriptor configuration.
- You can see how the descriptor file,opened in the editor looks like on the picture below:
- </para>
- <figure float="0">
- <title>ODE Deployment Descriptor Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_13.png"></imagedata>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The table below describes the configuration options of the
- ODE Deployment Descriptor Editor:</para>
- <table>
- <title>ODE Deployment Descriptor Editor.Options.</title>
- <tgroup cols="3">
- <colspec align="left" colnum="1" colwidth="1*"></colspec>
- <colspec align="left" colnum="2" colwidth="3*"></colspec>
- <colspec align="left" colnum="3" colwidth="1*"></colspec>
-
- <thead>
- <row>
- <entry>Section</entry>
- <entry>Options</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry morerows="1" valign="middle"><para>
- General</para></entry>
-
- <entry>This process is</entry>
- <entry>Select one of the provided options:
- <itemizedlist>
- <listitem>
- <para><emphasis>activated</emphasis>
- </para>
- </listitem>
- <listitem>
- <para><emphasis>deactivated</emphasis></para>
- </listitem>
- <listitem>
- <para><emphasis>retired</emphasis>
- </para>
- </listitem>
- </itemizedlist></entry>
-
- </row>
- <row><entry>Run this process in memory</entry>
- <entry>for performance purposes,
- you can define the process as being
- executed only in-memory.</entry>
- </row>
-
- <row>
- <entry>Inbound Interfaces(Services)</entry>
- <entry>Associated Port</entry>
- <entry>Click Associated Port and the dropdown list with all available port names will appear.
- Select the one you need ,other fields will be filled automatically.
- This action configure the services
- provided by the process and
- bind each service to an endpoint
- </entry>
-
- </row>
-
- <row>
- <entry>Outbound Interfaces(Invokes)</entry>
- <entry>Associated Port</entry>
- <entry>Click Associated Port and the dropdown list with all available port names will appear.
- Select the one you need, other fields will be filled automatically.
- This action configure the services
- invoked by the process</entry>
- </row>
- <row>
- <entry>Process-level Monitoring Events</entry>
- <entry> <itemizedlist>
- <listitem><para>
- <emphasis>None</emphasis>
- </para></listitem>
- <listitem>
- <para>
- <emphasis>All</emphasis>
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis>Selected</emphasis>:
- </para>
- <itemizedlist>
- <listitem><para>Instance life cycle</para></listitem>
- <listitem><para>Activity life cycle</para></listitem>
- <listitem><para>Data handling</para></listitem>
- <listitem><para>Scope handling</para></listitem>
- <listitem><para>Correlation</para></listitem>
-
- </itemizedlist>
-
- </listitem>
- </itemizedlist>
- </entry>
- <entry>Using ODE's deployment descriptor, it's also
- possible to make events generation to
- filtrate which ones get created.
- All option just duplicates the default behaviour,
- when nothing is specified in the deployment.</entry>
- </row>
- <row>
- <entry>Scope-level Monitoring Events</entry>
- <entry>Scope</entry>
- <entry>This section makes it possible to
- define filtering for each scope of your process.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
-
- </section>
-
-
-</chapter>
-
-
-
-<chapter xml:base="file:///home/vchukhutsina/repos/ochik_jboss/bpel/docs/reference/en-US/modules/summary.xml">
- <?dbhtml filename="summary.html"?>
- <title>Summary</title>
- <para>In conclusion, with this document you know all the capabilities of BPEL Tools
- and could easily start with them.
- The chapters above walked you through the steps on how to create and configure BPEL process and
- deployment descriptor files.
- If you have questions or suggestions concerned both the documentation and tools behavior,
- you are welcome to JBoss Tools Users forum.
- Please, use Jira to report bugs and requests on documentation.</para>
-
- <section>
- <title>Other relevant resources on the topic</title>
- <para>All JBoss Developer Studio/JBoss Tools release documentation you can find at
- <ulink url="http://docs.jboss.org/tools">http://docs.jboss.org/tools</ulink> in the corresponding release directory.
- </para>
- <para>The latest documentation builds are available at <ulink url="http://download.jboss.org/jbosstools/nightly-docs">http://download.jboss.org/jbosstools/nightly-docs</ulink>. </para>
-
- </section>
-</chapter>
-
-</book>
+[<!ENTITY overview SYSTEM "overview.xml">
+<!ENTITY install SYSTEM "install.xml">
+<!ENTITY detail SYSTEM "detail.xml">
+<!ENTITY deploy SYSTEM "deploy.xml">
+<!ENTITY reference SYSTEM "reference.xml">
+<!ENTITY summary SYSTEM "summary.xml">
+<!ENTITY tasks SYSTEM "tasks.xml">
+]>
+<book>
+ <bookinfo>
+ <title>JBoss BPEL User Guide</title>
+ <corpauthor>
+ <inlinemediaobject>
+ <imageobject role="fo">
+ <imagedata fileref="images/jbosstools_logo.png" format="PNG"/>
+ </imageobject>
+ <imageobject role="html">
+ <imagedata/>
+ </imageobject>
+ </inlinemediaobject>
+ </corpauthor>
+ <author>
+ <firstname>Denny</firstname>
+ <surname>Xu</surname>
+ <email>dxu(a)redhat.com</email>
+ </author>
+ <author>
+ <firstname>Grid</firstname>
+ <surname>Qian</surname>
+ <email>fqian(a)redhat.com</email>
+ </author>
+ <author>
+ <firstname>Bob</firstname>
+ <surname>Brodt</surname>
+ <email>bbrodt(a)redhat.com</email>
+ </author>
+ <copyright>
+ <year>2009</year>
+ <year>2010</year>
+ <holder>JBoss by Red Hat</holder>
+ </copyright>
+ <releaseinfo> Version: 1.0.0.trunk </releaseinfo>
+ <abstract>
+ <title/>
+ <para>
+ <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/bpel_ref_guide/pdf/B...">PDF version</ulink>
+ </para>
+ </abstract>
+ </bookinfo>
+ <toc/>
+&overview;&install;&tasks;<!-- &detail;
+ &deploy;-->&reference;&summary;</book>
\ No newline at end of file
Modified: trunk/bpel/docs/reference/en-US/reference.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/reference.xml 2010-11-30 01:26:00 UTC (rev 27015)
+++ trunk/bpel/docs/reference/en-US/reference.xml 2010-11-30 07:22:07 UTC (rev 27016)
@@ -1,386 +1,433 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<chapter id="reference">
- <?dbhtml filename="reference.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>JBoss Tools</keyword>
- <keyword>BPEL</keyword>
- <keyword>JBT</keyword>
- </keywordset>
- </chapterinfo>
- <title>Reference</title>
- <para>This chapter includes detailed reference information about all BPEL tools wizards and editors.</para>
- <section>
- <title>Wizards</title>
- <section>
- <title>New BPEL project Wizard</title>
- <para>This wizard helps to create new BPEL project.It is available with clicking
- <property>File->New->Other->BPEL project</property> in the menu bar.</para>
- <figure>
- <title>New BPEL Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>It consists of only one page:</para>
- <itemizedlist>
- <listitem><para>On the page you can adjust the name of the project and the directory where it will be created.</para>
- <para>If "<property>Use default</property>" option is checked the output directory will be the workspace,
- othervise the user should specify it by himself using <property>Browse</property> button.</para>
- <figure>
- <title>New BPEL Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- </section>
- <section>
- <title>Apache ODE Deployment Descriptor Wizard</title>
- <para>Using this wizard user can create ODE deployment descriptor (deploy.xml) and place it in the temporary directory.It is available with clicking
- <property>File->New->Other->Apache ODE Deployment Descriptor Wizard</property> in the menu bar.</para>
- <figure>
- <title>New BPEL Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_2a.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>On the page you can adjust the name of the deployment descriptor and
- the directory where it will be created.Note,that you should use <property>
- /PROJECT_NAME/bpelContent</property> directory as an output one.</para>
-
- </section>
- <section>
- <title>New BPEL Process file Wizard</title>
- <para>Using <property>New BPEL Process file Wizard</property>
- user can create BPEL process file and WSDL file if it is necessary.
- The wizard includes several pages:</para>
- <itemizedlist>
- <listitem><para>The first page has the following options to set:</para>
- <table>
- <title>New BPEL Process file Wizard. First Page Options.</title>
- <tgroup cols="3">
- <colspec colnum="1" align="left" colwidth="1*"/>
- <colspec colnum="2" align="left" colwidth="3*"/>
- <colspec colnum="3" align="left" colwidth="1*"/>
-
- <thead>
- <row>
- <entry>Option</entry>
- <entry>Description</entry>
- <entry>Default</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>Name</entry>
- <entry>Enter the process name.</entry>
- <entry>no default value</entry>
- </row>
-
-
- <row>
- <entry>Namespace</entry>
- <entry>Enter the namespace url here</entry>
- <entry>no default value</entry>
- </row>
-
- <row>
- <entry>Template</entry>
- <entry>Select one of the provided templates:
- <itemizedlist>
- <listitem><para><emphasis>Asynchronous BPEL Process</emphasis> -
- generates the basis of orchestration logic: receive and reply activities
- are included into the process;client WSDL is generated,
- service is defined in the <property>parentlink</property> of the process.
- The caller is notified asynchronously when the process completes.
- </para></listitem>
- <listitem><para><emphasis>Empty BPEL Process</emphasis> - list of services participating in this BPEL process together
- with the one of messages used within the process is empty.There are no any orchestration logic.</para></listitem>
- <listitem><para><emphasis>Synchronous BPEL Process</emphasis> -
- similar to Asynchronous BPEL Process template except the fact that here
- the caller is notified synchronously when the process completes.</para></listitem>
- </itemizedlist></entry>
- <entry>Asynchronous BPEL Process</entry>
- </row>
- <row>
- <entry>Abstract Process</entry>
- <entry>Specifies the created process as an abstract one -partially
- specified processes that are not intended to be executed.</entry>
- <entry>unchecked</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <figure>
- <title>New BPEL Process file Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- </listitem>
- <listitem><para>On the second page the user should select the BPEL project
- and folder where the process file will be created:</para>
- <figure>
- <title>New BPEL Process file Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- <note>
- <para>Process files that are used in the BPEL project must be under the <property>bpelContent</property> folder. Only in this case
- these files can be deployed to JBoss server.
- </para>
- </note>
- </section>
- </section>
- <section>
- <title>Editors</title>
- <section>
- <title>Business Process Editor</title>
- <para>Business Process Editor is intended to facilitate the process of changing and
- adding new logic to BPEL process file.You can open <emphasis>.bpel</emphasis>
- in this editor by right click the file in the project explorer and selecting
- <property>Open With...->Business Process Editor</property>
- </para>
- <figure>
- <title>Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The editor consists of two tabs:<property>Design</property> tab and <property>Source</property> tab.</para>
- <section>
- <title>Design tab</title>
- <para>Design tab is the main part of Business Process Editor.It consists of 3 parts:</para>
- <itemizedlist>
- <listitem><para>Visual Pane:</para>
- <figure>
- <title>Visual Pane of Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_6.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The Visual Pane graphically displays the order in which the activities are executed.</para>
- </listitem>
- <listitem><para>Palette:</para>
- <figure>
- <title>Palette of Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_7.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The <property>Palette</property> represents different elements of the BPEL activities
- organized into functional categories.
- Using it the user can easily add new elements to the sequence activity.
- To do this,he should just click the required element and then drug
- and drop it to the place on the Visual Pane where it should be added.</para>
- </listitem>
- <listitem><para>Behavior Components View:</para>
- <figure>
- <title>Behavior Components View of Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_8.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Execution behavior components are grouped into the <property>
- Behavior Components View</property>.
- The view is also fully syncronized with Properties view where you can customize all
- the properties of the component.</para>
- <figure>
- <title>Process Structure View of Business Process Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_9.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>To add an element to some component group click plus(<inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_10.png"/>
- </imageobject>
- </inlinemediaobject>) icon,
- for its deleting you should click the element and
- use its <property>Delete</property> option in the popup menu.</para>
- </listitem>
-
- </itemizedlist>
-
-
- </section>
- <section>
- <title>Source tab</title>
- <para>Source tab can be used for editing BPEL process file directly.
- The validation of file structure is also available.
- </para>
- <figure>
- <title>Validation error in Source tab</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_11.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>If the user wants to disable/unable validation he can do it by following
- <property>Window->Preferences->Validation</property>.</para>
- <figure>
- <title>Validation configuration</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_12.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- </section>
- <section>
- <title>ODE Deployment Descriptor Editor</title>
- <para>To deploy your process in Ode you need to create a
- simple deployment descriptor with basic information and
- <property>ODE Deployment Descriptor Editor</property> facilitates the process of descriptor configuration.
- You can see how the descriptor file,opened in the editor looks like on the picture below:
- </para>
- <figure>
- <title>ODE Deployment Descriptor Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/reference/bpel_ref_13.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The table below describes the configuration options of the
- ODE Deployment Descriptor Editor:</para>
- <table>
- <title>ODE Deployment Descriptor Editor.Options.</title>
- <tgroup cols="3">
- <colspec colnum="1" align="left" colwidth="1*"/>
- <colspec colnum="2" align="left" colwidth="3*"/>
- <colspec colnum="3" align="left" colwidth="1*"/>
-
- <thead>
- <row>
- <entry>Section</entry>
- <entry>Options</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry morerows='1' valign='middle'><para>
- General</para></entry>
-
- <entry>This process is</entry>
- <entry>Select one of the provided options:
- <itemizedlist>
- <listitem>
- <para><emphasis>activated</emphasis>
- </para>
- </listitem>
- <listitem>
- <para><emphasis>deactivated</emphasis></para>
- </listitem>
- <listitem>
- <para><emphasis>retired</emphasis>
- </para>
- </listitem>
- </itemizedlist></entry>
-
- </row>
- <row><entry>Run this process in memory</entry>
- <entry>for performance purposes,
- you can define the process as being
- executed only in-memory.</entry>
- </row>
-
- <row>
- <entry>Inbound Interfaces(Services)</entry>
- <entry>Associated Port</entry>
- <entry>Click Associated Port and the dropdown list with all available port names will appear.
- Select the one you need ,other fields will be filled automatically.
- This action configure the services
- provided by the process and
- bind each service to an endpoint
- </entry>
-
- </row>
-
- <row>
- <entry>Outbound Interfaces(Invokes)</entry>
- <entry>Associated Port</entry>
- <entry>Click Associated Port and the dropdown list with all available port names will appear.
- Select the one you need, other fields will be filled automatically.
- This action configure the services
- invoked by the process</entry>
- </row>
- <row>
- <entry>Process-level Monitoring Events</entry>
- <entry> <itemizedlist>
- <listitem><para>
- <emphasis>None</emphasis>
- </para></listitem>
- <listitem>
- <para>
- <emphasis>All</emphasis>
- </para>
- </listitem>
- <listitem>
- <para>
- <emphasis>Selected</emphasis>:
- </para>
- <itemizedlist>
- <listitem><para>Instance life cycle</para></listitem>
- <listitem><para>Activity life cycle</para></listitem>
- <listitem><para>Data handling</para></listitem>
- <listitem><para>Scope handling</para></listitem>
- <listitem><para>Correlation</para></listitem>
-
- </itemizedlist>
-
- </listitem>
- </itemizedlist>
- </entry>
- <entry>Using ODE's deployment descriptor, it's also
- possible to make events generation to
- filtrate which ones get created.
- All option just duplicates the default behaviour,
- when nothing is specified in the deployment.</entry>
- </row>
- <row>
- <entry>Scope-level Monitoring Events</entry>
- <entry>Scope</entry>
- <entry>This section makes it possible to
- define filtering for each scope of your process.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </section>
-
- </section>
-
-
-</chapter>
-
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="reference">
+ <?dbhtml filename="reference.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>BPEL</keyword>
+ <keyword>JBT</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>Reference</title>
+ <para>This chapter includes detailed reference information about all BPEL tools wizards and editors.</para>
+ <section>
+ <title>Wizards</title>
+ <section>
+ <title>New BPEL project Wizard</title>
+ <para>This wizard helps to create new BPEL project.It is available with clicking
+ <property>File->New->Other->BPEL project</property> in the menu bar.</para>
+ <figure>
+ <title>New BPEL Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>It consists of only one page:</para>
+ <itemizedlist>
+ <listitem><para>On the page you can adjust the name of the project and the directory where it will be created.</para>
+ <para>If "<property>Use default</property>" option is checked the output directory will be the workspace,
+ othervise the user should specify it by himself using <property>Browse</property> button.</para>
+ <figure>
+ <title>New BPEL Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section>
+ <title>Apache ODE Deployment Descriptor Wizard</title>
+ <para>Using this wizard user can create ODE deployment descriptor (deploy.xml) and place it in the temporary directory.It is available with clicking
+ <property>File->New->Other->Apache ODE Deployment Descriptor Wizard</property> in the menu bar.</para>
+ <figure>
+ <title>New BPEL Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>On the page you can adjust the name of the deployment descriptor and
+ the directory where it will be created.Note,that you should use <property>
+ /PROJECT_NAME/bpelContent</property> directory as an output one.</para>
+
+ </section>
+ <section>
+ <title>New BPEL Process file Wizard</title>
+ <para>Using <property>New BPEL Process file Wizard</property>
+ user can create BPEL process file and WSDL file if it is necessary.
+ The wizard includes several pages:</para>
+ <itemizedlist>
+ <listitem><para>The first page has the following options to set:</para>
+ <table>
+ <title>New BPEL Process file Wizard. First Page Options.</title>
+ <tgroup cols="3">
+ <colspec colnum="1" align="left" colwidth="1*"/>
+ <colspec colnum="2" align="left" colwidth="3*"/>
+ <colspec colnum="3" align="left" colwidth="1*"/>
+
+ <thead>
+ <row>
+ <entry>Option</entry>
+ <entry>Description</entry>
+ <entry>Default</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>Name</entry>
+ <entry>Enter the process name.</entry>
+ <entry>no default value</entry>
+ </row>
+
+
+ <row>
+ <entry>Namespace</entry>
+ <entry>Enter the namespace url here</entry>
+ <entry>no default value</entry>
+ </row>
+
+ <row>
+ <entry>Template</entry>
+ <entry>Select one of the provided templates:
+ <itemizedlist>
+ <listitem><para><emphasis>Asynchronous BPEL Process</emphasis> -
+ generates the basis of orchestration logic: receive and reply activities
+ are included into the process;client WSDL is generated,
+ service is defined in the <property>parentlink</property> of the process.
+ The caller is notified asynchronously when the process completes.
+ </para></listitem>
+ <listitem><para><emphasis>Empty BPEL Process</emphasis> - list of services participating in this BPEL process together
+ with the one of messages used within the process is empty.There are no any orchestration logic.</para></listitem>
+ <listitem><para><emphasis>Synchronous BPEL Process</emphasis> -
+ similar to Asynchronous BPEL Process template except the fact that here
+ the caller is notified synchronously when the process completes.</para></listitem>
+ </itemizedlist></entry>
+ <entry>Asynchronous BPEL Process</entry>
+ </row>
+ <row>
+ <entry>Abstract Process</entry>
+ <entry>Specifies the created process as an abstract one -partially
+ specified processes that are not intended to be executed.</entry>
+ <entry>unchecked</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <figure>
+ <title>New BPEL Process file Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </listitem>
+ <listitem><para>The second page has the following options to set:</para>
+ <table>
+ <title>New BPEL Process file Wizard. Second Page Options.</title>
+ <tgroup cols="3">
+ <colspec align="left" colnum="1" colwidth="1*"></colspec>
+ <colspec align="left" colnum="2" colwidth="3*"></colspec>
+ <colspec align="left" colnum="3" colwidth="1*"></colspec>
+ <thead>
+ <row>
+ <entry>Option</entry>
+ <entry>Description</entry>
+ <entry>Default</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>Service Name</entry>
+ <entry>Enter a wsdl service name for the BPEL process.</entry>
+ <entry>The process name</entry>
+ </row>
+ <row
+ <entry>Port Name</entry>
+ <entryEnter a wsdl port name for the BPEL process.</entry>
+ <entry>The process name + 'Port'</entry>
+ </row>
+ <row>
+ <entry>Service Address</entry>
+ <entry>Enter an address of the wsdl service for the BPEL process.</entry>
+ <entry>http://localhost:8080/ + process name </entry>
+ </row>
+
+ <row>
+ <entry>Binding Protocol</entry>
+ <entry>Choose the binding protocal that you use in the wsdl: SOAP or HTTP</entry>
+ <entry>SOAP</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <figurefloat="0">
+ <title>New BPEL Process file Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_3a.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem><para>On the third page the user should select the BPEL project and folder where the process file will be created:</para>
+ <figure>
+ <title>New BPEL Process file Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+ <note>
+ <para>Process files that are used in the BPEL project must be under the <property>bpelContent</property> folder. Only in this case
+ these files can be deployed to JBoss server.
+ </para>
+ </note>
+ </section>
+ </section>
+ <section>
+ <title>Editors</title>
+ <section>
+ <title>Business Process Editor</title>
+ <para>Business Process Editor is intended to facilitate the process of changing and
+ adding new logic to BPEL process file.You can open <emphasis>.bpel</emphasis>
+ in this editor by right click the file in the project explorer and selecting
+ <property>Open With...->Business Process Editor</property>
+ </para>
+ <figure>
+ <title>Business Process Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The editor consists of two tabs:<property>Design</property> tab and <property>Source</property> tab.</para>
+ <section>
+ <title>Design tab</title>
+ <para>Design tab is the main part of Business Process Editor.It consists of 3 parts:</para>
+ <itemizedlist>
+ <listitem><para>Visual Pane:</para>
+ <figure>
+ <title>Visual Pane of Business Process Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The Visual Pane graphically displays the order in which the activities are executed.</para>
+ </listitem>
+ <listitem><para>Palette:</para>
+ <figure>
+ <title>Palette of Business Process Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The <property>Palette</property> represents different elements of the BPEL activities
+ organized into functional categories.
+ Using it the user can easily add new elements to the sequence activity.
+ To do this,he should just click the required element and then drug
+ and drop it to the place on the Visual Pane where it should be added.</para>
+ </listitem>
+ <listitem><para>Behavior Components View:</para>
+ <figure>
+ <title>Behavior Components View of Business Process Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Execution behavior components are grouped into the <property>
+ Behavior Components View</property>.
+ The view is also fully syncronized with Properties view where you can customize all
+ the properties of the component.</para>
+ <figure>
+ <title>Process Structure View of Business Process Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>To add an element to some component group click plus(<inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_10.png"/>
+ </imageobject>
+ </inlinemediaobject>) icon,
+ for its deleting you should click the element and
+ use its <property>Delete</property> option in the popup menu.</para>
+ </listitem>
+
+ </itemizedlist>
+
+
+ </section>
+ <section>
+ <title>Source tab</title>
+ <para>Source tab can be used for editing BPEL process file directly.
+ The validation of file structure is also available.
+ </para>
+ <figure>
+ <title>Validation error in Source tab</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_11.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>If the user wants to disable/unable validation he can do it by following
+ <property>Window->Preferences->Validation</property>.</para>
+ <figure>
+ <title>Validation configuration</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ </section>
+ <section>
+ <title>ODE Deployment Descriptor Editor</title>
+ <para>To deploy your process in Ode you need to create a
+ simple deployment descriptor with basic information and
+ <property>ODE Deployment Descriptor Editor</property> facilitates the process of descriptor configuration.
+ You can see how the descriptor file,opened in the editor looks like on the picture below:
+ </para>
+ <figure>
+ <title>ODE Deployment Descriptor Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/reference/bpel_ref_13.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The table below describes the configuration options of the
+ ODE Deployment Descriptor Editor:</para>
+ <table>
+ <title>ODE Deployment Descriptor Editor.Options.</title>
+ <tgroup cols="3">
+ <colspec colnum="1" align="left" colwidth="1*"/>
+ <colspec colnum="2" align="left" colwidth="3*"/>
+ <colspec colnum="3" align="left" colwidth="1*"/>
+
+ <thead>
+ <row>
+ <entry>Section</entry>
+ <entry>Options</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry morerows='1' valign='middle'><para>
+ General</para></entry>
+
+ <entry>This process is</entry>
+ <entry>Select one of the provided options:
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>activated</emphasis>
+ </para>
+ </listitem>
+ <listitem>
+ <para><emphasis>deactivated</emphasis></para>
+ </listitem>
+ <listitem>
+ <para><emphasis>retired</emphasis>
+ </para>
+ </listitem>
+ </itemizedlist></entry>
+
+ </row>
+ <row><entry>Run this process in memory</entry>
+ <entry>for performance purposes,
+ you can define the process as being
+ executed only in-memory.</entry>
+ </row>
+
+ <row>
+ <entry>Inbound Interfaces(Services)</entry>
+ <entry>Associated Port</entry>
+ <entry>Click Associated Port and the dropdown list with all available port names will appear.
+ Select the one you need ,other fields will be filled automatically.
+ This action configure the services
+ provided by the process and
+ bind each service to an endpoint
+ </entry>
+
+ </row>
+
+ <row>
+ <entry>Outbound Interfaces(Invokes)</entry>
+ <entry>Associated Port</entry>
+ <entry>Click Associated Port and the dropdown list with all available port names will appear.
+ Select the one you need, other fields will be filled automatically.
+ This action configure the services
+ invoked by the process</entry>
+ </row>
+ <row>
+ <entry>Process-level Monitoring Events</entry>
+ <entry> <itemizedlist>
+ <listitem><para>
+ <emphasis>None</emphasis>
+ </para></listitem>
+ <listitem>
+ <para>
+ <emphasis>All</emphasis>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>Selected</emphasis>:
+ </para>
+ <itemizedlist>
+ <listitem><para>Instance life cycle</para></listitem>
+ <listitem><para>Activity life cycle</para></listitem>
+ <listitem><para>Data handling</para></listitem>
+ <listitem><para>Scope handling</para></listitem>
+ <listitem><para>Correlation</para></listitem>
+
+ </itemizedlist>
+
+ </listitem>
+ </itemizedlist>
+ </entry>
+ <entry>Using ODE's deployment descriptor, it's also
+ possible to make events generation to
+ filtrate which ones get created.
+ All option just duplicates the default behaviour,
+ when nothing is specified in the deployment.</entry>
+ </row>
+ <row>
+ <entry>Scope-level Monitoring Events</entry>
+ <entry>Scope</entry>
+ <entry>This section makes it possible to
+ define filtering for each scope of your process.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
+ </section>
+
+
+</chapter>
+
Modified: trunk/bpel/docs/reference/en-US/tasks.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/tasks.xml 2010-11-30 01:26:00 UTC (rev 27015)
+++ trunk/bpel/docs/reference/en-US/tasks.xml 2010-11-30 07:22:07 UTC (rev 27016)
@@ -1,444 +1,488 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<chapter id="tasks">
- <title>Tasks</title>
- <section id="detail">
- <title>Creating and editing a BPEL project</title>
- <para>In the chapter we describe the necessary steps to create a new BPEL project and edit the BPEL files.
- You can get the source of the example from <property>
- riftsaw/samples/quickstart/hello_world</property>.
- Here and further in the guide we will create
- a simple echo example, used to respond to a sent message with a
- modified version of the request message being returned in a response.
- First of all, you should create a BPEL project.
-
- </para>
- <section id="createproject">
- <title>Creating a BPEL project</title>
- <para>Create the project by selecting
- <emphasis><property>New > Project... > BPEL 2.0 > BPEL Project</property></emphasis> from the menu bar.
- Then click the <property>Next</property> button.
- </para>
- <figure>
- <title>New BPEL Project</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createproject_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>On this page of the <property>New BPEL Project Wizard</property> enter a project name in the <property>Project Name</property>
- field,e.g enter <property>HelloWorld</property>.</para>
-
- <figure>
- <title>New BPEL Project Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createproject_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Click the <property>Finish</property> button.
- So you have created the BPEL project named <property>HelloWorld</property>.
- Its structure is like this: </para>
- <figure>
- <title>The BPEL Project structure</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createproject_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="createprocess">
- <title>Creating a BPEL process</title>
- <para>Now you should create a BPEL process. You can create it by selecting
- <emphasis><property>New > Others... > BPEL 2.0 > New BPEL Process File</property></emphasis>.
- </para>
- <figure>
- <title>New BPEL Process File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createprocess_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Click the <property>Next</property> button. Enter the following information:</para>
- <table>
-
- <title>Fields and values</title>
- <tgroup cols="2">
- <colspec colnum="1" align="left" colwidth="2*"/>
- <colspec colnum="2" colwidth="4*"/>
- <thead>
- <row>
- <entry>Field</entry>
- <entry>Value</entry>
-
- </row>
- </thead>
- <tbody>
- <row>
- <entry><para>BPEL Process Name</para></entry>
- <entry><para>enter a process name. For example, <property>HelloWorld</property>.</para></entry>
- </row>
- <row>
- <entry><para>Namespace</para></entry>
- <entry><para>enter or select a namespace for the BPEL process.</para></entry>
- </row>
- <row>
- <entry><para>Template</para></entry>
- <entry><para>Select the necessary template for the BPEL process.
- When you select the template, you will see the information
- about the template below on the page.In our case you should
- select <property>Synchronous BPEL Process</property>.</para></entry>
- </row>
-
- </tbody>
- </tgroup>
- </table>
-
- <figure>
- <title>New BPEL Process File Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createprocess_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Click the <property>Next</property> button. On the second page make sure that the folder <property>HelloWorld/bpelContent</property> is selected.
- Click <property>Finish</property>.
- </para>
- <note>
- <para>All of your files that are used in your BPEL project must be under the <property>bpelContent</property> folder. Only in this case
- these files can be deployed to JBoss server.
- </para>
- </note>
-
- <para>Up to now, you have got a simple BPEL process as on the screen below.</para>
- <figure>
- <title>A simple BPEL Process File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_createprocess_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The next step, you can do is to edit the BPEL process file and then deploy it to JBoss server. </para>
- </section>
- <section id="editprocess">
- <title>Editing a BPEL process file</title>
- <para>If the <emphasis><property>Properties view</property></emphasis> and <emphasis><property>Palette view</property></emphasis> are not opened, you can open the views by right-clicking the BPEL editor and selecting
- <property>Show in Properties</property>, <property>Show Palette in Palette view</property>. Then you should have the view like this:
- </para>
- <figure>
- <title>The BPEL editor view</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>In the <emphasis><property>Palette view</property></emphasis>, you can drag a BPEL element to the BPEL editor and drop it in the place you want.</para>
- <para>In the <emphasis><property>Properties view</property></emphasis>, you can get the information about every element of the BPEL process.
- In the BPEL editor select any element you want,and then
- the element's properties will be shown in the Properties view.The table below describes the tabs of the Properties view:
- </para>
- <table>
-
- <title>Tabs of the Property view</title>
- <tgroup cols="2">
- <colspec colnum="1" align="left" colwidth="2*"/>
- <colspec colnum="2" colwidth="4*"/>
- <thead>
- <row>
- <entry>Tab</entry>
- <entry>Description</entry>
-
- </row>
- </thead>
- <tbody>
- <row>
- <entry><para>Description</para></entry>
- <entry><para>Shows the descriptive information about the element,e.g. <property>Name</property> of the element.</para></entry>
- </row>
- <row>
- <entry><para>Details</para></entry>
- <entry><para>Shows the detailed and important information about the element.
- It is the most important section of an element.
- Most of the properties of an element are set in this section.</para></entry>
- </row>
- <row>
- <entry><para>Join Behavior</para></entry>
- <entry><para>Shows the <property>Join Failure</property> property of the element.</para></entry>
- </row>
- <row>
- <entry><para>Documentation</para></entry>
- <entry><para>Shows the <property>documentation</property> sub-element of an element.</para></entry>
- </row>
- <row>
- <entry><para>Other</para></entry>
- <entry><para>Every BPEL element has its own sections: Correlation section, Message Exchange section, and so on. We will
- introduce them while using them.</para></entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- <para>In order to see how a simple BPEL process works in action, you should do some steps as below: </para>
- <itemizedlist>
- <listitem>
- <para>Modify two variables of the process:</para>
- <itemizedlist>
- <listitem><para>Click on the details tab of the input variable,
- select <property>Browse...</property>.
- Then choose <property>string</property> primitive from the list.</para>
- <figure>
- <title>Edit variable in <property>process</property> file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bpel_task_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Select <property>xsd</property> as a namespace in the popup menu.</para>
- </listitem>
- </itemizedlist>
-
- </listitem>
- <listitem>
- <para>Add an <property>Assign</property> element between the <property>receiveInput</property> element and <property>replyOutput</property> element.</para>
- </listitem>
- <listitem>
- <para>Click the <property>Assign</property> element in the BPEL editor in order to get the properties information of it in the Properties view.
- </para>
- </listitem>
- <listitem>
- <para>Set its name in the <property>Description</property> tab as <property>assignHelloMesg</property>.</para>
- <para>In the <property>Details</property> section of Properties view,
- you should click the <property>New</property> button to add a <property>copy</property> sub-element to the element.
- Assign "Variable to Variable"(input:string to output). At this time, an "<property>initializer</property>" popup dialog appears. Click on the <property>Yes</property> button in the dialog.
- </para>
- <figure>
- <title>Add <property>Assign</property> to the process</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bpel_task_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Then you should click <property>New</property> once more and select Expression to Variable
- (assign <code>concat($input,' World'))</code> to <property>result:string</property>. </para>
- <figure>
- <title>Add <property>Expression assign</property> to the process</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/bpel_task_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- </section>
-
- <section id="wsdl">
- <title>Adding Service to WSDL file</title>
- <para></para>
- <itemizedlist>
-
- <listitem>
- <para>Open the file "<property>HelloWorldArtifacts.wsdl</property>" in the "<property>HelloWorld</property>" project by double-clicking the file. Right-click the WSDL editor and select
- <property>Add Service</property>. A new service should appear in the editor. Name it <property>HelloWorldProcessService</property>. It has the Port
- named <property>NewPort</property>. Select it, right-click on it and rename it to <property>HelloWorldProcessPort</property> in the Properties
- view.
- </para>
- <figure>
- <title>Add <property>Service</property> to the WSDL file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Right-click somewhere in the whitespace of the WSDL editor and select
- <property>Add Binding</property>. A new Binding component will appear in the editor. Name it <property>HelloWorldSOAPBinding</property>. Select it, in the
- General tab of the Properties view and select <property>HelloWorld</property> as a port type in the <property>PortType</property>. Then click on the
- <property>Generate Binding Content...</property> button to open the <property>Binding Wizard</property>. In the wizard, select <property>SOAP </property>
- as the <property>Protocol</property>. Finally, click the <property>Finish</property> button to close the wizard.
- </para>
- <figure>
- <title>Add a <property>Binding</property> to the WSDL file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Click the <property>HelloWorldProcessPort</property> property in the General section of the Properties view, select <property>HelloWorldSOAPBinding</property> in
- the <property>Binding</property> combobox. In the <property>Address</property> field input <ulink url="http://localhost:8080/bpel/processes/HelloWorld?wsdl">http://localhost:8080/bpel/processes/HelloWorld?wsdl</ulink>.
- </para>
- <figure>
- <title>Add the <property>HelloWorldSOAPBinding</property> to the <property>HelloWorldProcessPort</property></title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem><para>You should also change some service part configurations.
- To do this,click part element in the WSDL editor,
- then put the following data in the Properties view.
- </para>
- <figure>
- <title>Configuration of service part</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/detail_editprocess_5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
-
- <para>Now you have finished creating a simple BPEL process.As a next step, you can deploy the BPEL project to JBoss BPEL Runtime.</para>
-
- </section>
-
- </section>
- <section id="deploy">
- <title>Deploy a JBoss BPEL project to JBoss BPEL Runtime</title>
- <section id="createdeploy">
- <title>Creating a bpel-deploy.xml file</title>
- <para>If you want to deploy a BPEL project to JBoss BPEL Runtime, you should create a bpel-deploy.xml file.
- JBoss tools can help you to create it:
- </para>
- <itemizedlist>
- <listitem>
- <para>Create the bpel-deploy.xml by selecting
- <emphasis><property>New > Other... > BPEL 2.0 > Apache ODE Deployment Descriptor</property></emphasis>. Click the <property>Next</property> button.
- </para>
- <figure>
- <title>New BPEL Deploy file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>On the next wizard page you should enter the following information:</para>
- <para><emphasis><property>BPEL Project</property></emphasis>: Click the <property>Browse...</property> button to select the BPEL project in your workspace which you want to deploy to the runtime.
- Please note, that you should select the <property>bpelContent</property> folder in your new BPEL project as a value of <property>BPEL Project</property> field because the bpel-deploy.xml should be created in this place.
- </para>
- <para><emphasis><property>File name</property></emphasis>: The default value is bpel-deploy.xml. Please, don't change it.</para>
- <para>Click on <property>Finish</property> button to close the wizard and a new bpel-deploy.xml file will be created.</para>
- <figure>
- <title>New BPEL Deploy file Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Double-click the bpel-deploy.xml file to open it in ODE Descriptor Deployment Editor.
- In the <property>Inbound Interfaces</property> section, click the
- <property>Associated Port</property> column and select <property>HelloWorldProcessPort</property>
- in the dropdown box.The <property>Related Service</property> and <property>Binding Used</property>
- columns should be automatically filled in. Save the <emphasis><property>bpel-deploy.xml</property></emphasis>.
- </para>
- <figure>
- <title>bpel-deploy.xml file editor</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- </section>
- <section id="createruntime">
- <title>Creating JBoss BPEL Server</title>
- <para>Suppose you have installed the <property>JBoss BPEL Runtime-RiftSaw</property> as it was described <link linkend="installRuntime">before</link>, now you can create a server for JBoss BPEL runtime.</para>
- <itemizedlist>
- <listitem>
- <para>Open the <property>Servers</property> view by selecting
- <emphasis><property>Windows > Show View > Other... > Server > Servers</property></emphasis>.
- </para>
- </listitem>
- <listitem>
- <para>Right-click the Servers view and select
- <emphasis><property>New > Server</property></emphasis> to open the New Server Wizard:
- </para>
- <figure>
- <title>New Server Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Select <property>JBoss AS 5.1 </property>as a server type. </para>
- <note>
- <para>Please note, that only JBoss As 5.1 or higher version supports BPEL.</para>
- </note>
- </listitem>
- <listitem>
-
- <para>Click the <property>Next</property> button. On the next page, you should input your <emphasis><property>JBoss As</property></emphasis> location. Then click the <property>Next</property> button and
- you will get the page like this:
- </para>
- <figure>
- <title>Add resource to the server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- <listitem>
- <para>Select <property>HelloWorld</property>, then click the <property>Add </property> button to add the project to the server.
- Then click on the <property>Finish</property> button.
- </para>
- <para>Start the server by right-clicking on the server and selecting the <property>Start</property> item. </para>
-
- <figure>
- <title>The started server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_6.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>If some aspects of server creation is not clear, please, read <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/as/html_single/index...">JBoss Server Manager Reference Guide</ulink> for more details.</para>
- </listitem>
- <listitem>
- <para>You can enter the link <ulink url="http://localhost:8080/bpel/processes.html">http://localhost:8080/bpel/processes.html</ulink> to the browser to get the deployed processes.</para>
- <figure>
- <title>The BPEL console</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/deploy_createdeploy_7.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </itemizedlist>
- <para>If there's anything we didn't cover or you can't figure out, please feel free to visit our <ulink
- url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201"
- >JBoss Tools Users Forum</ulink> to ask questions.
- There we are also waiting for your suggestions and comments.</para>
- </section>
- </section>
-</chapter>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<chapter id="tasks">
+ <title>Tasks</title>
+ <section id="detail">
+ <title>Creating and editing a BPEL project</title>
+ <para>In the chapter we describe the necessary steps to create a new BPEL project and edit the BPEL files.
+ You can get the source of the example from <property>
+ riftsaw/samples/quickstart/hello_world</property>.
+ Here and further in the guide we will create
+ a simple echo example, used to respond to a sent message with a
+ modified version of the request message being returned in a response.
+ First of all, you should create a BPEL project.
+
+ </para>
+ <section id="createproject">
+ <title>Creating a BPEL project</title>
+ <para>Create the project by selecting
+ <emphasis><property>New > Project... > BPEL 2.0 > BPEL Project</property></emphasis> from the menu bar.
+ Then click the <property>Next</property> button.
+ </para>
+ <figure>
+ <title>New BPEL Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createproject_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>On this page of the <property>New BPEL Project Wizard</property> enter a project name in the <property>Project Name</property>
+ field,e.g enter <property>HelloWorld</property>.</para>
+
+ <figure>
+ <title>New BPEL Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createproject_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click the <property>Finish</property> button.
+ So you have created the BPEL project named <property>HelloWorld</property>.
+ Its structure is like this: </para>
+ <figure>
+ <title>The BPEL Project structure</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createproject_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="createprocess">
+ <title>Creating a BPEL process</title>
+ <para>Now you should create a BPEL process. You can create it by selecting
+ <emphasis><property>New > Others... > BPEL 2.0 > New BPEL Process File</property></emphasis>.
+ </para>
+ <figure>
+ <title>New BPEL Process File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createprocess_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click the <property>Next</property> button. Enter the following information:</para>
+ <table>
+
+ <title>Fields and values</title>
+ <tgroup cols="2">
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <thead>
+ <row>
+ <entry>Field</entry>
+ <entry>Value</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>BPEL Process Name</para></entry>
+ <entry><para>enter a process name. For example, <property>HelloWorld</property>.</para></entry>
+ </row>
+ <row>
+ <entry><para>Namespace</para></entry>
+ <entry><para>enter or select a namespace for the BPEL process.</para></entry>
+ </row>
+ <row>
+ <entry><para>Template</para></entry>
+ <entry><para>Select the necessary template for the BPEL process.
+ When you select the template, you will see the information
+ about the template below on the page.In our case you should
+ select <property>Synchronous BPEL Process</property>.</para></entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <figure>
+ <title>New BPEL Process File Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createprocess_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click the <property moreinfo="none">Next</property> button. On the second page, you can custom your wsdl service details. Enter the following information:</para>
+ <table>
+
+ <title>Fields and values</title>
+ <tgroup cols="2">
+ <colspec align="left" colnum="1" colwidth="2*"></colspec>
+ <colspec colnum="2" colwidth="4*"></colspec>
+ <thead>
+ <row>
+ <entry>Field</entry>
+ <entry>Value</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>Service Name</para></entry>
+ <entry><para>a wsdl service name for the BPEL process. The default is, <property moreinfo="none">HelloWorld</property>.</para></entry>
+ </row>
+ <row>
+ <entry><para>Port Name</para></entry>
+ <entry><para>a wsdl port name for the BPEL process. The default is, <property moreinfo="none">HelloWorldPort</property>.</para></entry>
+ </row>
+ <row>
+ <entry><para>Service Address</para></entry>
+ <entry><para>an address of the wsdl service for the BPEL process. The default is, <property moreinfo="none">http://localhost:8080/HelloWorld</property>.</para></entry>
+ </row>
+ <row>
+ <entry><para>Binding Protocol</para></entry>
+ <entry><para>the binding protocal that you use in the wsdl. You can choose SOAP or HTTP. The default is, <property moreinfo="none">SOAP</property>.</para></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <figure float="0">
+ <title>Create WSDL file for the BPEL Process wizardpage</title>
+ <mediaobject >
+ <imageobject>
+ <imagedata fileref="images/detail_createprocess_2a.png"></imagedata>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Click the <property moreinfo="none">Next</property> button. On the third page, you can choose a folder for the process file from the projects in your workspace. If not choose, The default folder <property moreinfo="none">HelloWorld/bpelContent</property> is selected.
+ Click <property>Finish</property>.
+ </para>
+ <note>
+ <para>All of your files that are used in your BPEL project must be under the <property>bpelContent</property> folder of a BPEL project. Only in this case these files can be deployed to JBoss server.
+ </para>
+ </note>
+
+ <para>Up to now, you have got a simple BPEL process as on the screen below.</para>
+ <figure>
+ <title>A simple BPEL Process File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createprocess_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The next step, you can do is to edit the BPEL process file and then deploy it to JBoss server. </para>
+ </section>
+ <section id="editprocess">
+ <title>Editing a BPEL process file</title>
+ <para>If the <emphasis><property>Properties view</property></emphasis> and <emphasis><property>Palette view</property></emphasis> are not opened, you can open the views by right-clicking the BPEL editor and selecting
+ <property>Show in Properties</property>, <property>Show Palette in Palette view</property>. Then you should have the view like this:
+ </para>
+ <figure>
+ <title>The BPEL editor view</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>In the <emphasis><property>Palette view</property></emphasis>, you can drag a BPEL element to the BPEL editor and drop it in the place you want.</para>
+ <para>In the <emphasis><property>Properties view</property></emphasis>, you can get the information about every element of the BPEL process.
+ In the BPEL editor select any element you want,and then
+ the element's properties will be shown in the Properties view.The table below describes the tabs of the Properties view:
+ </para>
+ <table>
+
+ <title>Tabs of the Property view</title>
+ <tgroup cols="2">
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <thead>
+ <row>
+ <entry>Tab</entry>
+ <entry>Description</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>Description</para></entry>
+ <entry><para>Shows the descriptive information about the element,e.g. <property>Name</property> of the element.</para></entry>
+ </row>
+ <row>
+ <entry><para>Details</para></entry>
+ <entry><para>Shows the detailed and important information about the element.
+ It is the most important section of an element.
+ Most of the properties of an element are set in this section.</para></entry>
+ </row>
+ <row>
+ <entry><para>Join Behavior</para></entry>
+ <entry><para>Shows the <property>Join Failure</property> property of the element.</para></entry>
+ </row>
+ <row>
+ <entry><para>Documentation</para></entry>
+ <entry><para>Shows the <property>documentation</property> sub-element of an element.</para></entry>
+ </row>
+ <row>
+ <entry><para>Other</para></entry>
+ <entry><para>Every BPEL element has its own sections: Correlation section, Message Exchange section, and so on. We will
+ introduce them while using them.</para></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <para>In order to see how a simple BPEL process works in action, you should do some steps as below: </para>
+ <itemizedlist>
+ <listitem>
+ <para>Modify two variables of the process:</para>
+ <itemizedlist>
+ <listitem><para>Click on the details tab of the input variable,
+ select <property>Browse...</property>.
+ Then choose <property>string</property> primitive from the list.</para>
+ <figure>
+ <title>Edit variable in <property>process</property> file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bpel_task_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Select <property>xsd</property> as a namespace in the popup menu.</para>
+ </listitem>
+ </itemizedlist>
+
+ </listitem>
+ <listitem>
+ <para>Add an <property>Assign</property> element between the <property>receiveInput</property> element and <property>replyOutput</property> element.</para>
+ </listitem>
+ <listitem>
+ <para>Click the <property>Assign</property> element in the BPEL editor in order to get the properties information of it in the Properties view.
+ </para>
+ </listitem>
+ <listitem>
+ <para>Set its name in the <property>Description</property> tab as <property>assignHelloMesg</property>.</para>
+ <para>In the <property>Details</property> section of Properties view,
+ you should click the <property>New</property> button to add a <property>copy</property> sub-element to the element.
+ Assign "Variable to Variable"(input:string to output). At this time, an "<property>initializer</property>" popup dialog appears. Click on the <property>Yes</property> button in the dialog.
+ </para>
+ <figure>
+ <title>Add <property>Assign</property> to the process</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bpel_task_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Then you should click <property>New</property> once more and select Expression to Variable
+ (assign <code>concat($input,' World'))</code> to <property>result:string</property>. </para>
+ <figure>
+ <title>Add <property>Expression assign</property> to the process</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bpel_task_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="wsdl">
+ <title>Adding Service to WSDL file</title>
+ <para></para>
+ <para>The HelloWorldArtifacts.wsdl has been added a service when you create a BPEL process file. You have a default service in this WSDL file. But if you want to add a service by yourself, you can follow the steps as below: </para>
+ <itemizedlist>
+
+ <listitem>
+ <para>Open the file "<property>HelloWorldArtifacts.wsdl</property>" in the "<property>HelloWorld</property>" project by double-clicking the file. Right-click the WSDL editor and select
+ <property>Add Service</property>. A new service should appear in the editor. Name it <property>HelloWorldProcessService</property>. It has the Port
+ named <property>NewPort</property>. Select it, right-click on it and rename it to <property>HelloWorldProcessPort</property> in the Properties
+ view.
+ </para>
+ <figure>
+ <title>Add <property>Service</property> to the WSDL file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Right-click somewhere in the whitespace of the WSDL editor and select
+ <property>Add Binding</property>. A new Binding component will appear in the editor. Name it <property>HelloWorldSOAPBinding</property>. Select it, in the
+ General tab of the Properties view and select <property>HelloWorld</property> as a port type in the <property>PortType</property>. Then click on the
+ <property>Generate Binding Content...</property> button to open the <property>Binding Wizard</property>. In the wizard, select <property>SOAP </property>
+ as the <property>Protocol</property>. Finally, click the <property>Finish</property> button to close the wizard.
+ </para>
+ <figure>
+ <title>Add a <property>Binding</property> to the WSDL file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Click the <property>HelloWorldProcessPort</property> property in the General section of the Properties view, select <property>HelloWorldSOAPBinding</property> in
+ the <property>Binding</property> combobox. In the <property>Address</property> field input <ulink url="http://localhost:8080/bpel/processes/HelloWorld?wsdl">http://localhost:8080/bpel/processes/HelloWorld?wsdl</ulink>.
+ </para>
+ <figure>
+ <title>Add the <property>HelloWorldSOAPBinding</property> to the <property>HelloWorldProcessPort</property></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem><para>You should also change some service part configurations.
+ To do this,click part element in the WSDL editor,
+ then put the following data in the Properties view.
+ </para>
+ <figure>
+ <title>Configuration of service part</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+
+ <para>Now you have finished creating a simple BPEL process.As a next step, you can deploy the BPEL project to JBoss BPEL Runtime.</para>
+
+ </section>
+
+ </section>
+ <section id="deploy">
+ <title>Deploy a JBoss BPEL project to JBoss BPEL Runtime</title>
+ <section id="createdeploy">
+ <title>Creating a deploy.xml file</title>
+ <para>If you want to deploy a BPEL project to JBoss BPEL Runtime, you should create a bpel-deploy.xml file.
+ JBoss tools can help you to create it:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>Create the deploy.xml by selecting
+ <emphasis><property>New > Other... > BPEL 2.0 > Apache ODE Deployment Descriptor</property></emphasis>. Click the <property>Next</property> button.
+ </para>
+ <figure>
+ <title>New BPEL Deploy file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>On the next wizard page you should enter the following information:</para>
+ <para><emphasis><property>BPEL Project</property></emphasis>: Click the <property>Browse...</property> button to select the BPEL project in your workspace which you want to deploy to the runtime.
+ Please note, that you should select the <property>bpelContent</property> folder in your new BPEL project as a value of <property>BPEL Project</property> field because the deploy.xml should be created in this place.
+ </para>
+ <para><emphasis><property>File name</property></emphasis>: The default value is deploy.xml. Please, don't change it.</para>
+ <para>Click on <property>Finish</property> button to close the wizard and a new deploy.xml file will be created.</para>
+ <figure>
+ <title>New BPEL Deploy file Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Double-click the deploy.xml file to open it in ODE Descriptor Deployment Editor.
+ In the <property>Inbound Interfaces</property> section, click the
+ <property>Associated Port</property> column and select <property>HelloWorldProcessPort</property>
+ in the dropdown box.The <property>Related Service</property> and <property>Binding Used</property>
+ columns should be automatically filled in. Save the <emphasis><property>deploy.xml</property></emphasis>.
+ </para>
+ <figure>
+ <title>deploy.xml file editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section id="createruntime">
+ <title>Creating JBoss BPEL Server</title>
+ <para>Suppose you have installed the <property>JBoss BPEL Runtime-RiftSaw</property> as it was described <link linkend="installRuntime">before</link>, now you can create a server for JBoss BPEL runtime.</para>
+ <itemizedlist>
+ <listitem>
+ <para>Open the <property>Servers</property> view by selecting
+ <emphasis><property>Windows > Show View > Other... > Server > Servers</property></emphasis>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>Right-click the Servers view and select
+ <emphasis><property>New > Server</property></emphasis> to open the New Server Wizard:
+ </para>
+ <figure>
+ <title>New Server Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Select <property>JBoss AS 5.1 </property>as a server type. </para>
+ <note>
+ <para>Please note, that only JBoss As 5.1 or higher version supports BPEL.</para>
+ </note>
+ </listitem>
+ <listitem>
+
+ <para>Click the <property>Next</property> button. On the next page, you should input your <emphasis><property>JBoss As</property></emphasis> location. Then click the <property>Next</property> button and
+ you will get the page like this:
+ </para>
+ <figure>
+ <title>Add resource to the server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Select <property>HelloWorld</property>, then click the <property>Add </property> button to add the project to the server.
+ Then click on the <property>Finish</property> button.
+ </para>
+ <para>Start the server by right-clicking on the server and selecting the <property>Start</property> item. </para>
+
+ <figure>
+ <title>The started server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>If some aspects of server creation is not clear, please, read <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/as/html_single/index...">JBoss Server Manager Reference Guide</ulink> for more details.</para>
+ </listitem>
+ <listitem>
+ <para>You can enter the link <ulink url="http://localhost:8080/bpel-console/app.html">http://localhost:8080/bpel-console/app.html</ulink> to the browser to get the deployed processes.</para>
+ <figure>
+ <title>The BPEL console</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+ <para>If there's anything we didn't cover or you can't figure out, please feel free to visit our <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201"
+ >JBoss Tools Users Forum</ulink> to ask questions.
+ There we are also waiting for your suggestions and comments.</para>
+ </section>
+ </section>
+</chapter>
14 years, 3 months
JBoss Tools SVN: r27015 - branches/jbosstools-3.2.0.Beta2/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-11-29 20:26:00 -0500 (Mon, 29 Nov 2010)
New Revision: 27015
Modified:
branches/jbosstools-3.2.0.Beta2/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeUiTests.java
Log:
https://jira.jboss.org/browse/JBIDE-7440 Between build #79 and #80, 874 tests disappeared
custom sash form removed from tests to avoid build problems
Modified: branches/jbosstools-3.2.0.Beta2/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeUiTests.java
===================================================================
--- branches/jbosstools-3.2.0.Beta2/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeUiTests.java 2010-11-30 01:19:37 UTC (rev 27014)
+++ branches/jbosstools-3.2.0.Beta2/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeUiTests.java 2010-11-30 01:26:00 UTC (rev 27015)
@@ -29,7 +29,7 @@
suite.addTestSuite(VpeCommandsTests.class);
suite.addTestSuite(VpeResourcesDialogTest.class);
suite.addTestSuite(VpeEditorPreferencesPageTest.class);
- suite.addTestSuite(CustomSashFormTest.class);
+ //suite.addTestSuite(CustomSashFormTest.class);
//suite.addTestSuite(VpePopupMenuTest.class);
suite.addTestSuite(VpeEditAnyDialogTest.class);
return new VpeTestSetup(suite);
14 years, 3 months
JBoss Tools SVN: r27014 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/META-INF and 57 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-11-29 20:19:37 -0500 (Mon, 29 Nov 2010)
New Revision: 27014
Added:
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.classpath
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.project
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.settings/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.settings/org.eclipse.jdt.core.prefs
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/META-INF/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/META-INF/MANIFEST.MF
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/bin/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/build.properties
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/plugin.xml
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/pom.xml
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/schema/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/schema/vpe.ui.test.exsd
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/ComponentContentTest.java
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/DOMComparisonException.java
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/OpenOnUtil.java
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/ProjectsLoader.java
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/TestDomUtil.java
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/TestUtil.java
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VPEBaseTestPlugin.java
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VpeTest.java
trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VpeTestSetup.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/DnD_JBIDE5042_JBIDE6229_Test.java
Removed:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/DnD_JBIDE5042_JBIDE6229_Test.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/schema/
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentContentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/jbide/JBIDE3416Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMComponentsTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JbpmVisualAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/CommonJBIDE2010Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/Jsf20ComponentContentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfComponentContentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfComponentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ChangeMessageBundleTest_JBIDE5818.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ContextMenuDoubleInsertionTest_JBIDE3888.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ContextMenuTestAbstract.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditFontFamilyTest_JBIDE5872.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditingSPecialSymbolsVPE_JBIDE3810.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ExceptionInVPEComments_JBIDE5143.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/FacetProcessingTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1105Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1460Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1494Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1615Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1720Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1744Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1805Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2010Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2119Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2297Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2354Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2434Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2505Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2526Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2550Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2582Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2584Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2624Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2774Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2828Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2979Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3030Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3144Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3163Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3197Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3247Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3376Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3396Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3441Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3473Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3482Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3519Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3617Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3632Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3650Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3734Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3969Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4037Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4179Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4213Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4337Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4373Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4509Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4510Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4534Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE5920Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE924Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JSF2ValidatorTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1467Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1501Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1568Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1718Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2170Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2362Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/MessageResolutionInPreviewTabTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/MozDirtyTest_JBIDE5105.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/NullPointerWithStyleProperty_JBIDE5193.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnCssClassTest_JBIDE4775.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnInJarPackageFragment_JBIDE5682.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnInsideJspRoot_JBIDE4852.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnJsf20Test_JBIDE5382.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnTLDPackedInJar_JBIDE5693.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/PreferencesForEditors_JBIDE5692.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/RefreshBundles_JBIDE5460.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/RenderFacetAndInsertChildrenTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SelectAllAndCut_JBIDE4853.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SelectWholeElement_JBIDE4713.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SourceDomUtilTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestContextPathResolution.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestFViewLocaleAttribute_JBIDE5218.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestForUsingComponentsLibrariesWithDefaultNamespace.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestOpenOnForXhtmlFiles_JBIDE5577.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/UnclosedELExpressionTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VPERefreshTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ValidatorTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VisualRefreshComment_JBIDE6067.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VpeI18nTest_JBIDE4887.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/XulRunnerVpeUtilsTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/src/org/jboss/tools/jsf/vpe/jstl/test/JstlAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/src/org/jboss/tools/jsf/vpe/jstl/test/JstlComponentContentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/src/org/jboss/tools/jsf/vpe/myfaces/test/MyFacesAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/src/org/jboss/tools/jsf/vpe/myfaces/test/MyFacesComponentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesColumnsTemplateTestCase.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComboBoxTemplateTestCase.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesFileUploadTemplateTestCase.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesInplaceSelectTemplateTestCase.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesPickListTemplateTestCase.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1579Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1606Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1613Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1713Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1548Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1580Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1614Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1639Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1682Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/RichFacesJBIDE1169Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/plugin.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/JBIDE1484Test.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/OpenOnForDecorateTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java
trunk/vpe/plugins/pom.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/jbide/JBIDE3280Test.java
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringComponentContentTest.java
trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.test/plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/editor/menu/VpePopupMenuTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeUiTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/dialog/VpeEditAnyDialogTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/dialog/VpeResourcesDialogTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/CustomSashFormTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/handlers/VpeCommandsTests.java
Log:
https://jira.jboss.org/browse/JBIDE-7440 decoupled vpe and jsf tests to avoid skipping tests in case of test failure
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
org.eclipse.core.resources,
org.eclipse.ui.ide,
org.jboss.tools.common.model,
- org.jboss.tools.vpe.ui.test,
+ org.jboss.tools.vpe.base.test,
org.jboss.tools.jsf.vpe.facelets,
org.jboss.tools.jsf.vpe.richfaces,
org.jboss.tools.jsf.vpe.jsf,
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -1,6 +1,6 @@
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests testSuite="org.jboss.tools.jsf.vpe.ajax4jsf.test.Ajax4JsfAllTests" name="Tests For Ajax For JSF Components"/>
<testProject
name="ajax4jsfTests"
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.ajax4jsf.test;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.ajax4jsf.test;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
public class Ajax4JsfComponentContentTest extends ComponentContentTest {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -12,7 +12,7 @@
org.eclipse.ui.ide,
org.jboss.tools.common,
org.jboss.tools.common.text.ext,
- org.jboss.tools.vpe.ui.test,
+ org.jboss.tools.vpe.base.test,
org.jboss.tools.jst.jsp,
org.jboss.tools.jst.web,
org.jboss.tools.vpe.xulrunner,
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
description="Facelets Tests"
name="Facelets Tests"
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -14,7 +14,7 @@
import junit.framework.TestSuite;
import org.jboss.tools.jsf.vpe.facelets.test.jbide.JBIDE3416Test;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
public class FaceletsAllTests {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentContentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -1,6 +1,6 @@
package org.jboss.tools.jsf.vpe.facelets.test;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
public class FaceletsComponentContentTest extends ComponentContentTest {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -19,9 +19,9 @@
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/jbide/JBIDE3416Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/jbide/JBIDE3416Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/jbide/JBIDE3416Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.facelets.test.jbide;
import org.jboss.tools.jsf.vpe.facelets.test.FaceletsAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
public class JBIDE3416Test extends ComponentContentTest {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -7,7 +7,7 @@
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.jboss.tools.common,
- org.jboss.tools.vpe.ui.test,
+ org.jboss.tools.vpe.base.test,
org.junit,
org.jboss.tools.jsf.vpe.ajax4jsf;bundle-version="3.1.0",
org.jboss.tools.jsf.vpe.facelets;bundle-version="3.1.0",
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.4"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
name="JbpmVisualAllTests"
testSuite="org.jboss.tools.jsf.vpe.jbpm.test.JbpmVisualAllTests">
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMComponentsTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMComponentsTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JBPMComponentsTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.jbpm.test;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
*
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JbpmVisualAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JbpmVisualAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jbpm.test/src/org/jboss/tools/jsf/vpe/jbpm/test/JbpmVisualAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -13,7 +13,7 @@
import junit.framework.Test;
import junit.framework.TestSuite;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
/**
*
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -16,7 +16,7 @@
org.jboss.tools.common.model,
org.jboss.tools.vpe.xulrunner,
org.mozilla.xpcom,
- org.jboss.tools.vpe.ui.test;visibility:=reexport,
+ org.jboss.tools.vpe.base.test,
org.eclipse.jface.text,
org.jboss.tools.jsf.vpe.jsf,
org.jboss.tools.jst.web,
@@ -42,7 +42,8 @@
org.jboss.tools.jsf.text.ext.facelets,
org.jboss.tools.jsf.text.ext.richfaces,
org.jboss.tools.jst.text.ext,
- org.eclipse.wst.validation
+ org.eclipse.wst.validation,
+ org.jboss.tools.tests;bundle-version="3.1.0"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: org.jboss.tools.jsf.vpe.jsf.test
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
name="JsfAllTests"
testSuite="org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests"/>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/CommonJBIDE2010Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/CommonJBIDE2010Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/CommonJBIDE2010Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -19,8 +19,8 @@
import org.eclipse.core.resources.IFile;
import org.jboss.tools.common.el.core.ELReferenceList;
import org.jboss.tools.common.resref.core.ResourceReference;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/Jsf20ComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/Jsf20ComponentContentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/Jsf20ComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,7 +15,7 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.jboss.tools.test.util.ResourcesUtils;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* Performs tests for JavaServer Faces 2.0
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,7 +15,6 @@
import org.jboss.tools.jsf.vpe.jsf.test.jbide.ChangeMessageBundleTest_JBIDE5818;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.ContextMenuDoubleInsertionTest_JBIDE3888;
-import org.jboss.tools.jsf.vpe.jsf.test.jbide.DnD_JBIDE5042_JBIDE6229_Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.EditFontFamilyTest_JBIDE5872;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.ExceptionInVPEComments_JBIDE5143;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.FacetProcessingTest;
@@ -101,7 +100,7 @@
import org.jboss.tools.jsf.vpe.jsf.test.jbide.VisualRefreshComment_JBIDE6067;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.VpeI18nTest_JBIDE4887;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.XulRunnerVpeUtilsTest;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
/**
* Class for testing all RichFaces components
@@ -137,7 +136,6 @@
suite.addTestSuite(SourceDomUtilTest.class);
suite.addTestSuite(XulRunnerVpeUtilsTest.class);
suite.addTestSuite(JSF2ValidatorTest.class);
-// suite.addTestSuite(DnD_JBIDE5042_JBIDE6229_Test.class);
suite.addTestSuite(UnclosedELExpressionTest.class);
suite.addTestSuite(TestContextPathResolution.class);
suite.addTestSuite(JBIDE5920Test.class);
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfComponentContentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.jsf.test;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* Class for testing all jsf components
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfComponentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfComponentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfComponentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,8 +11,8 @@
package org.jboss.tools.jsf.vpe.jsf.test;
import org.eclipse.core.resources.IFile;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* Class for testing all jsf components
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ChangeMessageBundleTest_JBIDE5818.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ChangeMessageBundleTest_JBIDE5818.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ChangeMessageBundleTest_JBIDE5818.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -22,8 +22,8 @@
import org.eclipse.ui.editors.text.TextEditor;
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author yradtsevich
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ContextMenuDoubleInsertionTest_JBIDE3888.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ContextMenuDoubleInsertionTest_JBIDE3888.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ContextMenuDoubleInsertionTest_JBIDE3888.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,9 +10,9 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
+import org.jboss.tools.vpe.base.test.TestUtil;
import org.jboss.tools.vpe.editor.menu.InsertType;
import org.jboss.tools.vpe.editor.menu.action.InsertAction2;
-import org.jboss.tools.vpe.ui.test.TestUtil;
/**
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ContextMenuTestAbstract.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ContextMenuTestAbstract.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ContextMenuTestAbstract.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,8 +17,8 @@
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.ui.util.ModelUtilities;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* @author yradtsevich
Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/DnD_JBIDE5042_JBIDE6229_Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/DnD_JBIDE5042_JBIDE6229_Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/DnD_JBIDE5042_JBIDE6229_Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -1,246 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007-2009 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributor:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jsf.vpe.jsf.test.jbide;
-
-import java.io.IOException;
-import java.lang.reflect.Field;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.ui.IEditorInput;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.part.FileEditorInput;
-import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
-import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.dnd.VpeDnD;
-import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.editor.VpeEditorPart;
-import org.jboss.tools.vpe.editor.mozilla.MozillaEditor;
-import org.jboss.tools.vpe.editor.mozilla.MozillaEventAdapter;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
-import org.jmock.Expectations;
-import org.jmock.Mockery;
-import org.jmock.api.Invocation;
-import org.jmock.lib.action.CustomAction;
-import org.mozilla.interfaces.nsIDOMElement;
-import org.mozilla.interfaces.nsIDOMEventTarget;
-import org.mozilla.interfaces.nsIDOMMouseEvent;
-import org.mozilla.interfaces.nsIDOMNSUIEvent;
-import org.mozilla.interfaces.nsIDOMNode;
-import org.mozilla.interfaces.nsIDragService;
-import org.mozilla.interfaces.nsIDragSession;
-import org.mozilla.interfaces.nsIScriptableRegion;
-import org.mozilla.interfaces.nsISupportsArray;
-import org.w3c.dom.Element;
-import org.w3c.dom.NodeList;
-import org.w3c.dom.Text;
-
-/**
- * Tests Drag&Drop functionality of the VPE.
- *
- * @see JIRA Issue JBIDE-5042 ( https://jira.jboss.org/jira/browse/JBIDE-5042 ):
- * "Enhance DnD support in VPE"
- * @see JIRA Issue JBIDE-6439 ( https://jira.jboss.org/jira/browse/JBIDE-6439 ):
- * "Refactor and partially reimpement VpeDnD class"
- *
- * @deprecated This test is obsolete. These jMock tests for D&D require too
- * many efforts and changes in non-test plug-ins to be in actual state.
- *
- * @author yradtsevich
- */
-@SuppressWarnings("nls")
-public class DnD_JBIDE5042_JBIDE6229_Test extends VpeTest {
- private static final String DROP_CONTAINER_ID = "cell_01";
- private static final String DRAG_ICON_ID = "dragIcon";
- private static final String DRAGGABLE_BUTTON_ID = "draggableButton";
- private static final String DRAGGABLE_TEXT_CONTAINER_ID = "draggableTextContainer";
- private static final String TEST_PAGE_NAME = "JBIDE/5042_6229/JBIDE-5042-6229.html";
- private static final String DND_TEXT = "Text";
- private static final Point DRAG_POINT = new Point(0, 0);
- /**Cells in the table are 100x100px. Thus this point means 'top of the second cell'*/
- private static final Point DROP_POINT = new Point(150, 10);
- private Mockery context = new Mockery();
-
- public DnD_JBIDE5042_JBIDE6229_Test(String name) {
- super(name);
- }
-
- /**
- * Try to open two pages in VPE and refresh them n times.
- */
- public void testElementDnDWithMocks() throws Throwable {
- setException(null);
-
- JSPMultiPageEditor editor = openPageInVpe(TEST_PAGE_NAME);
- final MozillaEditor visualEditor = ((VpeEditorPart) editor.getVisualEditor())
- .getVisualEditor();
- VpeController controller = TestUtil.getVpeController(editor);
- TestUtil.waitForJobs();
-
- Element draggable = findSourceElementById(controller, DRAGGABLE_BUTTON_ID);
- IndexedRegion region = (IndexedRegion) draggable;
- setSelectedRange(controller, region.getStartOffset(),
- region.getEndOffset() - region.getStartOffset());
- TestUtil.waitForJobs();
-
- executeSelectionDragAndDropToSecondCell(visualEditor, controller);
-
- draggable = findSourceElementById(controller, DRAGGABLE_BUTTON_ID);
- assertEquals(DROP_CONTAINER_ID, ((Element)draggable.getParentNode()).getAttribute("id"));
-
- if (getException() != null) {
- throw getException();
- }
- }
-
- public void testTextDnDWithMocks() throws Throwable {
- setException(null);
-
- JSPMultiPageEditor editor = openPageInVpe(TEST_PAGE_NAME);
- final MozillaEditor visualEditor = ((VpeEditorPart) editor.getVisualEditor())
- .getVisualEditor();
- VpeController controller = TestUtil.getVpeController(editor);
- TestUtil.waitForJobs();
-
- Element draggableTextContainer = findSourceElementById(controller, DRAGGABLE_TEXT_CONTAINER_ID);
- Text draggableTextNode = (Text) draggableTextContainer.getChildNodes().item(0);
- IndexedRegion draggableTextRegion = (IndexedRegion)draggableTextNode;
- setSelectedRange(controller,
- draggableTextRegion.getEndOffset() - DND_TEXT.length(), DND_TEXT.length());
- TestUtil.waitForJobs();
-
- executeSelectionDragAndDropToSecondCell(visualEditor, controller);
-
- Element dropContainer = findSourceElementById(controller, DROP_CONTAINER_ID);
- NodeList dropContainerChildren = dropContainer.getChildNodes();
- assertTrue(dropContainerChildren.getLength() == 1);
- assertTrue(dropContainerChildren.item(0) instanceof Text);
-
- String dropContainerContent = ((Text)dropContainerChildren.item(0)).getNodeValue();
-
- assertEquals(DND_TEXT + "dddddd", dropContainerContent);
-
- if (getException() != null) {
- throw getException();
- }
- }
-
- private void executeSelectionDragAndDropToSecondCell(
- final MozillaEditor visualEditor, VpeController controller)
- throws Throwable {
- final nsIDragService dragService = mock(nsIDragService.class);
- final nsIDragSession dragSession = mock(nsIDragSession.class);
- checking(new Expectations() {{
- allowing(dragService).getCurrentSession(); will(returnValue(dragSession));
- allowing(dragSession).getSourceDocument(); will(returnValue(visualEditor.getDomDocument()));
- allowing(dragSession).setCanDrop(with(any(Boolean.TYPE)));
- }});
- replaceDragService(controller.getVpeDnD(), dragService);
-
- final nsIDOMElement dragIcon = controller.getXulRunnerEditor()
- .getDOMDocument().getElementById(DRAG_ICON_ID);
-
- final nsIDOMMouseEvent mouseDownEvent = createMockMouseEvent(
- DRAG_POINT, "mousedown", dragIcon, "mouseDown");
- final nsIDOMMouseEvent dragOverMouseEvent = createMockMouseEvent(
- DROP_POINT, "dragover", null, "dragover");
- final nsIDOMMouseEvent dragDropMouseEvent = createMockMouseEvent(
- DROP_POINT, "dragdrop", null, "dragdrop");
-
- final MozillaEventAdapter eventListener = visualEditor.getMozillaEventAdapter();
- checking(new Expectations() {{
- allowing(dragService).invokeDragSession(
- with(any(nsIDOMNode.class)), with(any(nsISupportsArray.class)),
- with(any(nsIScriptableRegion.class)), with(any(Long.TYPE)));
- will(new CustomAction("invokeDragSession") {
- public Object invoke(Invocation invocation) throws Throwable {
- eventListener.handleEvent(dragOverMouseEvent);
- TestUtil.waitForJobs();
- eventListener.handleEvent(dragDropMouseEvent);
- TestUtil.waitForJobs();
- return null;
- }
- });
- }});
-
- eventListener.handleEvent(mouseDownEvent);
- TestUtil.waitForJobs();
- TestUtil.delay(100);
- TestUtil.waitForJobs();
- }
-
- private nsIDOMMouseEvent createMockMouseEvent(final Point mousePos,
- final String type, final nsIDOMElement targetElement, String name) {
- final nsIDOMMouseEvent mouseEvent = mock(nsIDOMMouseEvent.class, name + "_nsIDOMMouseEvent");
- final nsIDOMEventTarget mouseEventTarget = mock(nsIDOMEventTarget.class, name + "_nsIDOMEventTarget");
- final nsIDOMNSUIEvent mouseNsUIEvent = mock(nsIDOMNSUIEvent.class, name + "_nsIDOMNSUIEvent");
-
- checking(new Expectations() {{
- allowing(mouseEvent).getType(); will(returnValue(type));
- allowing(mouseEvent).getButton(); will(returnValue(VpeController.LEFT_BUTTON));
- allowing(mouseEvent).getTarget(); will(returnValue(mouseEventTarget));
- allowing(mouseEvent).queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID); will(returnValue(mouseEvent));
- allowing(mouseEventTarget).queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID); will(returnValue(targetElement));
- allowing(mouseEvent).queryInterface(nsIDOMNSUIEvent.NS_IDOMNSUIEVENT_IID); will(returnValue(mouseNsUIEvent));
- allowing(mouseEvent).getClientX(); will(returnValue(mousePos.x));
- allowing(mouseEvent).getClientY(); will(returnValue(mousePos.y));
- allowing(mouseNsUIEvent).getPageX(); will(returnValue(mousePos.x));
- allowing(mouseNsUIEvent).getPageY(); will(returnValue(mousePos.y));
- allowing(mouseEvent).stopPropagation();
- allowing(mouseEvent).preventDefault();
- }});
-
- return mouseEvent;
- }
-
- private void replaceDragService(VpeDnD vpeDnD, nsIDragService dragService) throws Throwable {
- Field dragServiceField = vpeDnD.getClass().getDeclaredField("dragService");
- dragServiceField.setAccessible(true);
- dragServiceField.set(vpeDnD, dragService);
- }
-
- private JSPMultiPageEditor openPageInVpe(final String pageName) throws CoreException,
- PartInitException, IOException {
- IFile elementPageFile = (IFile) TestUtil.getComponentPath(
- pageName, JsfAllTests.IMPORT_PROJECT_NAME);
- IEditorInput input = new FileEditorInput(elementPageFile);
-
- JSPMultiPageEditor editor = (JSPMultiPageEditor) PlatformUI.getWorkbench()
- .getActiveWorkbenchWindow().getActivePage().openEditor(input,
- EDITOR_ID, true);
-
- return editor;
- }
-
- private void setSelectedRange(VpeController controller, int offset, int length) {
- controller.getPageContext().getSourceBuilder().getStructuredTextViewer()
- .setSelectedRange(offset, length);
- }
-
- /** @see org.jmock.Mockery#mock(java.lang.Class, java.lang.String) */
- public <T> T mock(Class<T> typeToMock, String name) {
- return context.mock(typeToMock, name);
- }
-
- /** @see org.jmock.Mockery#mock(java.lang.Class) */
- public <T> T mock(Class<T> typeToMock) {
- return context.mock(typeToMock);
- }
-
- /** @see org.jmock.Mockery#checking(Expectations) */
- public void checking(Expectations expectations) {
- context.checking(expectations);
- }
-}
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditFontFamilyTest_JBIDE5872.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditFontFamilyTest_JBIDE5872.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditFontFamilyTest_JBIDE5872.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,9 +17,9 @@
import org.eclipse.swt.graphics.Point;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* Test for JBIDE-5872: VPE throws java.lang.NullPointerException,
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditingSPecialSymbolsVPE_JBIDE3810.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditingSPecialSymbolsVPE_JBIDE3810.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/EditingSPecialSymbolsVPE_JBIDE3810.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,10 +10,10 @@
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.VpeEditorPart;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMAbstractView;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMDocumentEvent;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ExceptionInVPEComments_JBIDE5143.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ExceptionInVPEComments_JBIDE5143.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ExceptionInVPEComments_JBIDE5143.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,8 +17,8 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
*
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/FacetProcessingTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/FacetProcessingTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/FacetProcessingTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
*JUnit for https://jira.jboss.org/jira/browse/JBIDE-5768
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1105Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1105Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1105Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -16,8 +16,8 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1460Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1460Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1460Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* Test JBIDE-1460
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -21,8 +21,8 @@
import org.eclipse.wst.xml.core.internal.provisional.format.FormatProcessorXML;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author Max Areshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1494Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1494Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1494Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,11 +20,11 @@
import org.eclipse.wst.sse.ui.internal.contentassist.ContentAssistUtils;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.template.VpeTemplate;
import org.jboss.tools.vpe.editor.template.VpeTemplateManager;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.w3c.dom.Node;
/**
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1615Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1615Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1615Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,9 +20,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1720Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1720Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1720Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,9 +20,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1744Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1744Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1744Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,9 +20,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1805Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1805Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1805Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,9 +15,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2010Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2010Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2010Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,8 +20,8 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.jboss.tools.jsf.vpe.jsf.test.CommonJBIDE2010Test;
+import org.jboss.tools.vpe.base.test.TestUtil;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2119Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2119Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2119Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,9 +20,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,8 +17,8 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2297Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2297Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2297Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -13,8 +13,8 @@
import org.eclipse.core.resources.IFile;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* Test case for
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2354Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2354Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2354Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -8,9 +8,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
-import org.jboss.tools.vpe.ui.test.TestUtil;
public class JBIDE2354Test extends ComponentContentTest {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2434Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2434Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2434Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,10 +15,10 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.VpeEditorPart;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2505Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2505Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2505Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -16,9 +16,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMNode;
import org.mozilla.interfaces.nsISelectionController;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2526Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2526Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2526Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -16,11 +16,11 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
import org.jboss.tools.vpe.editor.util.TextUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsISelection;
import org.mozilla.interfaces.nsISelectionController;
import org.w3c.dom.Document;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2550Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2550Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2550Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2582Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2582Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2582Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -30,12 +30,12 @@
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
import org.jboss.tools.jsf.vpe.jsf.test.CommonJBIDE2010Test;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2584Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2584Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2584Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -16,12 +16,12 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
import org.jboss.tools.vpe.editor.mapping.VpeElementMapping;
import org.jboss.tools.vpe.editor.template.VpeTemplate;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Node;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2624Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2624Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2624Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -25,11 +25,11 @@
import org.jboss.tools.common.resref.core.ResourceReference;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.resref.core.RelativeFolderReferenceList;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2774Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2774Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2774Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -16,9 +16,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* Test class for JBIDE-2774
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2828Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2828Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2828Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -14,7 +14,7 @@
import org.jboss.tools.common.el.core.parser.ELParser;
import org.jboss.tools.common.el.core.parser.ELParserFactory;
import org.jboss.tools.common.el.core.parser.ELParserUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* Test case for jbide-2828
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2979Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2979Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2979Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -18,8 +18,8 @@
import org.jboss.tools.common.el.core.ELReferenceList;
import org.jboss.tools.common.resref.core.ResourceReference;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* Test case for JBIDE-2979
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3030Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3030Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3030Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -21,9 +21,9 @@
import org.eclipse.ui.ide.IDE;
import org.jboss.tools.jsf.vpe.jsf.test.JsfTestPlugin;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeEditorPart;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* Test class for JBIDE-3030
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,10 +15,10 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.VpeEditorPart;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* Test case for JBIDE-3127
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3144Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3144Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3144Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,8 +20,8 @@
import org.jboss.tools.common.resref.core.ResourceReference;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
-import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3163Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3163Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3163Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,9 +15,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3197Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3197Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3197Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3247Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3247Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3247Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3376Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3376Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3376Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3396Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3396Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3396Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,9 +17,9 @@
import org.jboss.tools.common.resref.core.ResourceReference;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* @author Max Areshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3441Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3441Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3441Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -22,9 +22,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3473Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3473Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3473Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,11 +11,11 @@
import org.eclipse.wst.sse.ui.internal.contentassist.ContentAssistUtils;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.editor.util.VisualDomUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.xulrunner.util.XulRunnerVpeUtils;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3482Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3482Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3482Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,8 +11,8 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
import org.mozilla.interfaces.nsIDOMElement;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3519Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3519Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3519Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,9 +11,9 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.eclipse.swt.graphics.Point;
+import org.jboss.tools.vpe.base.test.TestUtil;
import org.jboss.tools.vpe.editor.menu.InsertType;
import org.jboss.tools.vpe.editor.menu.action.InsertAction2;
-import org.jboss.tools.vpe.ui.test.TestUtil;
/**
* Tests for JIRA issue JBIDE-3519: Ctrl+Z (Undo) doesn't work
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3617Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3617Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3617Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -18,9 +18,9 @@
import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* Test case for issue <a href='https://jira.jboss.org/jira/browse/JBIDE-3617'>JBIDE-3617</a>:
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3632Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3632Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3632Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,8 +15,8 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3650Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3650Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3650Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,10 +17,10 @@
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.jsp.util.NodesManagingUtil;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.TextUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Element;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3734Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3734Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3734Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -21,10 +21,10 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNodeList;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3969Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3969Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3969Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,8 +15,8 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4037Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4037Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4037Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -5,9 +5,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMElement;
/**
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4179Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4179Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4179Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,9 +17,9 @@
import org.jboss.tools.common.el.core.ELReferenceList;
import org.jboss.tools.common.resref.core.ResourceReference;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
-import org.jboss.tools.vpe.ui.test.TestUtil;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4213Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4213Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4213Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -19,9 +19,9 @@
import org.jboss.tools.jst.web.project.WebProject;
import org.jboss.tools.jst.web.tld.ITaglibMapping;
import org.jboss.tools.jst.web.tld.TaglibMapping;
-import org.jboss.tools.vpe.ui.test.ProjectsLoader;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.ProjectsLoader;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author V.Kabanovich
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4337Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4337Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4337Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -12,9 +12,9 @@
import org.eclipse.swt.custom.StyledText;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4373Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4373Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4373Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,10 +20,10 @@
import org.jboss.tools.common.model.filesystems.impl.SimpleFileImpl;
import org.jboss.tools.common.model.impl.CustomizedObjectImpl;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Node;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4509Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4509Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4509Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -29,9 +29,9 @@
import org.eclipse.ui.editors.text.EditorsUI;
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.OpenOnUtil;
-import org.jboss.tools.vpe.ui.test.ProjectsLoader;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.OpenOnUtil;
+import org.jboss.tools.vpe.base.test.ProjectsLoader;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4510Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4510Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4510Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -24,9 +24,9 @@
import org.eclipse.jdt.internal.ui.javaeditor.JarEntryEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.ProjectsLoader;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.ProjectsLoader;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMDocumentType;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4534Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4534Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE4534Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -27,10 +27,10 @@
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.web.project.WebProject;
import org.jboss.tools.jst.web.tld.TaglibMapping;
+import org.jboss.tools.vpe.base.test.ProjectsLoader;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.ProjectsLoader;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE5920Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE5920Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE5920Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,9 +20,9 @@
import org.eclipse.ui.editors.text.EditorsUI;
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.OpenOnUtil;
-import org.jboss.tools.vpe.ui.test.ProjectsLoader;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.OpenOnUtil;
+import org.jboss.tools.vpe.base.test.ProjectsLoader;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author V.I.Kabanovich
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -18,11 +18,11 @@
import org.eclipse.wst.sse.ui.internal.contentassist.ContentAssistUtils;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Node;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE788Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -30,8 +30,8 @@
import org.jboss.tools.jst.jsp.contentassist.AutoContentAssistantProposal;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author Max Areshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE924Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE924Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE924Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -19,11 +19,11 @@
import org.jboss.tools.common.resref.core.ResourceReference;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.resref.core.AbsoluteFolderReferenceList;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JSF2ValidatorTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JSF2ValidatorTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JSF2ValidatorTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,8 +11,8 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* JUnit test class for https://jira.jboss.org/browse/JBIDE-6965
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1467Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1467Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1467Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -21,9 +21,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNamedNodeMap;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1501Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1501Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1501Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -21,9 +21,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNamedNodeMap;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1568Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1568Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1568Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -12,8 +12,8 @@
import org.eclipse.core.resources.IFile;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* @author Max Areshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1718Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1718Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1718Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -21,9 +21,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNamedNodeMap;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2170Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2170Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2170Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -18,10 +18,10 @@
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.DocTypeUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMDocumentType;
import org.mozilla.interfaces.nsIDOMElement;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2362Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2362Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2362Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -28,12 +28,12 @@
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/MessageResolutionInPreviewTabTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/MessageResolutionInPreviewTabTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/MessageResolutionInPreviewTabTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,9 +17,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
import org.jboss.tools.vpe.editor.mozilla.MozillaPreview;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
-import org.jboss.tools.vpe.ui.test.TestUtil;
import org.mozilla.interfaces.nsIDOMElement;
/**
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/MozDirtyTest_JBIDE5105.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/MozDirtyTest_JBIDE5105.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/MozDirtyTest_JBIDE5105.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,10 +11,10 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMNode;
import org.mozilla.interfaces.nsIDOMNodeList;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/NullPointerWithStyleProperty_JBIDE5193.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/NullPointerWithStyleProperty_JBIDE5193.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/NullPointerWithStyleProperty_JBIDE5193.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -7,9 +7,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
public class NullPointerWithStyleProperty_JBIDE5193 extends VpeTest {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnCssClassTest_JBIDE4775.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnCssClassTest_JBIDE4775.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnCssClassTest_JBIDE4775.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -18,11 +18,11 @@
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.OpenOnUtil;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.OpenOnUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnInJarPackageFragment_JBIDE5682.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnInJarPackageFragment_JBIDE5682.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnInJarPackageFragment_JBIDE5682.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -25,9 +25,9 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.editors.text.EditorsUI;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.OpenOnUtil;
-import org.jboss.tools.vpe.ui.test.ProjectsLoader;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.OpenOnUtil;
+import org.jboss.tools.vpe.base.test.ProjectsLoader;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
*
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnInsideJspRoot_JBIDE4852.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnInsideJspRoot_JBIDE4852.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnInsideJspRoot_JBIDE4852.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -18,10 +18,10 @@
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.OpenOnUtil;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.OpenOnUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnJsf20Test_JBIDE5382.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnJsf20Test_JBIDE5382.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnJsf20Test_JBIDE5382.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,10 +15,10 @@
import org.jboss.tools.jsf.vpe.jsf.template.util.JSF;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.util.NodesManagingUtil;
+import org.jboss.tools.vpe.base.test.OpenOnUtil;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.OpenOnUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnTLDPackedInJar_JBIDE5693.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnTLDPackedInJar_JBIDE5693.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/OpenOnTLDPackedInJar_JBIDE5693.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -26,9 +26,9 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.editors.text.EditorsUI;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.OpenOnUtil;
-import org.jboss.tools.vpe.ui.test.ProjectsLoader;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.OpenOnUtil;
+import org.jboss.tools.vpe.base.test.ProjectsLoader;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
*
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/PreferencesForEditors_JBIDE5692.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/PreferencesForEditors_JBIDE5692.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/PreferencesForEditors_JBIDE5692.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,8 +15,8 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
*
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/RefreshBundles_JBIDE5460.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/RefreshBundles_JBIDE5460.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/RefreshBundles_JBIDE5460.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,8 +20,8 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
*
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/RenderFacetAndInsertChildrenTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/RenderFacetAndInsertChildrenTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/RenderFacetAndInsertChildrenTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* https://jira.jboss.org/jira/browse/JBIDE-5908
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SelectAllAndCut_JBIDE4853.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SelectAllAndCut_JBIDE4853.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SelectAllAndCut_JBIDE4853.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -12,9 +12,9 @@
import org.eclipse.swt.custom.StyledText;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
/**
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SelectWholeElement_JBIDE4713.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SelectWholeElement_JBIDE4713.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SelectWholeElement_JBIDE4713.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -16,11 +16,11 @@
import org.eclipse.swt.graphics.Point;
import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SourceDomUtilTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SourceDomUtilTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/SourceDomUtilTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -13,9 +13,9 @@
import java.text.MessageFormat;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.SourceDomUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestContextPathResolution.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestContextPathResolution.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestContextPathResolution.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* https://jira.jboss.org/jira/browse/JBIDE-5985
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestFViewLocaleAttribute_JBIDE5218.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestFViewLocaleAttribute_JBIDE5218.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestFViewLocaleAttribute_JBIDE5218.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -26,10 +26,10 @@
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.vpe.VpePlugin;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.w3c.dom.Element;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestForUsingComponentsLibrariesWithDefaultNamespace.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestForUsingComponentsLibrariesWithDefaultNamespace.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestForUsingComponentsLibrariesWithDefaultNamespace.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestOpenOnForXhtmlFiles_JBIDE5577.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestOpenOnForXhtmlFiles_JBIDE5577.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/TestOpenOnForXhtmlFiles_JBIDE5577.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,10 +20,10 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Node;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/UnclosedELExpressionTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/UnclosedELExpressionTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/UnclosedELExpressionTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* Junit test for https://jira.jboss.org/jira/browse/JBIDE-6064
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VPERefreshTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VPERefreshTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VPERefreshTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -20,9 +20,9 @@
* Red Hat, Inc. - initial API and implementation
******************************************************************************/
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMElement;
/**
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ValidatorTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ValidatorTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ValidatorTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,10 +11,10 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.wst.validation.ValidationFramework;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.ProjectsLoader;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.VpeDebugUtil;
-import org.jboss.tools.vpe.ui.test.ProjectsLoader;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
*
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VisualRefreshComment_JBIDE6067.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VisualRefreshComment_JBIDE6067.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VisualRefreshComment_JBIDE6067.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -18,8 +18,8 @@
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditorPart;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMNode;
import org.mozilla.interfaces.nsIDOMNodeList;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VpeI18nTest_JBIDE4887.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VpeI18nTest_JBIDE4887.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/VpeI18nTest_JBIDE4887.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* Tests for JIRA issue JBIDE-4887: Internationalization does not work in VPE
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/XulRunnerVpeUtilsTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/XulRunnerVpeUtilsTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/XulRunnerVpeUtilsTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -14,8 +14,8 @@
import org.eclipse.swt.graphics.Rectangle;
import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.xulrunner.util.XulRunnerVpeUtils;
import org.mozilla.interfaces.nsIDOMElement;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -13,6 +13,6 @@
org.jboss.tools.vpe.jsp;bundle-version="3.1.0"
Bundle-ActivationPolicy: lazy
Import-Package: org.jboss.tools.tests,
- org.jboss.tools.vpe.ui.test
+ org.jboss.tools.vpe.base.test
Export-Package: org.jboss.tools.jsf.vpe.jstl.test
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -1,6 +1,6 @@
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests testSuite="org.jboss.tools.jsf.vpe.jstl.test.JstlAllTests" name="Tests For Jstl Components"/>
<testProject
name="jstlTests"
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/src/org/jboss/tools/jsf/vpe/jstl/test/JstlAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/src/org/jboss/tools/jsf/vpe/jstl/test/JstlAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/src/org/jboss/tools/jsf/vpe/jstl/test/JstlAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -13,7 +13,7 @@
import junit.framework.Test;
import junit.framework.TestSuite;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
public class JstlAllTests {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/src/org/jboss/tools/jsf/vpe/jstl/test/JstlComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/src/org/jboss/tools/jsf/vpe/jstl/test/JstlComponentContentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jstl.test/src/org/jboss/tools/jsf/vpe/jstl/test/JstlComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -1,6 +1,6 @@
package org.jboss.tools.jsf.vpe.jstl.test;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
public class JstlComponentContentTest extends ComponentContentTest {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -6,7 +6,7 @@
Bundle-Activator: org.jboss.tools.jsf.vpe.myfaces.test.MyFacesTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
- org.jboss.tools.vpe.ui.test,
+ org.jboss.tools.vpe.base.test,
org.eclipse.core.resources,
org.junit,
org.jboss.tools.jsf.vpe.jsf;bundle-version="3.1.0",
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
name="MyFaces Tests"
testSuite="org.jboss.tools.jsf.vpe.myfaces.test.MyFacesAllTests">
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/src/org/jboss/tools/jsf/vpe/myfaces/test/MyFacesAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/src/org/jboss/tools/jsf/vpe/myfaces/test/MyFacesAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/src/org/jboss/tools/jsf/vpe/myfaces/test/MyFacesAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -3,7 +3,7 @@
import junit.framework.Test;
import junit.framework.TestSuite;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
/**
* The Class MyFacesAllTests.
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/src/org/jboss/tools/jsf/vpe/myfaces/test/MyFacesComponentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/src/org/jboss/tools/jsf/vpe/myfaces/test/MyFacesComponentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/src/org/jboss/tools/jsf/vpe/myfaces/test/MyFacesComponentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,8 +2,8 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.ui.PartInitException;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
public class MyFacesComponentTest extends VpeTest {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
org.eclipse.ui.ide,
org.jboss.tools.jst.jsp,
org.mozilla.xpcom,
- org.jboss.tools.vpe.ui.test,
+ org.jboss.tools.vpe.base.test,
org.jboss.tools.common.el.core;bundle-version="2.0.0",
org.jboss.tools.jsf.vpe.richfaces,
org.jboss.tools.jsf.vpe.ajax4jsf,
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
testSuite="org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests"
name="Tests For Rich Faces Components"/>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -23,7 +23,7 @@
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1639Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1682Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.RichFacesJBIDE1169Test;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
/**
* Class for testing all RichFaces components
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesColumnsTemplateTestCase.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesColumnsTemplateTestCase.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesColumnsTemplateTestCase.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -13,7 +13,7 @@
package org.jboss.tools.jsf.vpe.richfaces.test;
-import static org.jboss.tools.vpe.ui.test.TestUtil.performTestForRichFacesComponent;
+import static org.jboss.tools.vpe.base.test.TestUtil.performTestForRichFacesComponent;
import static org.jboss.tools.vpe.xulrunner.util.XPCOM.queryInterface;
import java.util.ArrayList;
@@ -21,9 +21,9 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComboBoxTemplateTestCase.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComboBoxTemplateTestCase.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComboBoxTemplateTestCase.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -19,9 +19,9 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.ui.PartInitException;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.richfaces.test;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* Class for testing all richfaces components
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComponentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -12,8 +12,8 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.ui.PartInitException;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* Class for testing all RichFaces components
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesFileUploadTemplateTestCase.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesFileUploadTemplateTestCase.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesFileUploadTemplateTestCase.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -5,8 +5,8 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.ui.PartInitException;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesInplaceSelectTemplateTestCase.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesInplaceSelectTemplateTestCase.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesInplaceSelectTemplateTestCase.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -16,8 +16,8 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ui.PartInitException;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesPickListTemplateTestCase.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesPickListTemplateTestCase.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesPickListTemplateTestCase.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -19,10 +19,10 @@
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1579Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1579Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1579Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,10 +10,10 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1606Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1606Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1606Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -19,9 +19,9 @@
import org.eclipse.core.resources.IFile;
import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1613Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1613Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1613Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,9 +10,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1713Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1713Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1713Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -19,9 +19,9 @@
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1548Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1548Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1548Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -21,9 +21,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1580Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1580Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1580Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -22,10 +22,10 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1614Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1614Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1614Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -23,9 +23,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1639Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1639Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1639Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -21,10 +21,10 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNamedNodeMap;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1682Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1682Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/Jbide1682Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -13,10 +13,10 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/RichFacesJBIDE1169Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/RichFacesJBIDE1169Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/RichFacesJBIDE1169Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -14,9 +14,9 @@
import org.jboss.tools.common.el.core.ELReferenceList;
import org.jboss.tools.common.resref.core.ResourceReference;
import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.ElService;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
/**
* @author mareshkau
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
org.eclipse.core.resources,
org.eclipse.ui.ide,
org.jboss.tools.common,
- org.jboss.tools.vpe.ui.test,
+ org.jboss.tools.vpe.base.test,
org.jboss.tools.jst.jsp,
org.jboss.tools.vpe.xulrunner,
org.mozilla.xpcom,
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/plugin.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
name="Vpe test's for seam ui components"
testSuite="org.jboss.tools.jsf.vpe.seam.test.SeamAllTests"/>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/JBIDE1484Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/JBIDE1484Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/JBIDE1484Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -19,9 +19,9 @@
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/OpenOnForDecorateTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/OpenOnForDecorateTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/OpenOnForDecorateTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -15,10 +15,10 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Node;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.seam.test;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -1,6 +1,6 @@
package org.jboss.tools.jsf.vpe.seam.test;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
public class SeamComponentContentTest extends ComponentContentTest {
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,8 +11,8 @@
package org.jboss.tools.jsf.vpe.seam.test;
import org.eclipse.core.resources.IFile;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* Class for testing all Seam components
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.classpath
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.classpath (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.classpath 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.project
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.project (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.project 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.vpe.base.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/.settings/org.eclipse.jdt.core.prefs 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,8 @@
+#Mon Nov 29 10:18:36 PST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,28 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: VPE Base Classes for tests
+Bundle-SymbolicName: org.jboss.tools.vpe.base.test;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Vendor: JBoss by RedHat
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.eclipse.ui;bundle-version="3.6.0",
+ org.junit,
+ org.eclipse.core.runtime;bundle-version="3.6.0",
+ org.jboss.tools.common;bundle-version="3.2.0",
+ org.eclipse.core.resources;bundle-version="3.6.0",
+ org.jboss.tools.tests;bundle-version="3.1.0",
+ org.eclipse.jface.text;bundle-version="3.6.0",
+ org.eclipse.wst.sse.core;bundle-version="1.1.500",
+ org.eclipse.wst.sse.ui;bundle-version="1.2.0",
+ org.jboss.tools.vpe;bundle-version="3.2.0",
+ org.eclipse.ui.ide;bundle-version="3.6.0",
+ org.jboss.tools.jst.jsp;bundle-version="3.2.0",
+ org.eclipse.wst.xml.xpath.core;bundle-version="1.1.1",
+ org.mozilla.xpcom;bundle-version="1.9.1",
+ org.jboss.tools.vpe.xulrunner;bundle-version="3.2.0",
+ org.jboss.tools.common.text.ext;bundle-version="3.2.0",
+ org.jboss.tools.common.model.ui;bundle-version="3.2.0",
+ org.jboss.tools.jst.css;bundle-version="3.2.0"
+Export-Package: org.jboss.tools.vpe.base.test
+Bundle-Activator: org.jboss.tools.vpe.base.test.VPEBaseTestPlugin
+Bundle-ActivationPolicy: lazy
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/build.properties
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/build.properties (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/build.properties 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/plugin.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/plugin.xml (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension-point id="org.jboss.tools.vpe.ui.test" name="Visual Page Editor Junit Test" schema="schema/vpe.ui.test.exsd"/>
+</plugin>
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/pom.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/pom.xml (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/pom.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.vpe.tests</groupId>
+ <artifactId>org.jboss.tools.vpe.base.test</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+
+</project>
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/schema/vpe.ui.test.exsd
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/schema/vpe.ui.test.exsd (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/schema/vpe.ui.test.exsd 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,146 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.jboss.tools.vpe.base.test" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appinfo>
+ <meta.schema plugin="org.jboss.tools.vpe.base.test" id="vpe.ui.test" name="Visual Editor Tests"/>
+ </appinfo>
+ <documentation>
+ [Enter description of this extension point.]
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appinfo>
+ <meta.element />
+ </appinfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="tests"/>
+ <element ref="testProject" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute translatable="true"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="tests">
+ <complexType>
+ <attribute name="testSuite" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="java"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="description" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="testProject">
+ <annotation>
+ <documentation>
+ Project to be loaded to perform the tests.
+Example of using:
+<testProject name="jsfTest" path="resources/jsfTest"/>
+ </documentation>
+ </annotation>
+ <complexType>
+ <attribute name="name" type="string" use="required">
+ <annotation>
+ <documentation>
+ Name of the project.
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="path" type="string" use="required">
+ <annotation>
+ <documentation>
+ Path to the project within the plugin.
+ </documentation>
+ <appinfo>
+ <meta.attribute kind="resource"/>
+ </appinfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="since"/>
+ </appinfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="examples"/>
+ </appinfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="apiInfo"/>
+ </appinfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appinfo>
+ <meta.section type="implementation"/>
+ </appinfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/ComponentContentTest.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/ComponentContentTest.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/ComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,373 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.base.test;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.util.List;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.wst.xml.xpath.core.util.XSLTXPathHelper;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.test.util.WorkbenchUtils;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
+import org.jboss.tools.vpe.editor.util.SourceDomUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public abstract class ComponentContentTest extends VpeTest {
+
+ public static final String XML_FILE_EXTENSION = ".xml"; //$NON-NLS-1$
+
+ public ComponentContentTest(String name) {
+ super(name);
+ }
+
+ /**
+ *
+ * there are several conditions:
+ * <p>
+ * 1) xml file which contain tests must be named 'name of test page' +
+ * '.xml'
+ * <br>
+ * Example: test.jsp and test.jsp.xml
+ * <p>
+ * 2) a tag <test> in xml file and required element in test page must have
+ * the same attribute "id"
+ * <br>
+ * Example: <tests>... <test id="testId" > ...<tests> - in xml file and
+ * <br>
+ * <html>... <x:testElement id="testId" > ... </html> - in test page
+ *
+ * @param elementPagePath
+ * - path to test page
+ * @throws Throwable
+ */
+ protected void performContentTest(String elementPagePath) throws Throwable {
+ performContentTestByFullPath(TestUtil.COMPONENTS_PATH + elementPagePath);
+ }
+
+ protected void performContentTestByFullPath(String elementPagePath) throws Throwable {
+ setException(null);
+ IFile elementPageFile = (IFile) TestUtil.getComponentFileByFullPath(
+ elementPagePath, getTestProjectName());
+ TestUtil.waitForIdle();
+ /*
+ * Test that test file was found and exists
+ */
+ assertNotNull("Could not find component file '"+elementPagePath+"'", elementPageFile); //$NON-NLS-1$ //$NON-NLS-2$
+
+ IEditorPart editor = WorkbenchUtils.openEditor(elementPageFile,getEditorID());
+ assertNotNull("Editor should be opened.", editor); //$NON-NLS-1$
+ VpeController controller = TestUtil.getVpeController((JSPMultiPageEditor) editor);
+ /*
+ * Get xml test file
+ */
+ File xmlTestFile = TestUtil.getComponentFileByFullPath(
+ elementPagePath + XML_FILE_EXTENSION, getTestProjectName())
+ .getLocation().toFile();
+ /*
+ * Test that XML test file was found and exists
+ */
+ assertNotNull("Could not find XML component file '"+elementPagePath + XML_FILE_EXTENSION+"'", elementPageFile); //$NON-NLS-1$ //$NON-NLS-2$
+ /*
+ * Get document
+ */
+ compareContent(controller, xmlTestFile);
+ if (getException() != null) {
+ throw getException();
+ }
+ }
+
+ protected void compareContent(VpeController controller, File xmlTestFile)
+ throws FileNotFoundException {
+ Document xmlTestDocument = TestDomUtil.getDocument(xmlTestFile);
+ assertNotNull("Can't get test file, possibly file not exists "+xmlTestFile,xmlTestDocument); //$NON-NLS-1$
+
+ List<String> ids = TestDomUtil.getTestIds(xmlTestDocument);
+
+ for (String id : ids) {
+ try{
+ compareElements(controller, xmlTestDocument, id, id);
+ } catch (DOMComparisonException e) {
+ String xPathToNode = SourceDomUtil.getXPath(e.getNode());
+ String testFileName = xmlTestFile.getPath();
+ String message = e.getMessage();
+ fail(String.format("%s[%s]:\n%s", testFileName, xPathToNode, message)); //$NON-NLS-1$
+ }
+ }
+ }
+
+ /**
+ *
+ * @param controller
+ * @param xmlTestDocument
+ * @param elementId
+ * @param xmlTestId
+ * @return
+ * @throws DOMComparisonException
+ */
+ private void compareElements(VpeController controller,
+ Document xmlTestDocument, String elementId, String xmlTestId)
+ throws DOMComparisonException {
+ // get element by id
+ nsIDOMElement vpeElement = findElementById(controller, elementId);
+ assertNotNull("Cann't find element with id="+elementId,vpeElement); //$NON-NLS-1$
+
+ // DOMTreeDumper dumper = new DOMTreeDumper(
+ // VpeDebug.VISUAL_DUMP_PRINT_HASH);
+ // dumper.dumpToStream(System.out, vpeElement);
+
+ // get test element by id - get <test id="..." > element and get his
+ // first child
+ Element xmlModelElement = TestDomUtil.getFirstChildElement(TestDomUtil
+ .getElemenById(xmlTestDocument, xmlTestId));
+
+ assertNotNull(xmlModelElement);
+
+ TestDomUtil.compareNodes(vpeElement, xmlModelElement);
+ }
+
+ /**
+ * test for invisible tags
+ *
+ * @param elementPagePath
+ * - path to test page
+ * @param elementId
+ * - id of element on page
+ * @throws Throwable
+ */
+ protected void performInvisibleTagTest(String elementPagePath,
+ String elementId) throws Throwable {
+ performInvisibleTagTestByFullPath(TestUtil.COMPONENTS_PATH
+ + elementPagePath, elementId);
+ }
+
+ /**
+ * test for invisible tags
+ *
+ * @param elementPagePath
+ * - path to test page
+ * @param elementId
+ * - id of element on page
+ * @throws Throwable
+ */
+ protected void performInvisibleTagTestByFullPath(String elementPagePath,
+ String elementId) throws Throwable {
+ setException(null);
+
+ IFile elementPageFile = (IFile) TestUtil.getComponentFileByFullPath(
+ elementPagePath, getTestProjectName());
+ /*
+ * Test that test file was found and exists
+ */
+ assertNotNull("Could not find component file '"+elementPagePath+"'", elementPageFile); //$NON-NLS-1$ //$NON-NLS-2$
+ /*
+ * Open the editor
+ */
+ IEditorInput input = new FileEditorInput(elementPageFile);
+ TestUtil.waitForJobs();
+ IEditorPart editor = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().openEditor(input,
+ getEditorID(), true);
+ assertNotNull("Editor should be opened.", editor); //$NON-NLS-1$
+ TestUtil.waitForJobs();
+ /*
+ * Get the controller
+ */
+ VpeController controller = TestUtil.getVpeController((JSPMultiPageEditor) editor);
+ /*
+ * Find source element and check if it is not null
+ */
+ Element sourceElement = findSourceElementById(controller, elementId);
+ assertNotNull("Source node with id '" + elementId + "' was not found.", sourceElement); //$NON-NLS-1$ //$NON-NLS-2$
+ /*
+ * Find visual element and check if it is null
+ */
+ nsIDOMElement visualElement = findElementById(controller, elementId);
+ assertNull("Source node with id '" + elementId + "' has visual representation.", visualElement); //$NON-NLS-1$ //$NON-NLS-2$
+
+ /*
+ * Set show invisible tag's flag to true
+ */
+ controller.getVisualBuilder().setShowInvisibleTags(true);
+ controller.visualRefresh();
+
+ /*
+ * Find visual element and check if it is not null
+ */
+ visualElement = findElementById(controller, elementId,TestUtil.MAX_IDLE);
+ assertNotNull(visualElement);
+
+ /*
+ * Generate text for invisible tag
+ */
+ String modelInvisibleTagText = generateInvisibleTagText(sourceElement
+ .getNodeName());
+
+ /*
+ * Generate dom document and get root element
+ */
+ Element modelElement = TestDomUtil.getDocument(modelInvisibleTagText)
+ .getDocumentElement();
+ assertNotNull(modelElement);
+
+ TestDomUtil.compareNodes(visualElement, modelElement);
+
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+ /**
+ * test for invisible tags which can have visible children
+ *
+ * @param elementPagePath
+ * - path to test page
+ * @param elementId
+ * - id of element on page
+ * @throws Throwable
+ */
+ protected void performInvisibleWrapperTagTest(String elementPagePath,
+ String elementId) throws Throwable {
+ setException(null);
+
+ IFile elementPageFile = (IFile) TestUtil.getComponentPath(
+ elementPagePath, getTestProjectName());
+
+ IEditorInput input = new FileEditorInput(elementPageFile);
+
+ TestUtil.waitForJobs();
+
+ IEditorPart editor = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().openEditor(input,
+ getEditorID(), true);
+
+ assertNotNull(editor);
+
+ TestUtil.waitForJobs();
+
+ VpeController controller = TestUtil.getVpeController((JSPMultiPageEditor) editor);
+
+ // find source element and check if it is not null
+ Element sourceELement = findSourceElementById(controller, elementId);
+ assertNotNull(sourceELement);
+
+ // find visual element and check if it is null
+ nsIDOMElement visualElement = findElementById(controller, elementId);
+ assertNull(visualElement);
+
+ // check children of non-visual
+ NodeList children = sourceELement.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+ assertNotNull(findNode(controller, child));
+ }
+
+ // set show invisible tag's flag to true
+ controller.getVisualBuilder().setShowInvisibleTags(true);
+ controller.visualRefresh();
+
+ TestUtil.waitForIdle();
+
+ // find visual element and check if it is not null
+ visualElement = findElementById(controller, elementId);
+ assertNotNull(visualElement);
+
+ // generate text for invisible tag
+ String modelInvisibleTagText = generateInvisibleTagText(sourceELement
+ .getNodeName());
+
+ // generate dom document and get root element
+ Element modelElement = TestDomUtil.getDocument(modelInvisibleTagText)
+ .getDocumentElement();
+ assertNotNull(modelElement);
+
+ // compare elements
+ TestDomUtil.compareNodes(visualElement, modelElement);
+
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+ /**
+ *
+ * @param tagName
+ * @return
+ */
+ private String generateInvisibleTagText(String tagName) {
+ return "<span style=\"border: 1px dashed GREY; color: GREY; font-size: 12px;\" >" //$NON-NLS-1$
+ + tagName + "</span>"; //$NON-NLS-1$
+ }
+
+ /**
+ * find visual element by "id" entered in source part of vpe
+ *
+ * @param controller
+ * @param elementId
+ * @param idle try element for some time period, for example when we need
+ * to wait for refresh job
+ * @return
+ */
+ protected nsIDOMElement findElementById(VpeController controller,
+ String elementId, long idle) {
+ long start = System.currentTimeMillis();
+ nsIDOMElement result = null;
+ while (result==null) {
+ result = findElementById(controller, elementId);
+ TestUtil.delay(50);
+ if (result==null && ((System.currentTimeMillis()-start) > idle) )
+ throw new RuntimeException("A long running task detected"); //$NON-NLS-1$
+ }
+ return result;
+ }
+ /**
+ * find visual element by "id" entered in source part of vpe
+ *
+ * @param controller
+ * @param elementId
+ * @return
+ */
+ protected nsIDOMNode findNode(VpeController controller, Node node) {
+
+ VpeNodeMapping nodeMapping = controller.getDomMapping().getNodeMapping(
+ node);
+
+ if (nodeMapping == null)
+ return null;
+
+ return nodeMapping.getVisualNode();
+ }
+
+ /**
+ *
+ * @return
+ */
+ abstract protected String getTestProjectName();
+
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/DOMComparisonException.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/DOMComparisonException.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/DOMComparisonException.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.base.test;
+
+import org.w3c.dom.Node;
+
+/**
+ * @author Sergey Dzmitrovich
+ * @author Yahor Radtsevich (yradtsevich)
+ *
+ */
+public class DOMComparisonException extends Exception {
+ private static final long serialVersionUID = 7127064462771778364L;
+ private Node node;
+
+ public DOMComparisonException(String message, Node node) {
+ super(message);
+ this.node = node;
+ }
+
+ public Node getNode() {
+ return node;
+ }
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/OpenOnUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/OpenOnUtil.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/OpenOnUtil.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,146 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.base.test;
+
+import java.lang.reflect.Method;
+import static junit.framework.Assert.assertEquals;
+import org.eclipse.jface.text.Region;
+import org.eclipse.jface.text.hyperlink.IHyperlink;
+import org.eclipse.jface.text.hyperlink.IHyperlinkDetector;
+import org.eclipse.jface.text.source.SourceViewerConfiguration;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.MultiPageEditorPart;
+import org.eclipse.ui.texteditor.AbstractTextEditor;
+import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.jboss.tools.common.model.ui.editor.EditorPartWrapper;
+import org.jboss.tools.common.model.ui.texteditors.XMLTextEditorStandAlone;
+import org.jboss.tools.common.text.ext.hyperlink.AbstractHyperlink;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class OpenOnUtil {
+
+ /**
+ * method does open on action in editor
+ *
+ * @param textEditor
+ * @param lineNumber
+ * @param lineOffset
+ * @throws Throwable
+ */
+ public static final void performOpenOnAction(
+ StructuredTextEditor textEditor, int offset) throws Throwable {
+
+ // hack to get hyperlinks detectors, no other was have been founded
+ Method method = AbstractTextEditor.class
+ .getDeclaredMethod("getSourceViewerConfiguration"); //$NON-NLS-1$
+ method.setAccessible(true);
+ SourceViewerConfiguration sourceViewerConfiguration = (SourceViewerConfiguration) method
+ .invoke(textEditor);
+ IHyperlinkDetector[] hyperlinkDetectors = sourceViewerConfiguration
+ .getHyperlinkDetectors(textEditor.getTextViewer());
+
+ for (IHyperlinkDetector iHyperlinkDetector : hyperlinkDetectors) {
+ IHyperlink[] hyperLinks = iHyperlinkDetector.detectHyperlinks(
+ textEditor.getTextViewer(), new Region(offset, 0), false);
+ if (hyperLinks != null && hyperLinks.length > 0
+ && hyperLinks[0] instanceof AbstractHyperlink) {
+ AbstractHyperlink abstractHyperlink = (AbstractHyperlink) hyperLinks[0];
+ abstractHyperlink.open();
+ break;
+ }
+ }
+
+ }
+
+ /**
+ * Function for checking openOn functionality
+ *
+ * @param editorInput
+ * @param editorId
+ * @param lineNumber
+ * @param lineOffset
+ * @param openedOnFileName
+ * @throws Throwable
+ *
+ * @author mareshkau
+ */
+
+ public static final void checkOpenOnInEditor(IEditorInput editorInput,String editorId,int lineNumber, int lineOffset, String openedOnFileName) throws Throwable {
+ StructuredTextEditor textEditor = getStructuredTextEditorPart(editorInput, editorId);
+
+ int openOnPosition = TestUtil.getLinePositionOffcet(textEditor
+ .getTextViewer(),lineNumber, lineOffset);
+ // hack to get hyperlinks detectors, no other was have been founded
+ Method method = AbstractTextEditor.class
+ .getDeclaredMethod("getSourceViewerConfiguration"); //$NON-NLS-1$
+ method.setAccessible(true);
+ SourceViewerConfiguration sourceViewerConfiguration = (SourceViewerConfiguration) method
+ .invoke(textEditor);
+ IHyperlinkDetector[] hyperlinkDetectors = sourceViewerConfiguration
+ .getHyperlinkDetectors(textEditor.getTextViewer());
+ for (IHyperlinkDetector iHyperlinkDetector : hyperlinkDetectors) {
+ IHyperlink[] hyperLinks = iHyperlinkDetector.detectHyperlinks(
+ textEditor.getTextViewer(), new Region(openOnPosition, 0),
+ false);
+ if (hyperLinks != null && hyperLinks.length > 0
+ && hyperLinks[0] instanceof AbstractHyperlink) {
+ AbstractHyperlink abstractHyperlink = (AbstractHyperlink) hyperLinks[0];
+ abstractHyperlink.open();
+ break;
+ }
+ }
+ IEditorPart activeEditor = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ assertEquals(
+ "Active page should be ", openedOnFileName, activeEditor.getEditorInput().getName()); //$NON-NLS-1$
+ }
+
+ private static StructuredTextEditor getStructuredTextEditorPart(IEditorInput editorInput,String editorId) throws PartInitException{
+ IEditorPart editorPart = PlatformUI
+ .getWorkbench().getActiveWorkbenchWindow().getActivePage()
+ .openEditor(editorInput, editorId);
+ StructuredTextEditor textEditor = null;
+ if(editorPart instanceof MultiPageEditorPart){
+ StructuredTextEditor structuredTextEditor = findStructEditor((MultiPageEditorPart)editorPart, editorInput);
+ ((MultiPageEditorPart)editorPart).setActiveEditor(structuredTextEditor);
+ textEditor = structuredTextEditor;
+ } else if(editorPart instanceof JSPMultiPageEditor) {
+ textEditor = ((JSPMultiPageEditor)editorPart).getSourceEditor();
+ } else if(editorPart instanceof EditorPartWrapper
+ &&(((EditorPartWrapper)editorPart).getEditor()) instanceof MultiPageEditorPart) {
+ StructuredTextEditor structuredTextEditor = findStructEditor((MultiPageEditorPart)((EditorPartWrapper)editorPart).getEditor(), editorInput);
+ ((MultiPageEditorPart)((EditorPartWrapper)editorPart).getEditor()).setActiveEditor(structuredTextEditor);
+ textEditor = structuredTextEditor;
+ } else if(editorPart instanceof EditorPartWrapper &&
+ (((EditorPartWrapper)editorPart).getEditor()) instanceof StructuredTextEditor){
+ textEditor = (StructuredTextEditor) (((EditorPartWrapper)editorPart).getEditor());
+ }
+ return textEditor;
+ }
+
+ private static StructuredTextEditor findStructEditor (MultiPageEditorPart part, IEditorInput input){
+ IEditorPart[] editorParts = part.findEditors(input);
+ for (int i = 0; i < editorParts.length; i++) {
+ if (editorParts[i] instanceof StructuredTextEditor) {
+ return (StructuredTextEditor) editorParts[i];
+ }
+ }
+ return null;
+ }
+
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/ProjectsLoader.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/ProjectsLoader.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/ProjectsLoader.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,209 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.base.test;
+
+import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import junit.framework.Assert;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtension;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
+import org.osgi.framework.Bundle;
+
+/**
+ * Singleton class to operate on test projects.
+ *
+ * @see {@code org.jboss.tools.vpe.ui.tests} extension point
+ * @author Yahor Radtsevich (yradtsevich)
+ */
+public class ProjectsLoader {
+ private static final String TEST_PROJECT_ELEMENT = "testProject";
+ private static final String TEST_PROJECT_PATH_ATTRIBUTE = "path";
+ private static final String TEST_PROJECT_NAME_ATTRIBUTE = "name";
+ private Map<String, ProjectLocation> projectNameToLocation;
+ private static ProjectsLoader instance = null;
+
+ private ProjectsLoader() {
+ /*
+ * Load project names and paths to them from the extensions of
+ * {@link VpeAllTests#VPE_TEST_EXTENTION_POINT_ID}. And store
+ * loaded data in {@link #projectNameToLocation}.
+ */
+ projectNameToLocation = new HashMap<String, ProjectLocation>();
+ IExtension[] extensions = VPEBaseTestPlugin.getDefault().getVpeTestExtensions();
+ for (IExtension extension : extensions) {
+ IConfigurationElement[] confElements = extension
+ .getConfigurationElements();
+ for (IConfigurationElement configurationElement : confElements) {
+ if (TEST_PROJECT_ELEMENT.equals(
+ configurationElement.getName())) {
+ Bundle bundle = Platform.getBundle(
+ configurationElement.getNamespaceIdentifier());
+ String name = configurationElement.getAttribute(
+ TEST_PROJECT_NAME_ATTRIBUTE);
+ String path = configurationElement.getAttribute(
+ TEST_PROJECT_PATH_ATTRIBUTE);
+
+ projectNameToLocation.put(name,
+ new ProjectLocation(bundle, path));
+ }
+ }
+ }
+ }
+
+ /**
+ * Returns the instance of {@link ProjectsLoader}
+ */
+ public static ProjectsLoader getInstance() {
+ if (instance == null) {
+ instance = new ProjectsLoader();
+ }
+
+ return instance;
+ }
+
+ /**
+ * Returns instance of {@link IProject} by {@code projectName}.
+ * If the project does not exist in the workspace, imports it from the
+ * resources specified by extensions of {@code org.jboss.tools.vpe.ui.tests}
+ * extension point.
+ * <p>
+ * This method has <i>fail-fast</i> behavior. It never returns {@code null}.
+ * It throws exceptions in the cases if the project is not defined,
+ * can not be opened, etc.
+ */
+ public IProject getProject(String projectName) throws IOException {
+ IProject project = getExistingProject(projectName);
+
+ if (project == null) {
+ ProjectLocation location = projectNameToLocation.get(projectName);
+ if (location == null) {
+ throw new RuntimeException(
+ "Project '" + project + "' is not defined.");
+ }
+
+ try {
+ project = ResourcesUtils.importProject(location.getBundle(), location.getPath(), projectName, new NullProgressMonitor());
+ } catch (CoreException e) {
+ throw new RuntimeException("Project by the path='" + location.getPath()
+ + "' cannot be imported.",e);
+ } catch (InvocationTargetException e) {
+ throw new RuntimeException("Project by the path='" + location.getPath()
+ + "' cannot be imported.",e);
+ } catch (InterruptedException e) {
+ throw new RuntimeException("Project by the path='" + location.getPath()
+ + "' cannot be imported.",e);
+ }
+ if (project == null) {
+ throw new RuntimeException("Project by the path='" + location.getPath()
+ + "' cannot be imported.");
+ }
+ }
+
+ return project;
+ }
+
+ /**
+ * Returns a workspace project by its {@code projectName}, or {@code null}
+ * if there is no project with this name in the workspace.
+ */
+ public static IProject getExistingProject(String projectName) {
+ IProject project = ResourcesPlugin.getWorkspace().getRoot()
+ .getProject(projectName);
+ if (project.isAccessible()) {
+ return project;
+ } else {
+ return null;
+ }
+ }
+
+ /**
+ * Removes the project with the {@code projectName} from the workspace.
+ *
+ * @param projectName the project name
+ * @throws CoreException the core exception
+ */
+ static public void removeProject(String projectName) throws CoreException {
+ IProject project = ProjectsLoader.getExistingProject(projectName);
+ removeProject(project);
+ }
+
+ /**
+ * Removes given {@code project} from the workspace
+ *
+ * @param project project to remove
+ * @throws CoreException
+ */
+ private static void removeProject(IProject project) throws CoreException {
+ boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
+ try {
+ if (project != null) {
+ project.delete(IResource.ALWAYS_DELETE_PROJECT_CONTENT,
+ new NullProgressMonitor());
+ JobUtils.waitForIdle();
+ }
+ } finally {
+ ResourcesUtils.setBuildAutomatically(saveAutoBuild);
+ }
+ }
+
+ /**
+ * Removes all projects from the workspace
+ *
+ * @throws CoreException
+ */
+ static public void removeAllProjects() throws CoreException {
+ IProject[] projects = ResourcesPlugin.getWorkspace().getRoot()
+ .getProjects();
+ for (IProject project: projects) {
+ removeProject(project);
+ }
+ }
+
+ /**
+ * Stores the {@code path} to a project and the owning {@code bundle}.
+ *
+ * @author Yahor Radtsevich (yradtsevich)
+ */
+ private class ProjectLocation {
+ private Bundle bundle;
+ private String path;
+
+ public ProjectLocation(Bundle bundle, String path) {
+ this.bundle = bundle;
+ this.path = path;
+ }
+ public Bundle getBundle() {
+ return bundle;
+ }
+ public String getPath() {
+ return path;
+ }
+
+ public String toString() {
+ return String.format("(%s, %s)",
+ bundle == null ? null : bundle.getLocation(), path);
+ }
+ }
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/TestDomUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/TestDomUtil.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/TestDomUtil.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,381 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.base.test;
+
+import static org.jboss.tools.vpe.xulrunner.util.XPCOM.queryInterface;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.StringReader;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.jboss.tools.common.model.util.XMLUtil;
+import org.jboss.tools.jst.css.common.CSSStyleManager;
+import org.jboss.tools.vpe.editor.util.Constants;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
+import org.mozilla.interfaces.nsIDOMAttr;
+import org.mozilla.interfaces.nsIDOMCSSStyleDeclaration;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNamedNodeMap;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.w3c.dom.Attr;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.NamedNodeMap;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.css.CSSStyleDeclaration;
+import org.w3c.dom.css.ElementCSSInlineStyle;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class TestDomUtil {
+ /**
+ * Attributes names that will be skipped in attribute comparison.
+ */
+ public static final Set<String> skippedAtributes = new HashSet<String>();
+ static {
+ // Add here all attributes names to be skipped (IN UPPER CASE!)
+ skippedAtributes.addAll(Arrays.asList("DIR"));//$NON-NLS-1$
+ }
+
+ final public static String ID_ATTRIBUTE = "id"; //$NON-NLS-1$
+
+ final public static String ILLEGAL_ATTRIBUTES = "illegalAttributes"; //$NON-NLS-1$
+
+ final public static String ILLEGAL_ATTRIBUTES_SEPARATOR = Constants.COMMA;
+
+ final public static String START_REGEX = "/"; //$NON-NLS-1$
+
+ final public static String END_REGEX = "/"; //$NON-NLS-1$
+
+ public static Document getDocument(File file) throws FileNotFoundException {
+ // create reader
+ FileReader reader = new FileReader(file);
+
+ // return document
+ return XMLUtil.getDocument(reader);
+ }
+
+ public static Document getDocument(String content)
+ throws FileNotFoundException {
+ // create reader
+ StringReader reader = new StringReader(content);
+
+ // return document
+ return XMLUtil.getDocument(reader);
+ }
+
+ /**
+ *
+ * @param document
+ * @param elementId
+ * @return
+ */
+ public static Element getElemenById(Document document, String elementId) {
+
+ Element element = document.getDocumentElement();
+
+ NodeList children = element.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+ if ((child.getNodeType() == Node.ELEMENT_NODE)
+ && elementId.equals(((Element) child)
+ .getAttribute(ID_ATTRIBUTE)))
+ return (Element) child;
+
+ }
+
+ return null;
+
+ }
+
+ /**
+ *
+ * @param element
+ * @return
+ */
+ public static Element getFirstChildElement(Element element) {
+
+ if (element != null) {
+ NodeList children = element.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+
+ if (child.getNodeType() == Node.ELEMENT_NODE)
+ return (Element) child;
+
+ }
+ }
+ return null;
+
+ }
+
+ /**
+ *
+ * @param vpeNode
+ * @param schemeNode
+ * @return
+ * @throws DOMComparisonException
+ */
+ public static void compareNodes(nsIDOMNode vpeNode, Node modelNode)
+ throws DOMComparisonException {
+
+ if (!modelNode.getNodeName().equalsIgnoreCase(vpeNode.getNodeName())) {
+ throw new DOMComparisonException("name of tag is \"" //$NON-NLS-1$
+ + vpeNode.getNodeName() + "\"but must be \"" //$NON-NLS-1$
+ + modelNode.getNodeName() + "\"", modelNode); //$NON-NLS-1$
+ }
+ if ((modelNode.getNodeValue() != null)
+ && (!modelNode.getNodeValue().trim().equalsIgnoreCase(
+ vpeNode.getNodeValue().trim()))) {
+ throw new DOMComparisonException("value of " + vpeNode.getNodeName() //$NON-NLS-1$
+ + " is \"" + vpeNode.getNodeValue().trim() //$NON-NLS-1$
+ + "\" but must be \"" + modelNode.getNodeValue().trim() //$NON-NLS-1$
+ + "\"", modelNode); //$NON-NLS-1$
+ }
+
+ // compare node's attributes
+ if (modelNode.getNodeType() == Node.ELEMENT_NODE) {
+ compareAttributes(modelNode.getAttributes(), vpeNode
+ .getAttributes());
+ }
+
+ // compare children
+ nsIDOMNodeList vpeChildren = vpeNode.getChildNodes();
+ NodeList schemeChildren = modelNode.getChildNodes();
+ int realCount = 0;
+ for (int i = 0; i < schemeChildren.getLength(); i++) {
+
+ Node schemeChild = schemeChildren.item(i);
+
+ // leave out empty text nodes in test dom model
+ if ((schemeChild.getNodeType() == Node.TEXT_NODE)
+ && ((schemeChild.getNodeValue() == null) || (schemeChild
+ .getNodeValue().trim().length() == 0)))
+ continue;
+
+ nsIDOMNode vpeChild = vpeChildren.item(realCount++);
+
+ if (null == vpeChild) {
+ throw new DOMComparisonException(
+ "Child of node \"" //$NON-NLS-1$
+ + vpeNode.getNodeName()
+ + "\" is \"null\", but should be \"" + schemeChild.getNodeName() + "\"",//$NON-NLS-1$ //$NON-NLS-2$
+ schemeChild);
+ }
+
+ // leave out empty text nodes in vpe dom model
+ while (((vpeChild.getNodeType() == Node.TEXT_NODE) && ((vpeChild
+ .getNodeValue() == null) || (vpeChild.getNodeValue().trim()
+ .length() == 0)))) {
+ vpeChild = vpeChildren.item(realCount++);
+ if (null == vpeChild) {
+ throw new DOMComparisonException(
+ "Child of node \"" //$NON-NLS-1$
+ + vpeNode.getNodeName()
+ + "\" is \"null\", but should be \"" + schemeChild.getNodeName() + "\"",//$NON-NLS-1$ //$NON-NLS-2$
+ schemeChild);
+ }
+ }
+
+ compareNodes(vpeChild, schemeChild);
+
+ }
+
+ }
+
+ /**
+ * get ids of tests
+ *
+ * @param testDocument
+ * @return
+ */
+ public static List<String> getTestIds(Document testDocument) {
+ Element rootElement = testDocument.getDocumentElement();
+ List<String> ids = new ArrayList<String>();
+ NodeList children = rootElement.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+ if (child.getNodeType() == Node.ELEMENT_NODE)
+ ids.add(((Element) child).getAttribute(ID_ATTRIBUTE));
+
+ }
+ return ids;
+ }
+
+ private static void compareAttributes(NamedNodeMap modelAttributes,
+ nsIDOMNamedNodeMap vpeAttributes) throws DOMComparisonException {
+
+ for (int i = 0; i < modelAttributes.getLength(); i++) {
+ Attr modelAttr = (Attr) modelAttributes.item(i);
+ String name = modelAttr.getName();
+ // if the attribute has to be skipped, then do it
+ if ( name != null
+ && skippedAtributes.contains(name.toUpperCase()) ) {
+ continue;
+ }
+ // if there are limitation of attributes
+ if (ILLEGAL_ATTRIBUTES.equals(name)) {
+ String[] illegalAttributes = modelAttr.getNodeValue().split(
+ ILLEGAL_ATTRIBUTES_SEPARATOR);
+ for (String illegalAttributeName : illegalAttributes) {
+ if (vpeAttributes.getNamedItem(illegalAttributeName.trim()) != null)
+ throw new DOMComparisonException("illegal attribute :" //$NON-NLS-1$
+ + illegalAttributeName, modelAttr);
+ }
+ } else {
+ if (vpeAttributes.getNamedItem(name) == null) {
+ throw new DOMComparisonException("there is not : \"" + name //$NON-NLS-1$
+ + "\" attribute", modelAttr); //$NON-NLS-1$
+ }
+ nsIDOMAttr vpeAttr = queryInterface(
+ vpeAttributes.getNamedItem(name), nsIDOMAttr.class);
+ /*
+ * By default every attribute show pass through
+ * compareComplexStrings(..) method.
+ * For "style" attribute there is a separate comparison.
+ */
+ boolean performComplexStringsComparison = true;
+ if (HTML.ATTR_STYLE.equalsIgnoreCase(name)) {
+ String xmlAttrValue = modelAttr.getNodeValue();
+ /*
+ * Check if it is not a regular expression.
+ * Otherwise perform Complex Strings Comparison
+ * as usual.
+ */
+ if (!(xmlAttrValue.startsWith(START_REGEX)
+ && xmlAttrValue.endsWith(END_REGEX))) {
+ performComplexStringsComparison = false;
+ /*
+ * Parse style attribute value
+ */
+ Map<String, String> vpeStyle = CSSStyleManager
+ .getStyleAttributes(vpeAttr.getNodeValue());
+ Map<String, String> xmlStyle = CSSStyleManager
+ .getStyleAttributes(xmlAttrValue);
+ /*
+ * Major condition is that
+ * all styles from the xml file should present
+ * in the style attribute of the vpe element.
+ */
+ if (xmlStyle.size() > vpeStyle.size()) {
+ throw new DOMComparisonException(
+ "VPE element has less style parameters [" //$NON-NLS-1$
+ + vpeStyle.size()
+ + "] than was specified [" //$NON-NLS-1$
+ + xmlStyle.size() + "]." //$NON-NLS-1$
+ + "\n Expected: " + xmlStyle //$NON-NLS-1$
+ + "\n Was: " + vpeStyle, //$NON-NLS-1$
+ modelAttr);
+ } else {
+ if ((xmlStyle.size() > 0) && (vpeStyle.size() > 0)) {
+ for (String key : xmlStyle.keySet()) {
+ if (vpeStyle.containsKey(key)) {
+ if (!xmlStyle.get(key).equalsIgnoreCase(
+ vpeStyle.get(key))) {
+ throw new DOMComparisonException(
+ "Style value for parameter [" //$NON-NLS-1$
+ + key
+ + "] is different. Expected [" //$NON-NLS-1$
+ + xmlStyle.get(key)
+ + "] but was [" //$NON-NLS-1$
+ + vpeStyle.get(key)
+ + "]", modelAttr); //$NON-NLS-1$
+ }
+ } else {
+ throw new DOMComparisonException(
+ "Style parameter [" //$NON-NLS-1$
+ + key
+ + "] is missing in the VPE element", //$NON-NLS-1$
+ modelAttr);
+ }
+ }
+ }
+ }
+ }
+ }
+ if (performComplexStringsComparison) {
+ compareComplexAttributes(modelAttr, vpeAttr);
+ }
+ }
+ }
+ }
+
+ static private void compareComplexAttributes(Attr modelAttr, nsIDOMAttr vpeAttr)
+ throws DOMComparisonException {
+ String modelString = modelAttr.getNodeValue().trim();
+ String vpeString = vpeAttr.getNodeValue().trim();
+
+ if (modelString.startsWith(START_REGEX)
+ && modelString.endsWith(END_REGEX)) {
+ String regex = modelString.substring(START_REGEX.length(),
+ modelString.length() - END_REGEX.length());
+ int firstPos = regex.indexOf("url\\("); //$NON-NLS-1$
+ if (firstPos > -1) {
+ String subString = regex.substring(firstPos + 5, firstPos + 5 + 2);
+ if (!"\"?".equalsIgnoreCase(subString)) { //$NON-NLS-1$
+ String firstPart = regex.substring(0, firstPos + 5);
+ String secondPart = regex.substring(firstPos + 5, regex.length());
+ int lastPos = secondPart.indexOf("\\)"); //$NON-NLS-1$
+ if (lastPos > -1) {
+ String subs = secondPart.substring(lastPos - 2, lastPos);
+ if (!"\"?".equalsIgnoreCase(subs)) { //$NON-NLS-1$
+ String fpart = secondPart.substring(0, lastPos);
+ String spart = secondPart.substring(lastPos, secondPart.length());
+ regex = firstPart + "\"?" + fpart + "\"?" + spart; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ }
+ }
+ }
+ Matcher matcher = Pattern.compile(regex).matcher(vpeString);
+ if (!matcher.find()) {
+ throw new DOMComparisonException("string is\"" + vpeString //$NON-NLS-1$
+ + "\" but pattern is \"" + regex + "\"", modelAttr); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ } else if (!modelString.equals(vpeString)) {
+ throw new DOMComparisonException("string is\"" + vpeString //$NON-NLS-1$
+ + "\" but must be \"" + modelString + "\"", modelAttr); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ }
+
+ /**
+ * is created to be sure that attributes/parameters will be correctly
+ * compared ( ignore case )
+ *
+ * @param list
+ * @param string
+ * @return
+ */
+ static private boolean findIgnoreCase(String[] strings,
+ String requiredString) {
+ for (String string : strings) {
+ if (string.equalsIgnoreCase(requiredString))
+ return true;
+ }
+
+ return false;
+ }
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/TestUtil.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/TestUtil.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/TestUtil.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,398 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.base.test;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.List;
+
+import junit.framework.Assert;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.jface.text.ITextViewer;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
+import org.eclipse.wst.sse.ui.internal.contentassist.ContentAssistUtils;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.editor.VpeEditorPart;
+import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.mozilla.xpcom.XPCOMException;
+import org.w3c.dom.Node;
+
+/**
+ * Class for importing project from jar file.
+ *
+ * @author sdzmitrovich
+ */
+public class TestUtil {
+
+ /** The Constant COMPONENTS_PATH. */
+ public static final String COMPONENTS_PATH = "WebContent/pages/"; //$NON-NLS-1$
+
+ /** The Constant WEBCONTENT_PATH. */
+ private static final String WEBCONTENT_PATH = "WebContent"; //$NON-NLS-1$
+
+ /** Editor in which we open visual page. */
+ protected final static String EDITOR_ID = "org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor"; //$NON-NLS-1$
+
+ /** The Constant MAX_IDLE. */
+ public static final long MAX_IDLE = 15*1000L;
+
+ /**
+ * Gets the component path.
+ *
+ * @param componentPage the component page
+ * @param projectName the project name
+ *
+ * @return the component path
+ *
+ * @throws CoreException the core exception
+ * @throws IOException
+ */
+ public static IResource getComponentPath(String componentPage,
+ String projectName) throws CoreException, IOException {
+ IProject project = ProjectsLoader.getInstance().getProject(projectName);
+ if (project != null) {
+ return project.getFolder(COMPONENTS_PATH).findMember(componentPage);
+ }
+ return null;
+ }
+
+ /**
+ * Gets the component path.
+ *
+ * @param componentPage the component page
+ * @param projectName the project name
+ *
+ * @return the component path
+ *
+ * @throws CoreException the core exception
+ * @throws IOException
+ */
+ public static IResource getComponentFileByFullPath(String componentPage,
+ String projectName) throws CoreException, IOException {
+ IProject project = ProjectsLoader.getInstance().getProject(projectName);
+ if (project != null) {
+ return project.findMember(componentPage);
+ }
+ return null;
+ }
+
+
+
+ public static IResource getResource(String path,
+ String projectName) throws CoreException, IOException {
+ IProject project = ProjectsLoader.getInstance().getProject(projectName);
+ if (project != null) {
+ return project.findMember(path);
+ }
+
+ return null;
+ }
+
+ /**
+ * Gets the web content path.
+ *
+ * @param componentPage the component page
+ * @param projectName the project name
+ *
+ * @return the web content path
+ *
+ * @throws CoreException the core exception
+ * @throws IOException
+ */
+ public static IResource getWebContentPath(String componentPage,
+ String projectName) throws CoreException, IOException {
+ IProject project = ProjectsLoader.getInstance().getProject(projectName);
+ if (project != null) {
+ return project.getFolder(WEBCONTENT_PATH).findMember(componentPage);
+ }
+
+ return null;
+ }
+
+
+ /**
+ * @param xmlScheme
+ * @param xmlSchemesRoot
+ * @return
+ */
+ public static File getXmlTestFile(String xmlTestPath, String xmlTestsRoot) {
+ return new File(xmlTestsRoot + File.separator + xmlTestPath);
+ }
+
+ /**
+ * Process UI input but do not return for the specified time interval.
+ *
+ * @param waitTimeMillis the number of milliseconds
+ */
+ public static void delay(long waitTimeMillis) {
+ Display display = Display.getCurrent();
+ if (display != null) {
+ long endTimeMillis = System.currentTimeMillis() + waitTimeMillis;
+ while (System.currentTimeMillis() < endTimeMillis) {
+ if (!display.readAndDispatch())
+ display.sleep();
+ }
+ display.update();
+ }
+ // Otherwise, perform a simple sleep.
+ else {
+ try {
+ Thread.sleep(waitTimeMillis);
+ } catch (InterruptedException e) {
+ // Ignored.
+ }
+ }
+ }
+
+ /**
+ * Wait until all background tasks are complete.
+ */
+ public static void waitForJobs() {
+ //commented by Maksim Areshkau
+ //because this method wait only for jobs which has been runned in current thread,
+ //and don't wait for others. It can cause https://jira.jboss.org/jira/browse/JBIDE-5820
+ //https://jira.jboss.org/jira/browse/JBIDE-5821
+// while (Job.getJobManager().currentJob() != null)
+// delay(100);
+ waitForIdle();
+ }
+
+ /**
+ * Wait for idle.
+ */
+ public static void waitForIdle(long maxIdle) {
+ long start = System.currentTimeMillis();
+ while (!Job.getJobManager().isIdle()) {
+ delay(500);
+ if ( (System.currentTimeMillis()-start) > maxIdle ) {
+ Job[] jobs = Job.getJobManager().find(null);
+ StringBuffer jobsList = new StringBuffer("A long running task detected\n");
+
+ for (Job job : jobs) {
+ jobsList.append(job.getName()).append("\n");
+ }
+ throw new RuntimeException(jobsList.toString()); //$NON-NLS-1$
+ }
+ }
+ }
+
+ public static void waitForIdle() {
+ waitForIdle(MAX_IDLE);
+ }
+
+ /**
+ * find elements by name.
+ *
+ * @param node -
+ * current node
+ * @param name -
+ * name element
+ * @param elements -
+ * list of found elements
+ */
+ static public void findElementsByName(nsIDOMNode node,
+ List<nsIDOMNode> elements, String name) {
+ /*
+ * Get children
+ */
+ nsIDOMNodeList children = node.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ nsIDOMNode child = children.item(i);
+ /*
+ * if current child is required then add it to list
+ */
+ if (name.equalsIgnoreCase((child.getNodeName()))) {
+ elements.add(child);
+ } else {
+ findElementsByName(child, elements, name);
+ }
+ }
+
+ }
+
+ /**
+ * find all elements by name.
+ *
+ * @param node -
+ * current node
+ * @param name -
+ * name element
+ * @param elements -
+ * list of found elements
+ */
+ static public void findAllElementsByName(nsIDOMNode node,
+ List<nsIDOMNode> elements, String name) {
+ try {
+ nsIDOMNodeList list = node.getChildNodes();
+ if (node.getNodeName().equalsIgnoreCase(name)) {
+ elements.add(node);
+ }
+ for (int i = 0; i < list.getLength(); i++) {
+ findAllElementsByName(list.item(i), elements, name);
+ }
+ } catch (XPCOMException e) {
+ // Ignore
+ return;
+ }
+ }
+
+ /**
+ * Utility function which returns node mapping by source position(line and position in line).
+ *
+ * @param linePosition the line position
+ * @param lineIndex the line index
+ * @param itextViewer the itext viewer
+ *
+ * @return node for specified src position
+ */
+ @SuppressWarnings("restriction")
+ public static Node getNodeMappingBySourcePosition(ITextViewer itextViewer, int lineIndex, int linePosition) {
+ int offset = getLinePositionOffcet(itextViewer, lineIndex, linePosition);
+ IndexedRegion treeNode = ContentAssistUtils.getNodeAt(itextViewer, offset);
+ return (Node) treeNode;
+ }
+
+ /**
+ * Utility function which is used to calculate offcet in document by line number and character position.
+ *
+ * @param linePosition the line position
+ * @param textViewer the text viewer
+ * @param lineIndex the line index
+ *
+ * @return offcet in document
+ *
+ * @throws IllegalArgumentException */
+ public static final int getLinePositionOffcet(ITextViewer textViewer, int lineIndex, int linePosition) {
+
+ int resultOffcet = 0;
+
+ if(textViewer==null) {
+
+ throw new IllegalArgumentException("Text viewer shouldn't be a null"); //$NON-NLS-1$
+ }
+ //lineIndex-1 becose calculating of line begibns in eclipse from one, but should be form zero
+ resultOffcet=textViewer.getTextWidget().getOffsetAtLine(lineIndex-1);
+ //here we get's tabs length
+ //for more example you can see code org.eclipse.ui.texteditor.AbstractTextEditor@getCursorPosition() and class $PositionLabelValue
+ int tabWidth = textViewer.getTextWidget().getTabs();
+ int characterOffset=0;
+ String currentString = textViewer.getTextWidget().getLine(lineIndex-1);
+ int pos=1;
+ for (int i= 0; (i < currentString.length())&&(pos<linePosition); i++) {
+ if ('\t' == currentString.charAt(i)) {
+
+ characterOffset += (tabWidth == 0 ? 0 : 1);
+ pos+=tabWidth;
+ }else{
+ pos++;
+ characterOffset++;
+ }
+ }
+ resultOffcet+=characterOffset;
+ if(textViewer.getTextWidget().getLineAtOffset(resultOffcet)!=(lineIndex-1)) {
+
+ throw new IllegalArgumentException("Incorrect character position in line"); //$NON-NLS-1$
+ }
+ return resultOffcet;
+ }
+
+ /**
+ * Gets visual page editor controller.
+ *
+ * @param part the part
+ *
+ * @return {@link VpeController}
+ */
+ public static VpeController getVpeController(JSPMultiPageEditor part) {
+
+ VpeEditorPart visualEditor = (VpeEditorPart) part.getVisualEditor();
+ while(visualEditor.getController()==null) {
+ if (!Display.getCurrent().readAndDispatch()) {
+ Display.getCurrent().sleep();
+ }
+ }
+ return visualEditor.getController();
+ }
+
+ /**
+ * get xulrunner source page.
+ *
+ * @param part - JSPMultiPageEditor
+ *
+ * @return nsIDOMDocument
+ */
+ public static nsIDOMDocument getVpeVisualDocument(JSPMultiPageEditor part) {
+
+
+ VpeController vpeController = TestUtil.getVpeController(part);
+
+ // get xulRunner editor
+ XulRunnerEditor xulRunnerEditor = vpeController.getXulRunnerEditor();
+
+ // get dom document
+ nsIDOMDocument document = xulRunnerEditor.getDOMDocument();
+
+ return document;
+ }
+
+ /**
+ * Perform test for rich faces component.
+ *
+ * @param componentPage the component page
+ *
+ * @return the ns IDOM element
+ *
+ * @throws Throwable the throwable
+ */
+ public static nsIDOMElement performTestForRichFacesComponent(IFile componentPage) throws Throwable {
+ nsIDOMElement rst = null;
+ TestUtil.waitForJobs();
+
+ // IFile file = (IFile)
+ // TestUtil.getComponentPath(componentPage,getImportProjectName());
+ IEditorInput input = new FileEditorInput(componentPage);
+
+ TestUtil.waitForJobs();
+ //
+ JSPMultiPageEditor editor = (JSPMultiPageEditor) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(
+ input, EDITOR_ID, true);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(editor);
+ rst = document.getDocumentElement();
+ // check that element is not null
+ Assert.assertNotNull(rst);
+ return rst;
+ }
+
+ /**
+ * Fail.
+ *
+ * @param t the t
+ */
+ public static void fail(Throwable t){
+ Assert.fail("Test case was fail "+t.getMessage()+":"+t);
+ }
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VPEBaseTestPlugin.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VPEBaseTestPlugin.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VPEBaseTestPlugin.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,76 @@
+/*******************************************************************************
+* Copyright (c) 2007 Red Hat, Inc.
+* Distributed under license by Red Hat, Inc. All rights reserved.
+* This program is made available under the terms of the
+* Eclipse Public License v1.0 which accompanies this distribution,
+* and is available at http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+* Red Hat, Inc. - initial API and implementation
+******************************************************************************/
+package org.jboss.tools.vpe.base.test;
+
+import org.eclipse.core.runtime.IExtension;
+import org.eclipse.core.runtime.IExtensionPoint;
+import org.eclipse.core.runtime.IExtensionRegistry;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.common.log.BaseUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class VPEBaseTestPlugin extends BaseUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.vpe.base.test";
+
+ public static final String VPE_TEST_EXTENTION_POINT_ID = "org.jboss.tools.vpe.ui.test"; //$NON-NLS-1$
+
+ // The shared instance
+ private static VPEBaseTestPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public VPEBaseTestPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static VPEBaseTestPlugin getDefault() {
+ return plugin;
+ }
+
+ /**
+ * Returns all extensions of {@value #VPE_TEST_EXTENTION_POINT_ID}
+ */
+ public IExtension[] getVpeTestExtensions() {
+ IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
+ IExtensionPoint extensionPoint = extensionRegistry
+ .getExtensionPoint(VPE_TEST_EXTENTION_POINT_ID);
+ IExtension[] extensions = extensionPoint.getExtensions();
+ return extensions;
+ }
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VpeTest.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VpeTest.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VpeTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,467 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.vpe.base.test;
+
+import java.io.IOException;
+import java.util.Collection;
+import java.util.Map;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.ILogListener;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swt.custom.StyledText;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.ide.IDE;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
+import org.jboss.tools.common.model.util.ClassLoaderUtil;
+import org.jboss.tools.jst.jsp.JspEditorPlugin;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
+import org.jboss.tools.vpe.editor.mapping.VpeElementMapping;
+import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
+import org.jboss.tools.vpe.editor.util.SelectionUtil;
+import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+/**
+ * The Class VpeTest.
+ *
+ * @author Max Areshkau
+ *
+ * Base Class for VPE tests
+ */
+public class VpeTest extends TestCase implements ILogListener {
+
+ /** Editor in which we open visual page. */
+ protected final static String EDITOR_ID = "org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor"; //$NON-NLS-1$
+
+ /** Collects exceptions. */
+ private Throwable exception;
+
+ /** check warning log. */
+ private boolean checkWarning = false;
+
+ // FIX for JBIDE-1628
+ static {
+ ClassLoaderUtil.init();
+ // wait for initialization
+ TestUtil.delay(3000);
+ JspEditorPlugin
+ .getDefault()
+ .getPreferenceStore()
+ .setValue(
+ IVpePreferencesPage.INFORM_WHEN_PROJECT_MIGHT_NOT_BE_CONFIGURED_PROPERLY_FOR_VPE,
+ false);
+ }
+
+ /**
+ * The Constructor.
+ *
+ * @param importProjectName
+ * * @param name the name
+ */
+
+ public VpeTest(String name) {
+ super(name);
+
+ }
+
+ /**
+ * Perform pre-test initialization.
+ *
+ * @throws Exception
+ * the exception
+ *
+ * @see TestCase#setUp()
+ */
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ Platform.addLogListener(this);
+ // String jbossPath = System.getProperty(
+ // "jbosstools.test.jboss.home.4.2", "C:\\java\\jboss-4.2.2.GA");
+ // JBossASAdapterInitializer.initJBossAS(jbossPath, new
+ // NullProgressMonitor());
+ closeEditors();
+ }
+
+ /**
+ * Perform post-test cleanup.
+ *
+ * @throws Exception
+ * the exception
+ *
+ * @see TestCase#tearDown()
+ */
+ @Override
+ protected void tearDown() throws Exception {
+//Has been commented by Maksim Areshkau,
+//this lines was a fix for JBIDE-6197 and not needed under eclipse 3.6
+// boolean isJobsCheck = true;
+// while (isJobsCheck) {
+// isJobsCheck = false;
+// Job[] jobs = Job.getJobManager().find(null);
+// for (Job job : jobs) {
+// if (job instanceof StructuredRegionProcessor) {
+// TestUtil.delay(50);
+// isJobsCheck = true;
+// break;
+// }
+// }
+// }
+
+ closeEditors();
+
+ Platform.removeLogListener(this);
+
+ if (getException() != null) {
+ throw new Exception(getException());
+ }
+
+ super.tearDown();
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.core.runtime.ILogListener#logging(org.eclipse.core.runtime
+ * .IStatus, java.lang.String)
+ */
+ /**
+ * Logging.
+ *
+ * @param status
+ * the status
+ * @param plugin
+ * the plugin
+ */
+ public void logging(IStatus status, String plugin) {
+ switch (status.getSeverity()) {
+ case IStatus.ERROR:
+ setException(status.getException());
+ break;
+ case IStatus.WARNING:
+ if (isCheckWarning())
+ setException(status.getException());
+ break;
+ default:
+ break;
+ }
+
+ }
+
+ /**
+ * close all opened editors.
+ */
+ protected void closeEditors() {
+
+ // wait
+ // TestUtil.waitForJobs();
+ IWorkbenchPage page = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage();
+ IWorkbenchPart part = page.getActivePart();
+ page.activate(part);
+ // close
+ page.closeAllEditors(false);
+
+ }
+
+ /**
+ *
+ * @return source document
+ */
+ protected Document getSourceDocument(VpeController controller) {
+
+ return controller.getSourceBuilder().getSourceDocument();
+
+ }
+
+ /**
+ * Perfoms test for some page.
+ *
+ * @param componentPage
+ * the component page
+ *
+ * @throws Throwable
+ * the throwable
+ * @throws PartInitException
+ * the part init exception
+ */
+ protected void performTestForVpeComponent(IFile componentPage)
+ throws PartInitException, Throwable {
+ TestUtil.waitForJobs();
+
+ setException(null);
+
+ // IFile file = (IFile)
+ // TestUtil.getComponentPath(componentPage,getImportProjectName());
+ IEditorInput input = new FileEditorInput(componentPage);
+
+ TestUtil.waitForJobs();
+
+ IEditorPart editor = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().openEditor(input,
+ getEditorID(), true);
+ // here we wait for inintialization VPE controller
+ TestUtil.getVpeController((JSPMultiPageEditor) editor);
+
+ assertNotNull(editor);
+
+ TestUtil.waitForJobs();
+ // JBIDE-1628
+ // TestUtil.delay(1000);
+
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
+ .closeAllEditors(true);
+
+ if (getException() != null) {
+ throw getException();
+ }
+ }
+
+ /**
+ * Open JSPMultiPageEditor editor.
+ *
+ * @param input
+ * the input
+ *
+ * @return the JSP multi page editor
+ *
+ * @throws PartInitException
+ * the part init exception
+ */
+ protected JSPMultiPageEditor openEditor(IEditorInput input)
+ throws PartInitException {
+
+ // get editor
+ JSPMultiPageEditor part = (JSPMultiPageEditor) PlatformUI
+ .getWorkbench().getActiveWorkbenchWindow().getActivePage()
+ .openEditor(input, getEditorID(), true);
+
+ assertNotNull(part);
+ return part;
+
+ }
+
+ /**
+ * Open JSPMultiPageEditor editor.
+ *
+ * @param input
+ * the input
+ *
+ * @return the JSP multi page editor
+ *
+ * @throws PartInitException
+ * the part init exception
+ */
+ protected JSPMultiPageEditor openEditor(IFile input)
+ throws PartInitException {
+
+ // get editor
+ JSPMultiPageEditor part = (JSPMultiPageEditor) IDE.openEditor(PlatformUI
+ .getWorkbench().getActiveWorkbenchWindow().getActivePage(),
+ input);
+
+ assertNotNull(part);
+ return part;
+
+ }
+
+ /**
+ * Gets the exception.
+ *
+ * @return the exception
+ */
+ protected Throwable getException() {
+ return exception;
+ }
+
+ /**
+ * Sets the exception.
+ *
+ * @param exception
+ * the exception to set
+ */
+ protected void setException(Throwable exception) {
+ this.exception = exception;
+ }
+
+ /**
+ * Checks if is check warning.
+ *
+ * @return the checkWarning
+ */
+ protected boolean isCheckWarning() {
+ return checkWarning;
+ }
+
+ /**
+ * Sets the check warning.
+ *
+ * @param checkWarning
+ * the checkWarning to set
+ */
+ protected void setCheckWarning(boolean checkWarning) {
+ this.checkWarning = checkWarning;
+ }
+
+ /**
+ * Compares source nodes selection and visual selection
+ *
+ * @param VPE
+ * Editor part
+ */
+ protected void checkSourceSelection(JSPMultiPageEditor part) {
+ // get controller
+ VpeController controller = TestUtil.getVpeController(part);
+ assertNotNull(controller);
+
+ // get dommapping
+ VpeDomMapping domMapping = controller.getDomMapping();
+
+ assertNotNull(domMapping);
+
+ // get source map
+ Map<Node, VpeNodeMapping> sourceMap = domMapping.getSourceMap();
+ assertNotNull(sourceMap);
+
+ // get collection of VpeNodeMapping
+ Collection<VpeNodeMapping> mappings = sourceMap.values();
+ assertNotNull(mappings);
+
+ // get editor control
+ StyledText styledText = part.getSourceEditor().getTextViewer()
+ .getTextWidget();
+ assertNotNull(styledText);
+
+ // get xulrunner editor
+ XulRunnerEditor xulRunnerEditor = controller.getXulRunnerEditor();
+ assertNotNull(xulRunnerEditor);
+
+ for (VpeNodeMapping nodeMapping : mappings) {
+
+ /**
+ * exclude out DomDocument ( it is added to mapping specially ) and
+ * nodes without visual representation
+ */
+ if (!(nodeMapping.getSourceNode() instanceof IDOMDocument)
+ && (nodeMapping.getVisualNode() != null)) {
+
+ SelectionUtil.setSourceSelection(controller.getPageContext(),
+ nodeMapping.getSourceNode(), 1, 0);
+
+ TestUtil.delay(50);
+
+ assertNotNull(xulRunnerEditor.getLastSelectedNode());
+
+ nsIDOMNode sample;
+ if (nodeMapping.getSourceNode().getNodeType() == Node.TEXT_NODE
+ && ((VpeElementMapping) nodeMapping).getElementData() != null) {
+
+ sample = ((VpeElementMapping) nodeMapping).getElementData()
+ .getNodesData().get(0).getVisualNode();
+ } else {
+ sample = nodeMapping.getVisualNode();
+ }
+
+ assertEquals(sample, xulRunnerEditor.getLastSelectedNode());
+ }
+ }
+ }
+
+ /**
+ * Opens specified file in the VPE editor.
+ *
+ * @param projectName
+ * the name of the project
+ * @param fileName
+ * the name of the file
+ *
+ * @return VpeController
+ * @throws CoreException
+ * @throws IOException
+ */
+ protected VpeController openInVpe(String projectName, String fileName)
+ throws CoreException, IOException {
+ // get test page path
+ final IFile file = (IFile) TestUtil.getComponentPath(fileName,
+ projectName);
+ assertNotNull("Could not open specified file." //$NON-NLS-1$
+ + " componentPage = " + fileName //$NON-NLS-1$
+ + ";projectName = " + projectName, file); //$NON-NLS-1$
+
+ final IEditorInput input = new FileEditorInput(file);
+ assertNotNull("Editor input is null", input); //$NON-NLS-1$
+
+ // open and get the editor
+ final JSPMultiPageEditor part = openEditor(input);
+
+ final VpeController vpeController = TestUtil.getVpeController(part);
+ return vpeController;
+ }
+
+ /**
+ * find source element by "id"
+ *
+ * @param controller
+ * @param elementId
+ * @return
+ */
+ protected Element findSourceElementById(VpeController controller,
+ String elementId) {
+
+ return getSourceDocument(controller).getElementById(elementId);
+ }
+
+ /**
+ * find visual element by "id" entered in source part of vpe
+ *
+ * @param controller
+ * @param elementId
+ * @return
+ */
+ protected nsIDOMElement findElementById(VpeController controller,
+ String elementId) {
+
+ Element sourceElement = findSourceElementById(controller, elementId);
+
+ VpeNodeMapping nodeMapping = controller.getDomMapping().getNodeMapping(
+ sourceElement);
+
+ if (nodeMapping == null)
+ return null;
+
+ return (nsIDOMElement) nodeMapping.getVisualNode();
+ }
+
+ protected String getEditorID(){
+ return EDITOR_ID;
+ }
+}
Added: trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VpeTestSetup.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VpeTestSetup.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.base.test/src/org/jboss/tools/vpe/base/test/VpeTestSetup.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,56 @@
+/*******************************************************************************
+* Copyright (c) 2007-2010 Red Hat, Inc.
+* Distributed under license by Red Hat, Inc. All rights reserved.
+* This program is made available under the terms of the
+* Eclipse Public License v1.0 which accompanies this distribution,
+* and is available at http://www.eclipse.org/legal/epl-v10.html
+*
+* Contributors:
+* Red Hat, Inc. - initial API and implementation
+******************************************************************************/
+package org.jboss.tools.vpe.base.test;
+
+import org.eclipse.ui.IViewReference;
+import org.eclipse.ui.PlatformUI;
+//import org.jboss.tools.vpe.ui.test.ProjectsLoader;
+
+import junit.extensions.TestSetup;
+import junit.framework.TestSuite;
+
+/**
+ * @author Max Areshkau
+ * @author Yahor Radtsevich (yradtsevich)
+ *
+ * Class for tear down JUnit tests (remove projects from workspace)
+ *
+ */
+public class VpeTestSetup extends TestSetup {
+ private static final String CONTENT_OUTLINE_VIEW_ID = "org.eclipse.ui.views.ContentOutline";
+
+ public VpeTestSetup(TestSuite test) {
+ super(test);
+ }
+
+ /* (non-Javadoc)
+ * @see junit.extensions.TestSetup#setUp()
+ */
+ @Override
+ protected void setUp() throws Exception {
+ //added by Maksim Areshkau, Fix for https://jira.jboss.org/jira/browse/JBIDE-5820 https://jira.jboss.org/jira/browse/JBIDE-5821
+ //remove this code when we will move on wtp 3.2
+ IViewReference[] iviewReferences= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getViewReferences();
+ for (IViewReference iViewReference : iviewReferences) {
+ if(VpeTestSetup.CONTENT_OUTLINE_VIEW_ID.equalsIgnoreCase(iViewReference.getId())){
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().hideView(iViewReference);
+ }
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see junit.extensions.TestSetup#tearDown()
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ //ProjectsLoader.removeAllProjects();
+ }
+}
Modified: trunk/vpe/plugins/pom.xml
===================================================================
--- trunk/vpe/plugins/pom.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/plugins/pom.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -14,6 +14,7 @@
<packaging>pom</packaging>
<modules>
<module>org.jboss.tools.vpe</module>
+ <module>org.jboss.tools.vpe.base.test</module>
<module>org.jboss.tools.vpe.docbook</module>
<module>org.jboss.tools.vpe.html</module>
<module>org.jboss.tools.vpe.jsp</module>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,7 +17,7 @@
org.jboss.tools.common.model,
org.jboss.tools.vpe.xulrunner,
org.mozilla.xpcom,
- org.jboss.tools.vpe.ui.test,
+ org.jboss.tools.vpe.base.test,
org.jboss.tools.vpe.html
Bundle-ActivationPolicy: lazy
Bundle-Vendor: %Bundle-Vendor.0
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
description="Tests for Html templates"
name="Tests for Html templates"
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -13,8 +13,8 @@
import junit.framework.Test;
import junit.framework.TestSuite;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
import org.jboss.tools.vpe.html.test.jbide.JBIDE3280Test;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
/**
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.vpe.html.test;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* Class for testing all jsf components
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/HtmlComponentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,8 +11,8 @@
package org.jboss.tools.vpe.html.test;
import org.eclipse.core.resources.IFile;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
* Class for testing all html components
Modified: trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/jbide/JBIDE3280Test.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/jbide/JBIDE3280Test.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.html.test/src/org/jboss/tools/vpe/html/test/jbide/JBIDE3280Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -17,12 +17,12 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.vpe.VpeDebug;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.mozilla.MozillaEditor;
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.html.test.HtmlAllTests;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.xulrunner.util.DOMTreeDumper;
import org.mozilla.interfaces.nsIDOMDocument;
Modified: trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,11 +11,11 @@
org.eclipse.core.resources,
org.eclipse.ui.ide,
org.jboss.tools.common,
- org.jboss.tools.vpe.ui.test,
org.jboss.tools.jst.jsp,
org.jboss.tools.vpe.xulrunner,
org.mozilla.xpcom,
- org.jboss.tools.vpe.jsp
+ org.jboss.tools.vpe.jsp,
+ org.jboss.tools.vpe.base.test;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.vpe.jsp.test
Bundle-Vendor: %Bundle-Vendor.0
Modified: trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
description="JSP Tests"
name="JSP Tests"
Modified: trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.vpe.jsp.test;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
Modified: trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.jsp.test/src/org/jboss/tools/vpe/jsp/test/JSPComponentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,8 +11,8 @@
package org.jboss.tools.vpe.jsp.test;
import org.eclipse.core.resources.IFile;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
/**
*
Modified: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -6,14 +6,14 @@
Bundle-Activator: org.jboss.tools.vpe.spring.test.SpringTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
- org.jboss.tools.vpe.ui.test,
org.jboss.tools.common.text.ext,
org.jboss.tools.common.model,
org.jboss.tools.vpe.xulrunner,
org.junit,
org.jboss.tools.vpe.spring;bundle-version="3.1.0",
org.jboss.tools.vpe.jsp;bundle-version="3.1.0",
- org.jboss.tools.vpe.html;bundle-version="3.1.0"
+ org.jboss.tools.vpe.html;bundle-version="3.1.0",
+ org.jboss.tools.vpe.base.test;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.vpe.spring.test
Bundle-Vendor: %Bundle-Vendor.0
Modified: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.3"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
description="Unit tests for Spring support in VPE"
name="Spring Tests"
Modified: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringAllTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.vpe.spring.test;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
import junit.framework.Test;
import junit.framework.TestSuite;
Modified: trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringComponentContentTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringComponentContentTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.spring.test/src/org/jboss/tools/vpe/spring/test/SpringComponentContentTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -10,7 +10,7 @@
******************************************************************************/
package org.jboss.tools.vpe.spring.test;
-import org.jboss.tools.vpe.ui.test.ComponentContentTest;
+import org.jboss.tools.vpe.base.test.ComponentContentTest;
/**
* Tests for the context that was generated by Spring templates
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,7 +11,7 @@
org.jboss.tools.vpe,
org.jboss.tools.common.model.ui;bundle-version="2.0.0",
org.eclipse.jface.text;bundle-version="3.4.0",
- org.jboss.tools.vpe.ui.test;bundle-version="1.0.0"
+ org.jboss.tools.vpe.base.test;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.vpe.editor.template,
org.jboss.tools.vpe.test
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -2,7 +2,7 @@
<?eclipse version="3.4"?>
<plugin>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
testSuite="org.jboss.tools.vpe.test.VpeAllTests">
</tests>
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/VpeAllTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -14,8 +14,8 @@
import junit.framework.TestCase;
import junit.framework.TestSuite;
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
import org.jboss.tools.vpe.editor.template.VpeTemplateManagerTest;
-import org.jboss.tools.vpe.ui.test.VpeTestSetup;
/**
* Class created for run tests for org.jboss.tools.vpe plugin.
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/META-INF/MANIFEST.MF 2010-11-30 01:19:37 UTC (rev 27014)
@@ -21,7 +21,8 @@
org.jboss.tools.vpe.ui.palette;visibility:=reexport,
org.jboss.tools.vpe.resref,
javax.servlet;bundle-version="2.5.0",
- org.eclipse.wst.xml.xpath.core
+ org.eclipse.wst.xml.xpath.core,
+ org.jboss.tools.vpe.base.test;bundle-version="1.0.0"
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .,
lib/jmock-2.5.1/jmock-2.5.1.jar,
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/plugin.xml 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/plugin.xml 2010-11-30 01:19:37 UTC (rev 27014)
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
- <extension-point id="org.jboss.tools.vpe.ui.tests" name="Visual Page Editor Junit Test" schema="schema/vpe.tests.exsd"/>
<extension
- point="org.jboss.tools.vpe.ui.tests">
+ point="org.jboss.tools.vpe.ui.test">
<tests
description="UI tests of VPE components"
name="UI tests of VPE"
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/editor/menu/VpePopupMenuTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/editor/menu/VpePopupMenuTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/editor/menu/VpePopupMenuTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -27,13 +27,13 @@
import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.jsp.messages.JstUIMessages;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.VpeEditorPart;
import org.jboss.tools.vpe.editor.mozilla.MozillaEditor;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
import org.jboss.tools.vpe.messages.VpeUIMessages;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.ui.test.VpeUiTests;
import org.w3c.dom.Node;
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeUiTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeUiTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeUiTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -12,6 +12,8 @@
import junit.framework.Test;
import junit.framework.TestSuite;
+
+import org.jboss.tools.vpe.base.test.VpeTestSetup;
import org.jboss.tools.vpe.ui.test.dialog.VpeEditAnyDialogTest;
import org.jboss.tools.vpe.ui.test.dialog.VpeResourcesDialogTest;
import org.jboss.tools.vpe.ui.test.editor.CustomSashFormTest;
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/dialog/VpeEditAnyDialogTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/dialog/VpeEditAnyDialogTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/dialog/VpeEditAnyDialogTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -11,11 +11,11 @@
import org.eclipse.jface.window.Window;
import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.template.VpeAnyData;
import org.jboss.tools.vpe.editor.template.VpeEditAnyDialog;
import org.jboss.tools.vpe.editor.template.VpeTemplateManager;
import org.jboss.tools.vpe.editor.util.Constants;
-import org.jboss.tools.vpe.ui.test.VpeTest;
public class VpeEditAnyDialogTest extends VpeTest {
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/dialog/VpeResourcesDialogTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/dialog/VpeResourcesDialogTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/dialog/VpeResourcesDialogTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -12,9 +12,9 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.jface.window.Window;
import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.resref.core.VpeResourcesDialog;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.ui.test.VpeUiTests;
public class VpeResourcesDialogTest extends VpeTest {
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/CustomSashFormTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/CustomSashFormTest.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/CustomSashFormTest.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -7,9 +7,9 @@
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.jst.jsp.editor.IVisualEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeEditorPart;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.ui.test.VpeUiTests;
public class CustomSashFormTest extends VpeTest {
Copied: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/DnD_JBIDE5042_JBIDE6229_Test.java (from rev 27008, trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/DnD_JBIDE5042_JBIDE6229_Test.java)
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/DnD_JBIDE5042_JBIDE6229_Test.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/DnD_JBIDE5042_JBIDE6229_Test.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -0,0 +1,245 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.test.editor;
+
+import java.io.IOException;
+import java.lang.reflect.Field;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
+import org.jboss.tools.vpe.dnd.VpeDnD;
+import org.jboss.tools.vpe.editor.VpeController;
+import org.jboss.tools.vpe.editor.VpeEditorPart;
+import org.jboss.tools.vpe.editor.mozilla.MozillaEditor;
+import org.jboss.tools.vpe.editor.mozilla.MozillaEventAdapter;
+import org.jmock.Expectations;
+import org.jmock.Mockery;
+import org.jmock.api.Invocation;
+import org.jmock.lib.action.CustomAction;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMEventTarget;
+import org.mozilla.interfaces.nsIDOMMouseEvent;
+import org.mozilla.interfaces.nsIDOMNSUIEvent;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDragService;
+import org.mozilla.interfaces.nsIDragSession;
+import org.mozilla.interfaces.nsIScriptableRegion;
+import org.mozilla.interfaces.nsISupportsArray;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+
+/**
+ * Tests Drag&Drop functionality of the VPE.
+ *
+ * @see JIRA Issue JBIDE-5042 ( https://jira.jboss.org/jira/browse/JBIDE-5042 ):
+ * "Enhance DnD support in VPE"
+ * @see JIRA Issue JBIDE-6439 ( https://jira.jboss.org/jira/browse/JBIDE-6439 ):
+ * "Refactor and partially reimpement VpeDnD class"
+ *
+ * @deprecated This test is obsolete. These jMock tests for D&D require too
+ * many efforts and changes in non-test plug-ins to be in actual state.
+ *
+ * @author yradtsevich
+ */
+@SuppressWarnings("nls")
+public class DnD_JBIDE5042_JBIDE6229_Test extends VpeTest {
+ private static final String DROP_CONTAINER_ID = "cell_01";
+ private static final String DRAG_ICON_ID = "dragIcon";
+ private static final String DRAGGABLE_BUTTON_ID = "draggableButton";
+ private static final String DRAGGABLE_TEXT_CONTAINER_ID = "draggableTextContainer";
+ private static final String TEST_PAGE_NAME = "JBIDE/5042_6229/JBIDE-5042-6229.html";
+ private static final String DND_TEXT = "Text";
+ private static final Point DRAG_POINT = new Point(0, 0);
+ /**Cells in the table are 100x100px. Thus this point means 'top of the second cell'*/
+ private static final Point DROP_POINT = new Point(150, 10);
+ private Mockery context = new Mockery();
+
+ public DnD_JBIDE5042_JBIDE6229_Test(String name) {
+ super(name);
+ }
+
+ /**
+ * Try to open two pages in VPE and refresh them n times.
+ */
+ public void testElementDnDWithMocks() throws Throwable {
+ setException(null);
+
+ JSPMultiPageEditor editor = openPageInVpe(TEST_PAGE_NAME);
+ final MozillaEditor visualEditor = ((VpeEditorPart) editor.getVisualEditor())
+ .getVisualEditor();
+ VpeController controller = TestUtil.getVpeController(editor);
+ TestUtil.waitForJobs();
+
+ Element draggable = findSourceElementById(controller, DRAGGABLE_BUTTON_ID);
+ IndexedRegion region = (IndexedRegion) draggable;
+ setSelectedRange(controller, region.getStartOffset(),
+ region.getEndOffset() - region.getStartOffset());
+ TestUtil.waitForJobs();
+
+ executeSelectionDragAndDropToSecondCell(visualEditor, controller);
+
+ draggable = findSourceElementById(controller, DRAGGABLE_BUTTON_ID);
+ assertEquals(DROP_CONTAINER_ID, ((Element)draggable.getParentNode()).getAttribute("id"));
+
+ if (getException() != null) {
+ throw getException();
+ }
+ }
+
+ public void testTextDnDWithMocks() throws Throwable {
+ setException(null);
+
+ JSPMultiPageEditor editor = openPageInVpe(TEST_PAGE_NAME);
+ final MozillaEditor visualEditor = ((VpeEditorPart) editor.getVisualEditor())
+ .getVisualEditor();
+ VpeController controller = TestUtil.getVpeController(editor);
+ TestUtil.waitForJobs();
+
+ Element draggableTextContainer = findSourceElementById(controller, DRAGGABLE_TEXT_CONTAINER_ID);
+ Text draggableTextNode = (Text) draggableTextContainer.getChildNodes().item(0);
+ IndexedRegion draggableTextRegion = (IndexedRegion)draggableTextNode;
+ setSelectedRange(controller,
+ draggableTextRegion.getEndOffset() - DND_TEXT.length(), DND_TEXT.length());
+ TestUtil.waitForJobs();
+
+ executeSelectionDragAndDropToSecondCell(visualEditor, controller);
+
+ Element dropContainer = findSourceElementById(controller, DROP_CONTAINER_ID);
+ NodeList dropContainerChildren = dropContainer.getChildNodes();
+ assertTrue(dropContainerChildren.getLength() == 1);
+ assertTrue(dropContainerChildren.item(0) instanceof Text);
+
+ String dropContainerContent = ((Text)dropContainerChildren.item(0)).getNodeValue();
+
+ assertEquals(DND_TEXT + "dddddd", dropContainerContent);
+
+ if (getException() != null) {
+ throw getException();
+ }
+ }
+
+ private void executeSelectionDragAndDropToSecondCell(
+ final MozillaEditor visualEditor, VpeController controller)
+ throws Throwable {
+ final nsIDragService dragService = mock(nsIDragService.class);
+ final nsIDragSession dragSession = mock(nsIDragSession.class);
+ checking(new Expectations() {{
+ allowing(dragService).getCurrentSession(); will(returnValue(dragSession));
+ allowing(dragSession).getSourceDocument(); will(returnValue(visualEditor.getDomDocument()));
+ allowing(dragSession).setCanDrop(with(any(Boolean.TYPE)));
+ }});
+ replaceDragService(controller.getVpeDnD(), dragService);
+
+ final nsIDOMElement dragIcon = controller.getXulRunnerEditor()
+ .getDOMDocument().getElementById(DRAG_ICON_ID);
+
+ final nsIDOMMouseEvent mouseDownEvent = createMockMouseEvent(
+ DRAG_POINT, "mousedown", dragIcon, "mouseDown");
+ final nsIDOMMouseEvent dragOverMouseEvent = createMockMouseEvent(
+ DROP_POINT, "dragover", null, "dragover");
+ final nsIDOMMouseEvent dragDropMouseEvent = createMockMouseEvent(
+ DROP_POINT, "dragdrop", null, "dragdrop");
+
+ final MozillaEventAdapter eventListener = visualEditor.getMozillaEventAdapter();
+ checking(new Expectations() {{
+ allowing(dragService).invokeDragSession(
+ with(any(nsIDOMNode.class)), with(any(nsISupportsArray.class)),
+ with(any(nsIScriptableRegion.class)), with(any(Long.TYPE)));
+ will(new CustomAction("invokeDragSession") {
+ public Object invoke(Invocation invocation) throws Throwable {
+ eventListener.handleEvent(dragOverMouseEvent);
+ TestUtil.waitForJobs();
+ eventListener.handleEvent(dragDropMouseEvent);
+ TestUtil.waitForJobs();
+ return null;
+ }
+ });
+ }});
+
+ eventListener.handleEvent(mouseDownEvent);
+ TestUtil.waitForJobs();
+ TestUtil.delay(100);
+ TestUtil.waitForJobs();
+ }
+
+ private nsIDOMMouseEvent createMockMouseEvent(final Point mousePos,
+ final String type, final nsIDOMElement targetElement, String name) {
+ final nsIDOMMouseEvent mouseEvent = mock(nsIDOMMouseEvent.class, name + "_nsIDOMMouseEvent");
+ final nsIDOMEventTarget mouseEventTarget = mock(nsIDOMEventTarget.class, name + "_nsIDOMEventTarget");
+ final nsIDOMNSUIEvent mouseNsUIEvent = mock(nsIDOMNSUIEvent.class, name + "_nsIDOMNSUIEvent");
+
+ checking(new Expectations() {{
+ allowing(mouseEvent).getType(); will(returnValue(type));
+ allowing(mouseEvent).getButton(); will(returnValue(VpeController.LEFT_BUTTON));
+ allowing(mouseEvent).getTarget(); will(returnValue(mouseEventTarget));
+ allowing(mouseEvent).queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID); will(returnValue(mouseEvent));
+ allowing(mouseEventTarget).queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID); will(returnValue(targetElement));
+ allowing(mouseEvent).queryInterface(nsIDOMNSUIEvent.NS_IDOMNSUIEVENT_IID); will(returnValue(mouseNsUIEvent));
+ allowing(mouseEvent).getClientX(); will(returnValue(mousePos.x));
+ allowing(mouseEvent).getClientY(); will(returnValue(mousePos.y));
+ allowing(mouseNsUIEvent).getPageX(); will(returnValue(mousePos.x));
+ allowing(mouseNsUIEvent).getPageY(); will(returnValue(mousePos.y));
+ allowing(mouseEvent).stopPropagation();
+ allowing(mouseEvent).preventDefault();
+ }});
+
+ return mouseEvent;
+ }
+
+ private void replaceDragService(VpeDnD vpeDnD, nsIDragService dragService) throws Throwable {
+ Field dragServiceField = vpeDnD.getClass().getDeclaredField("dragService");
+ dragServiceField.setAccessible(true);
+ dragServiceField.set(vpeDnD, dragService);
+ }
+
+ private JSPMultiPageEditor openPageInVpe(final String pageName) throws CoreException,
+ PartInitException, IOException {
+ IFile elementPageFile = (IFile) TestUtil.getComponentPath(
+ pageName, "jsfTest" /* JsfAllTests.IMPORT_PROJECT_NAME */);
+ IEditorInput input = new FileEditorInput(elementPageFile);
+
+ JSPMultiPageEditor editor = (JSPMultiPageEditor) PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().openEditor(input,
+ EDITOR_ID, true);
+
+ return editor;
+ }
+
+ private void setSelectedRange(VpeController controller, int offset, int length) {
+ controller.getPageContext().getSourceBuilder().getStructuredTextViewer()
+ .setSelectedRange(offset, length);
+ }
+
+ /** @see org.jmock.Mockery#mock(java.lang.Class, java.lang.String) */
+ public <T> T mock(Class<T> typeToMock, String name) {
+ return context.mock(typeToMock, name);
+ }
+
+ /** @see org.jmock.Mockery#mock(java.lang.Class) */
+ public <T> T mock(Class<T> typeToMock) {
+ return context.mock(typeToMock);
+ }
+
+ /** @see org.jmock.Mockery#checking(Expectations) */
+ public void checking(Expectations expectations) {
+ context.checking(expectations);
+ }
+}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/handlers/VpeCommandsTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/handlers/VpeCommandsTests.java 2010-11-29 21:41:18 UTC (rev 27013)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/handlers/VpeCommandsTests.java 2010-11-30 01:19:37 UTC (rev 27014)
@@ -36,6 +36,8 @@
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditorPart;
import org.jboss.tools.jst.jsp.preferences.IVpePreferencesPage;
+import org.jboss.tools.vpe.base.test.TestUtil;
+import org.jboss.tools.vpe.base.test.VpeTest;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.VpeEditorPart;
import org.jboss.tools.vpe.editor.VpeVisualDomBuilder;
@@ -49,8 +51,6 @@
import org.jboss.tools.vpe.handlers.ShowBundleAsELHandler;
import org.jboss.tools.vpe.handlers.ShowNonVisualTagsHandler;
import org.jboss.tools.vpe.handlers.ShowTextFormattingHandler;
-import org.jboss.tools.vpe.ui.test.TestUtil;
-import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.ui.test.VpeUiTests;
/**
14 years, 3 months
JBoss Tools SVN: r27013 - in trunk: documentation/whatsnew/modeshape and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: elvisisking
Date: 2010-11-29 16:41:18 -0500 (Mon, 29 Nov 2010)
New Revision: 27013
Added:
trunk/documentation/whatsnew/modeshape/modeshape-news-3.2.0.beta2.html
Removed:
trunk/documentation/whatsnew/modeshape/modeshape-news-7.1.0.beta2.html
Modified:
trunk/documentation/whatsnew/index.html
trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/docs/images/PublishDialog.png
trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/RestClientI18n.properties
Log:
JBIDE-7660 ModeShape N&N Beta2: Attempt to add clarity to when the words "workspace" and "resource" are being used in the publishing wizard.
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2010-11-29 21:10:36 UTC (rev 27012)
+++ trunk/documentation/whatsnew/index.html 2010-11-29 21:41:18 UTC (rev 27013)
@@ -39,7 +39,7 @@
<p><a href="bpel/bpel-news-1.1.0.beta1.html">BPEL Tools</a></p>
<p><a href="esb/esb-news-1.4.0.Beta2.html">ESB Tools</a></p>
- <p><a href="modeshape/modeshape-news-7.1.0.Beta2.html">Modeshape</a></p>
+ <p><a href="modeshape/modeshape-news-3.2.0.Beta2.html">Modeshape</a></p>
</td>
</tr>
Copied: trunk/documentation/whatsnew/modeshape/modeshape-news-3.2.0.beta2.html (from rev 27011, trunk/documentation/whatsnew/modeshape/modeshape-news-7.1.0.beta2.html)
===================================================================
--- trunk/documentation/whatsnew/modeshape/modeshape-news-3.2.0.beta2.html (rev 0)
+++ trunk/documentation/whatsnew/modeshape/modeshape-news-3.2.0.beta2.html 2010-11-29 21:41:18 UTC (rev 27013)
@@ -0,0 +1,55 @@
+<?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">
+<head>
+<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>ModeShape What's New</title>
+</head>
+<body>
+<h1>ModeShape 3.2.0 Beta2 What's New</h1>
+<p align="right"><a href="../index.html">< Main Index</a></p>
+<p>Last revised November 29, 2010</p>
+
+<table border="0" cellpadding="10" cellspacing="0" width="80%">
+ <tr><td colspan="2"><hr /></td></tr>
+ <tr>
+ <td valign="top" align="left">
+ <p>
+ <b>Publishing Wizard</b>
+ </p>
+ </td>
+
+ <td valign="top">
+ <p>
+ The publishing wizard now allows you to specify where in the JCR repository your files and folders will be published. When
+ you publish to one of these "publish areas", the ModeShape repository will automatically sequence your files to extract
+ useful information and make it available to other repository users. (The kind and structure of information extracted
+ depends upon the type of file and the configuration of the ModeShape repository.)
+ </p>
+ <p>
+ The actual location where the files will be published is constructed by appending the server URL, the names of the JCR
+ repository and workspace, the path to the publish area, and the path of the files and folders within your Eclipse workspace.
+ </p>
+
+ <p>
+ Here is what the ModeShape publishing wizard looks like:
+ </p>
+
+ <p>
+ <img src="images/PublishDialog-3.2.0.beta2.png" alt="ModeShape Publishing Wizard"/>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><hr /></td>
+ </tr>
+</table>
+
+</body>
+
+</html>
+
+
Property changes on: trunk/documentation/whatsnew/modeshape/modeshape-news-3.2.0.beta2.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: trunk/documentation/whatsnew/modeshape/modeshape-news-7.1.0.beta2.html
===================================================================
--- trunk/documentation/whatsnew/modeshape/modeshape-news-7.1.0.beta2.html 2010-11-29 21:10:36 UTC (rev 27012)
+++ trunk/documentation/whatsnew/modeshape/modeshape-news-7.1.0.beta2.html 2010-11-29 21:41:18 UTC (rev 27013)
@@ -1,53 +0,0 @@
-<?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">
-<head>
-<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>ModeShape What's New</title>
-</head>
-<body>
-<h1>ModeShape 7.1.0 Beta2 What's New</h1>
-<p align="right"><a href="../index.html">< Main Index</a></p>
-<p>Last revised November 24, 2010</p>
-
-<table border="0" cellpadding="10" cellspacing="0" width="80%">
- <tr><td colspan="2"><hr /></td></tr>
- <tr>
- <td valign="top" align="left">
- <p>
- <b>Publishing Wizard</b>
- </p>
- </td>
-
- <td valign="top">
- <p>
- The publishing wizard now allows you to optionally enter a repository workspace area. A workspace area is a known
- repository location that is being monitored by the ModeShape service responsible for sequencing files. A file published
- to a workspace area will get sequenced as long as there is a sequencer operating on their file type.
- </p>
- <p>The workspace area path is appended to the server URL to determine the root location the wizard uses to publish and
- unpublish files. A file's project path is appended to the root path to determine its repository location.
- </p>
-
- <p>
- Here is what the ModeShape publishing wizard looks like:
- </p>
-
- <p>
- <img src="images/PublishDialog-7.1.0.beta2.png" alt="ModeShape Publishing Wizard"/>
- </p>
- </td>
- </tr>
- <tr>
- <td colspan="2"><hr /></td>
- </tr>
-</table>
-
-</body>
-
-</html>
-
-
Modified: trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/docs/images/PublishDialog.png
===================================================================
(Binary files differ)
Modified: trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/RestClientI18n.properties
===================================================================
--- trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/RestClientI18n.properties 2010-11-29 21:10:36 UTC (rev 27012)
+++ trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/RestClientI18n.properties 2010-11-29 21:41:18 UTC (rev 27013)
@@ -91,7 +91,7 @@
publishJobUnpublishName = ModeShape Unpublish [{0}]
publishJobUnpublishTaskName = Unpublishing resources [{0}]
-publishPagePublishTitle = Publish the selected resources
+publishPagePublishTitle = Publish the selected files and folders
publishPageLocationGroupTitle = Location
publishPageMissingRepositoryStatusMsg = A repository must be selected
publishPageMissingServerStatusMsg = A server must be selected
@@ -99,32 +99,32 @@
publishPageNewServerButton = New...
publishPageNoAvailableRepositoriesStatusMsg = There are no repositories available on that server
publishPageNoAvailableServersStatusMsg = A server must be created first
-publishPageNoAvailableWorkspacesStatusMsg = There are no workspaces available on that server and repository
+publishPageNoAvailableWorkspacesStatusMsg = There are no JCR workspaces available on that server and repository
publishPageNoResourcesToPublishStatusMsg = There are no files that can be published
publishPageNoResourcesToUnpublishStatusMsg = There are no files that can be unpublished
-publishPagePublishOkStatusMsg = Choose the server, repository, and workspace where the resources will be published. Click "Finish" to execute the publish operation.
-publishPagePublishResourcesLabel = These resources will be uploaded to the above specified ModeShape workspace:
+publishPagePublishOkStatusMsg = Choose the location of the JCR repository where your local files and folders will be published, and then click "Finish".
+publishPagePublishResourcesLabel = These files were selected and will be published:
publishPageRecurseCheckBox = Recurse folders and projects
publishPageRecurseCheckBoxToolTip = Add all files under folders recursively under selected projects and folders
publishPageRecurseProcessingErrorMsg = Unexpected error processing resources. See log for more details.
-publishPageRepositoryLabel = Repository:
-publishPageRepositoryToolTip = The repository where the workspace is located
+publishPageRepositoryLabel = JCR Repository:
+publishPageRepositoryToolTip = The JCR repository where the JCR workspace is located
publishPageServerLabel = Server:
-publishPageServerToolTip = The server where the repository is located
-publishPageUnpublishOkStatusMsg = Choose the server, repository, and workspace where the resources will be unpublished. Click "Finish" to execute the unpublish operation.
-publishPageUnpublishResourcesLabel = These resources will be removed from the above specified ModeShape workspace:
-publishPageUnpublishTitle = Unpublish the selected resources
-publishPageWorkspaceLabel = Workspace:
-publishPageWorkspacePublishToolTip = The workspace where the resources are being published
-publishPageWorkspaceUnpublishToolTip = The workspace where the resources are being unpublished
-publishPageWorkspaceAreaLabel = Workspace Area:
-publishPageWorkspaceAreaToolTip = Enter a ModeShape workspace path segment to prepend to each resource project path
+publishPageServerToolTip = The server where the JCR repository is located
+publishPageUnpublishOkStatusMsg = Choose the location of the JCR repository where the files will be unpublished, and then click "Finish".
+publishPageUnpublishResourcesLabel = These files were selected and will be unpublished:
+publishPageUnpublishTitle = Unpublish the selected files
+publishPageWorkspaceLabel = JCR Workspace:
+publishPageWorkspacePublishToolTip = The JCR workspace where the files are being published
+publishPageWorkspaceUnpublishToolTip = The JCR workspace where the files are being unpublished
+publishPageWorkspaceAreaLabel = Publish Area:
+publishPageWorkspaceAreaToolTip = The publish area within the JCR workspace where files will be published or unpublished
publishPageFinishedErrorMsg = Unexpected error in PublishPage after successfully finishing the publishing wizard.
publishWizardPublishErrorMsg = Error Publishing
-publishWizardPublishTitle = Publish
+publishWizardPublishTitle = Publish to ModeShape
publishWizardUnpublishErrorMsg = Error Unpublishing
-publishWizardUnpublishTitle = Unpublish
+publishWizardUnpublishTitle = Unpublish from ModeShape
reconnectJobTaskName = Connecting to server "{0}"
14 years, 3 months
JBoss Tools SVN: r27012 - trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-11-29 16:10:36 -0500 (Mon, 29 Nov 2010)
New Revision: 27012
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences/RuntimePreferencePage.java
Log:
JBIDE-7689 Remove Export/Import actions from JBoss Tools Runtimes preference page
Modified: trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences/RuntimePreferencePage.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences/RuntimePreferencePage.java 2010-11-29 18:48:17 UTC (rev 27011)
+++ trunk/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/preferences/RuntimePreferencePage.java 2010-11-29 21:10:36 UTC (rev 27012)
@@ -100,7 +100,7 @@
new Label(composite, SWT.NONE);
Label searchLabel = new Label(composite, SWT.NONE);
- searchLabel.setText("JBoss AS, Seam, JBPM and Drools Runtimes wiil be configured based on the entered path.\nYou can also export/import configured JBoss runtimes.");
+ searchLabel.setText("JBoss AS, Seam, JBPM and Drools Runtimes will be configured based on the entered path.");
Group runtimeGroup = new Group(composite, SWT.NONE);
layout = new GridLayout(1, false);
14 years, 3 months
JBoss Tools SVN: r27011 - trunk/documentation/whatsnew/drools.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2010-11-29 13:48:17 -0500 (Mon, 29 Nov 2010)
New Revision: 27011
Modified:
trunk/documentation/whatsnew/drools/guvnor-tools-news-5.1.0.Beta2.html
Log:
JBIDE-7662 - one more typo fix
Modified: trunk/documentation/whatsnew/drools/guvnor-tools-news-5.1.0.Beta2.html
===================================================================
--- trunk/documentation/whatsnew/drools/guvnor-tools-news-5.1.0.Beta2.html 2010-11-29 18:13:57 UTC (rev 27010)
+++ trunk/documentation/whatsnew/drools/guvnor-tools-news-5.1.0.Beta2.html 2010-11-29 18:48:17 UTC (rev 27011)
@@ -51,7 +51,7 @@
<td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Not Allowed to Add Resources without File Extension</b></td>
<td valign="top">
<p>Because Guvnor server uses the file extension to determine the
- resource type of a particular resource, there was a problem for
+ resource type of a particular resource, There was a problem for
files with no file extension. Now we validate and present an error
if user attempts to add a resource without a file extension.</p>
<p><small><a href="https://jira.jboss.org/browse/JBIDE-7032">Related jira</a></p>
14 years, 3 months
JBoss Tools SVN: r27010 - trunk/documentation/whatsnew/drools.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2010-11-29 13:13:57 -0500 (Mon, 29 Nov 2010)
New Revision: 27010
Modified:
trunk/documentation/whatsnew/drools/guvnor-tools-news-5.1.0.Beta2.html
Log:
JBIDE-7662 - updated the grammar/language for the beta2 guvnor tools N&N file
Modified: trunk/documentation/whatsnew/drools/guvnor-tools-news-5.1.0.Beta2.html
===================================================================
--- trunk/documentation/whatsnew/drools/guvnor-tools-news-5.1.0.Beta2.html 2010-11-29 18:13:51 UTC (rev 27009)
+++ trunk/documentation/whatsnew/drools/guvnor-tools-news-5.1.0.Beta2.html 2010-11-29 18:13:57 UTC (rev 27010)
@@ -53,7 +53,7 @@
<p>Because Guvnor server uses the file extension to determine the
resource type of a particular resource, there was a problem for
files with no file extension. Now we validate and present an error
- if user is attemptin to add a resource without a file extension.</p>
+ if user attempts to add a resource without a file extension.</p>
<p><small><a href="https://jira.jboss.org/browse/JBIDE-7032">Related jira</a></p>
</td>
</tr>
@@ -66,9 +66,9 @@
</tr>
<tr>
- <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Not Allowed to Upload Two Resource with Same Name but a Different Extension</b></td>
+ <td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>Not Allowed to Upload Two Resources with Same Name but a Different Extension</b></td>
<td valign="top">
- <p>Guvnor server uses the resource name to identify a resource. So previously if there were two resources with the same file name but different extensions, it was confused and considered them to be the same resource. Now we validate and don't allow you to upload two resources with the same file name but different extensions.</p>
+ <p>Guvnor server uses the resource name to identify a resource. So previously if there were two resources with the same file name but different extensions, it was confused and Guvnor considered them to be the same resource. Now we validate and don't allow uploading two resources with the same file name but different extensions.</p>
<p><small><a href="https://jira.jboss.org/browse/JBIDE-7032">Related jira</a></p>
</td>
</tr>
14 years, 3 months
JBoss Tools SVN: r27009 - trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2010-11-29 13:13:51 -0500 (Mon, 29 Nov 2010)
New Revision: 27009
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java
Log:
Long running task detected message now is accompanied with list of running jobs
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java 2010-11-29 17:53:00 UTC (rev 27008)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/TestUtil.java 2010-11-29 18:13:51 UTC (rev 27009)
@@ -186,8 +186,15 @@
long start = System.currentTimeMillis();
while (!Job.getJobManager().isIdle()) {
delay(500);
- if ( (System.currentTimeMillis()-start) > maxIdle )
- throw new RuntimeException("A long running task detected"); //$NON-NLS-1$
+ if ( (System.currentTimeMillis()-start) > maxIdle ) {
+ Job[] jobs = Job.getJobManager().find(null);
+ StringBuffer jobsList = new StringBuffer("A long running task detected\n");
+
+ for (Job job : jobs) {
+ jobsList.append(job.getName()).append("\n");
+ }
+ throw new RuntimeException(jobsList.toString()); //$NON-NLS-1$
+ }
}
}
14 years, 3 months