JBoss Tools SVN: r26216 - trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-03 07:04:00 -0400 (Wed, 03 Nov 2010)
New Revision: 26216
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpRemotePropertiesProvider.java
Log:
[JBIDE-7474] missing message format parameter {1} added, corrected message reported on exceptions
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-03 10:57:07 UTC (rev 26215)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpRemotePropertiesProvider.java 2010-11-03 11:04:00 UTC (rev 26216)
@@ -95,14 +95,14 @@
} else {
IStatus status = StatusUtils.getErrorStatus(
plugin.getBundle().getSymbolicName()
- , HttpMessages.HttpGetMethod_Error_Http, null, url);
+ , HttpMessages.HttpGetMethod_Error_Http, null, url, responseCode);
plugin.getLog().log(status);
}
return responseReader;
} catch (IOException e) {
IStatus status = StatusUtils.getErrorStatus(
plugin.getBundle().getSymbolicName()
- , HttpMessages.HttpGetMethod_Error_Http, e, url);
+ , HttpMessages.HttpGetMethod_Error_Io, e, url, e.getMessage());
plugin.getLog().log(status);
throw e;
}
15 years, 5 months
JBoss Tools SVN: r26215 - trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-03 06:57:07 -0400 (Wed, 03 Nov 2010)
New Revision: 26215
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpGetRequest.java
Log:
[JBIDE-7474] missing message format parameter {1} added
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-03 10:03:35 UTC (rev 26214)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/http/HttpGetRequest.java 2010-11-03 10:57:07 UTC (rev 26215)
@@ -55,7 +55,7 @@
if (responseCode == HttpURLConnection.HTTP_OK) {
loggingAdapter.debug(MessageFormat.format(HttpMessages.HttpGetMethod_Success, urlString, responseCode));
} else {
- loggingAdapter.error(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Http, urlString));
+ loggingAdapter.error(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Http, urlString, responseCode));
}
} catch (Exception e) {
loggingAdapter.debug(MessageFormat.format(HttpMessages.HttpGetMethod_Error_Io, urlString, e.toString()));
15 years, 5 months
JBoss Tools SVN: r26214 - in trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage: tracker/internal and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-11-03 06:03:35 -0400 (Wed, 03 Nov 2010)
New Revision: 26214
Modified:
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/GoogleAnalyticsUrlStrategy.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/FocusPoint.java
trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/Tracker.java
Log:
[JBIDE-7410] corrected licence headers to ASF and made sure to mention original author
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/GoogleAnalyticsUrlStrategy.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/GoogleAnalyticsUrlStrategy.java 2010-11-03 10:02:46 UTC (rev 26213)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/googleanalytics/GoogleAnalyticsUrlStrategy.java 2010-11-03 10:03:35 UTC (rev 26214)
@@ -1,13 +1,20 @@
/*******************************************************************************
- * Copyright (c) 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
******************************************************************************/
+
package org.jboss.tools.usage.googleanalytics;
import java.io.UnsupportedEncodingException;
@@ -20,7 +27,9 @@
* Class that builds an URL that passes given parameters to google analytics
*
* @author Andre Dietisheim
- *
+ * @author Siddique Hameed
+ * @see based on <a href="http://jgoogleAnalytics.googlecode.com">http://jgoogleAnalytics.googlecode.com</a>
+ *
* @see <a
* href="http://code.google.com/apis/analytics/docs/tracking/gaTrackingTroubleshoo...">GIF
* Request Parameters</a>
Modified: trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/FocusPoint.java
===================================================================
--- trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/FocusPoint.java 2010-11-03 10:02:46 UTC (rev 26213)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/FocusPoint.java 2010-11-03 10:03:35 UTC (rev 26214)
@@ -1,23 +1,32 @@
/*******************************************************************************
- * Copyright (c) 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
******************************************************************************/
+
package org.jboss.tools.usage.tracker.internal;
import org.jboss.tools.usage.tracker.IFocusPoint;
import org.jboss.tools.usage.util.HttpEncodingUtils;
/**
- * Focus point of the application. It can represent data points like application
- * load, application module load, user actions, error events etc.
+ * Represents a focus in the usage of a application. It can represent
+ * application related events like startup, module load, user actions, error
+ * events etc.
*
* @author Andre Dietisheim
+ * @author Siddique Hameed
* @see based on <a
* href="http://jgoogleAnalytics.googlecode.com">http://jgoogleAnalytics
* .googlecode.com</a>
@@ -33,31 +42,19 @@
this.name = name;
}
- /* (non-Javadoc)
- * @see org.jboss.tools.usage.tracker.internal.IFocusPoint#getName()
- */
public String getName() {
return name;
}
- /* (non-Javadoc)
- * @see org.jboss.tools.usage.tracker.internal.IFocusPoint#setChild(org.jboss.tools.usage.tracker.internal.IFocusPoint)
- */
public IFocusPoint setChild(IFocusPoint childFocusPoint) {
this.childFocusPoint = childFocusPoint;
return this;
}
- /* (non-Javadoc)
- * @see org.jboss.tools.usage.tracker.internal.IFocusPoint#getChild()
- */
public IFocusPoint getChild() {
return childFocusPoint;
}
- /* (non-Javadoc)
- * @see org.jboss.tools.usage.tracker.internal.IFocusPoint#getURI()
- */
public String getURI() {
StringBuilder builder = new StringBuilder();
appendContentURI(builder, this);
@@ -71,7 +68,7 @@
appendContentURI(builder, parentFocuPoint);
}
}
-
+
protected void appendToURI(String toAppend, StringBuilder builder) {
builder.append(URI_SEPARATOR);
builder.append(toAppend);
@@ -81,9 +78,7 @@
builder.append(TITLE_SEPARATOR);
builder.append(toAppend);
}
- /* (non-Javadoc)
- * @see org.jboss.tools.usage.tracker.internal.IFocusPoint#getTitle()
- */
+
public String getTitle() {
StringBuilder builder = new StringBuilder();
appendContentTitle(builder, this);
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-03 10:02:46 UTC (rev 26213)
+++ trunk/usage/plugins/org.jboss.tools.usage/src/org/jboss/tools/usage/tracker/internal/Tracker.java 2010-11-03 10:03:35 UTC (rev 26214)
@@ -1,13 +1,20 @@
/*******************************************************************************
- * Copyright (c) 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
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
*
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
******************************************************************************/
+
package org.jboss.tools.usage.tracker.internal;
import java.io.UnsupportedEncodingException;
@@ -23,9 +30,8 @@
* Reports (tracks) usage
*
* @author Andre Dietisheim
- * @see based on <a
- * href="http://jgoogleAnalytics.googlecode.com">http://jgoogleAnalytics
- * .googlecode.com</a>
+ * @author Siddique Hameed
+ * @see based on <a href="http://jgoogleAnalytics.googlecode.com">http://jgoogleAnalytics.googlecode.com</a>
*/
public class Tracker implements ITracker {
15 years, 5 months
JBoss Tools SVN: r26213 - in trunk/jsf: tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dvinnichek
Date: 2010-11-03 06:02:46 -0400 (Wed, 03 Nov 2010)
New Revision: 26213
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/actionListener.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/ajax.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/attachQueue.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/param.xhtml
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java
Log:
added templates for ajax4jsf (https://jira.jboss.org/browse/JBIDE-7446)
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml 2010-11-03 09:56:54 UTC (rev 26212)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml 2010-11-03 10:02:46 UTC (rev 26213)
@@ -292,4 +292,22 @@
</vpe:template>
</vpe:if>
</vpe:tag>
+
+ <!-- Since RichFaces 4.0 -->
+ <vpe:tag name="a4j:actionListener" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ </vpe:template>
+ </vpe:tag>
+ <vpe:tag name="a4j:ajax" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ </vpe:template>
+ </vpe:tag>
+ <vpe:tag name="a4j:attachQueue" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ </vpe:template>
+ </vpe:tag>
+ <vpe:tag name="a4j:param" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ </vpe:template>
+ </vpe:tag>
</vpe:templates>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/actionListener.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/actionListener.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/ajax.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/ajax.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/attachQueue.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/attachQueue.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/param.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/param.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
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-03 09:56:54 UTC (rev 26212)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java 2010-11-03 10:02:46 UTC (rev 26213)
@@ -14,8 +14,6 @@
public class Ajax4JsfComponentContentTest extends ComponentContentTest {
-
-
public Ajax4JsfComponentContentTest(String name) {
super(name);
setCheckWarning(false);
@@ -24,99 +22,115 @@
public void testAjaxListener() throws Throwable {
performInvisibleTagTest("components/ajaxListener.xhtml", "ajaxListener"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void testKeepAlive() throws Throwable {
- performInvisibleTagTest("components/keepAlive.xhtml","keepAlive");//$NON-NLS-1$
+ performInvisibleTagTest("components/keepAlive.xhtml", "keepAlive");//$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void _testActionparam() throws Throwable {
performInvisibleTagTest("components/actionparam.xhtml", "actionparam1"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void testCommandButton() throws Throwable {
performContentTest("components/commandButton.xhtml");//$NON-NLS-1$
}
-
+
public void testCommandLink() throws Throwable {
performContentTest("components/commandLink.xhtml");//$NON-NLS-1$
}
-
+
public void _testForm() throws Throwable {
performContentTest("components/form.xhtml");//$NON-NLS-1$
}
-
+
public void testHtmlCommandLink() throws Throwable {
performContentTest("components/htmlCommandLink.xhtml");//$NON-NLS-1$
}
-
+
public void testJsFunction() throws Throwable {
performInvisibleTagTest("components/jsFunction.xhtml", "jsFunction"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void testInclude() throws Throwable {
performContentTest("components/include.xhtml");//$NON-NLS-1$
}
-
+
public void testLoadBundle() throws Throwable {
performInvisibleTagTest("components/loadBundle.xhtml", "loadBundle"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void testLoadScript() throws Throwable {
performInvisibleTagTest("components/loadScript.xhtml", "loadScript"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void testLoadStyle() throws Throwable {
performInvisibleTagTest("components/loadStyle.xhtml", "loadStyle"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void testLog() throws Throwable {
performContentTest("components/log.xhtml"); //$NON-NLS-1$
}
-
+
public void testMediaOutput() throws Throwable {
performContentTest("components/mediaOutput.xhtml");//$NON-NLS-1$
}
-
+
public void testOutputPanel() throws Throwable {
}
-
+
public void _testPage() throws Throwable {
performContentTest("components/page/page.xhtml");//$NON-NLS-1$
}
-
+
public void testPoll() throws Throwable {
performInvisibleTagTest("components/poll.xhtml", "poll"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void testPortlet() throws Throwable {
performContentTest("components/portlet.xhtml");//$NON-NLS-1$
}
-
+
public void testPush() throws Throwable {
performInvisibleTagTest("components/push.xhtml", "push"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void testQueue() throws Throwable {
- performInvisibleTagTest(
- "components/queue.jsp", "a4jQueue"); //$NON-NLS-1$ //$NON-NLS-2$
+ performInvisibleTagTest("components/queue.jsp", "a4jQueue"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void _testRegion() throws Throwable {
performContentTest("components/region.xhtml");//$NON-NLS-1$
}
-
+
public void testRepeat() throws Throwable {
performInvisibleTagTest("components/repeat.xhtml", "repeat"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
public void testStatus() throws Throwable {
performContentTest("components/status.xhtml");//$NON-NLS-1$
}
-
+
public void testSupport() throws Throwable {
performInvisibleTagTest("components/support.xhtml", "support"); //$NON-NLS-1$ //$NON-NLS-2$
}
-
+
+ public void testActionListener() throws Throwable {
+ performInvisibleTagTest(
+ "components/actionListener.xhtml", "actionListener"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testAjax() throws Throwable {
+ performInvisibleTagTest("components/ajax.xhtml", "ajax"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testAttachQueue() throws Throwable {
+ performInvisibleTagTest("components/attachQueue.xhtml", "attachQueue"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testParam() throws Throwable {
+ performInvisibleTagTest("components/param.xhtml", "param"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
protected String getTestProjectName() {
return Ajax4JsfAllTests.IMPORT_PROJECT_NAME;
}
15 years, 5 months
JBoss Tools SVN: r26212 - in trunk/as/plugins: org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2010-11-03 05:56:54 -0400 (Wed, 03 Nov 2010)
New Revision: 26212
Added:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/cdi-api.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/hibernate-jpa-2.0-api.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jaxrpc-api.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-annotations-api_1.1_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-connector-api_1.5_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-ejb-api_3.1_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-el-api_2.2_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-interceptors-api_1.1_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jacc-api_1.4_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jad-api_1.2_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaspi-api_1.0_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaxb-api_2.2_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaxr-api_1.0_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaxws-api_2.2_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jms-api_1.1_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jsp-api_2.2_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-servlet-api_3.0_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-transaction-api_1.1_spec.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jsr181-api.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/stax-api.jar
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/validation-api.jar
Removed:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-javaee.jar
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/messages.properties
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/plugin.xml
Log:
JBIDE-6198 - javaee jars
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/cdi-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/cdi-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/hibernate-jpa-2.0-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/hibernate-jpa-2.0-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jaxrpc-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jaxrpc-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-annotations-api_1.1_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-annotations-api_1.1_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-connector-api_1.5_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-connector-api_1.5_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-ejb-api_3.1_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-ejb-api_3.1_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-el-api_2.2_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-el-api_2.2_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-interceptors-api_1.1_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-interceptors-api_1.1_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jacc-api_1.4_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jacc-api_1.4_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jad-api_1.2_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jad-api_1.2_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaspi-api_1.0_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaspi-api_1.0_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-javaee.jar
===================================================================
(Binary files differ)
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaxb-api_2.2_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaxb-api_2.2_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaxr-api_1.0_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaxr-api_1.0_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaxws-api_2.2_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jaxws-api_2.2_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jms-api_1.1_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jms-api_1.1_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jsp-api_2.2_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-jsp-api_2.2_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-servlet-api_3.0_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-servlet-api_3.0_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-transaction-api_1.1_spec.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jboss-transaction-api_1.1_spec.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jsr181-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/jsr181-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/stax-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/stax-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/validation-api.jar
===================================================================
(Binary files differ)
Property changes on: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/lib/javaee-5.0/validation-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/messages.properties
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/messages.properties 2010-11-03 09:41:38 UTC (rev 26211)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/messages.properties 2010-11-03 09:56:54 UTC (rev 26212)
@@ -7,7 +7,7 @@
EJB3ClasspathContainer_ejb30_description=JBoss EJB 3.x Libraries
J2EE13ClasspathContainerInitializer_description=J2EE 1.3 Libraries (JBoss Tools)
J2EE14ClasspathContainerInitializer_description=J2EE 1.4 Libraries (JBoss Tools)
-J2EE50ClasspathContainerInitializer_description=J2EE 5.0 Libraries (JBoss Tools)
+J2EE50ClasspathContainerInitializer_description=Java EE 5 libraries (JBoss Tools)
ProjectRuntimeClasspathProvider_all_jboss_libraries_description=All JBoss Libraries [{0}]
ProjectRuntimeClasspathProvider_runtime_does_not_exist=Runtime {0} does not exist. This classpath container cannot be initialized.
WebtoolsProjectJBossClasspathContainerInitializer_jboss_runtimes=JBoss Runtimes
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/plugin.xml
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/plugin.xml 2010-11-03 09:41:38 UTC (rev 26211)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.ui/plugin.xml 2010-11-03 09:56:54 UTC (rev 26212)
@@ -29,7 +29,7 @@
id="org.jboss.ide.eclipse.as.classpath.core.j2ee-1.4">
</classpathContainerPage>
<classpathContainerPage
- name="JEE 5.0 libraries"
+ name="Java EE 5 libraries"
class="org.jboss.ide.eclipse.as.classpath.ui.jee.JEE50ClasspathContainerPage"
id="org.jboss.ide.eclipse.as.classpath.core.javaee-5.0">
</classpathContainerPage>
15 years, 5 months
JBoss Tools SVN: r26211 - trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/process.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2010-11-03 05:41:38 -0400 (Wed, 03 Nov 2010)
New Revision: 26211
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/process/TaskNodeFigure.java
Log:
JBIDE-7346
Add a rectangle border for the task node figure when it was selected
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/process/TaskNodeFigure.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/process/TaskNodeFigure.java 2010-11-03 09:22:45 UTC (rev 26210)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/process/TaskNodeFigure.java 2010-11-03 09:41:38 UTC (rev 26211)
@@ -72,6 +72,8 @@
private Rectangle imageSourceRectangle = null;
+ private boolean showRectangle = false;
+
public TaskNodeFigure(TaskType task, SmooksProcessGraphicalEditor graph,
Image image, String text) {
super();
@@ -128,6 +130,15 @@
});
}
+ @Override
+ protected void paintBorder(Graphics graphics) {
+// super.paintBorder(graphics);
+ if (showRectangle) {
+ graphics.setLineWidth(2);
+ graphics.drawRectangle(getBounds().x+1,getBounds().y+1,getBounds().width - 2 , getBounds().height - 2);
+ }
+ }
+
protected void initFigure() {
initMainFigure();
initAddTaskFigure();
@@ -166,9 +177,9 @@
// imageSourceRectangle = new Rectangle(rect.x + feet,
// rect.y + feet, rect.width - feet * 2,
// rect.height - feet * 2);
- }else{
- Graph g = processGraphicalViewerEditor.getProcessGraphViewer()
- .getGraphControl();
+ } else {
+ Graph g = processGraphicalViewerEditor
+ .getProcessGraphViewer().getGraphControl();
processGraphicalViewerEditor.setNeedupdatewhenshow(false);
List<?> nodes = g.getNodes();
for (Iterator<?> iterator = nodes.iterator(); iterator
@@ -184,15 +195,17 @@
}
}
}
- List<IAction> actionsList = processGraphicalViewerEditor.getProcessPanelActionList();
+ List<IAction> actionsList = processGraphicalViewerEditor
+ .getProcessPanelActionList();
boolean hideAddIcon = true;
for (IAction iAction : actionsList) {
- if(iAction.isEnabled() && !(iAction instanceof DeleteTaskNodeAction)){
+ if (iAction.isEnabled()
+ && !(iAction instanceof DeleteTaskNodeAction)) {
hideAddIcon = false;
break;
}
}
- if(hideAddIcon){
+ if (hideAddIcon) {
graphics.fillRectangle(rect);
return;
}
@@ -329,13 +342,15 @@
public void highlightLabel(Color highlightColor) {
oldLabelColor = label.getForegroundColor();
label.setForegroundColor(highlightColor);
- label.repaint();
+ showRectangle = true;
+ this.repaint();
}
public void unhighlightLabel() {
if (oldLabelColor != null) {
label.setForegroundColor(oldLabelColor);
- label.repaint();
+ showRectangle = false;
+ this.repaint();
}
}
15 years, 5 months
JBoss Tools SVN: r26210 - trunk/documentation/qa/docs/Test_Cases.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-11-03 05:22:45 -0400 (Wed, 03 Nov 2010)
New Revision: 26210
Modified:
trunk/documentation/qa/docs/Test_Cases/VPEtests.doc
Log:
Added TextEditingActionsTest test to Bot Tests.
Modified: trunk/documentation/qa/docs/Test_Cases/VPEtests.doc
===================================================================
(Binary files differ)
15 years, 5 months
JBoss Tools SVN: r26209 - in trunk: tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-11-03 05:12:36 -0400 (Wed, 03 Nov 2010)
New Revision: 26209
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/TextEditingActionsTest.java
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/KeyboardHelper.java
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/SWTBotEditorExt.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java
Log:
Added TextEditingActionsTest test.
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/KeyboardHelper.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/KeyboardHelper.java 2010-11-03 09:11:09 UTC (rev 26208)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/KeyboardHelper.java 2010-11-03 09:12:36 UTC (rev 26209)
@@ -109,7 +109,11 @@
KeyboardHelper.robot.delay(Timing.time1S());
}
}
-
+ /**
+ * Gets AWT Key Code for specified character ch
+ * @param ch
+ * @return
+ */
public static int getAWTKeyCode (char ch){
int result = KeyEvent.VK_UNDEFINED;
try {
@@ -124,4 +128,27 @@
}
return result;
}
+ /**
+ * Selects text from current cursor position and selectionLength length. Selection direction is specified
+ * by forward parameter
+ * @param forward
+ * @param selectionLength
+ */
+ public static void selectTextUsingAWTKeyBoard (boolean forward , int selectionLength) {
+ int arrowCode = forward ? KeyEvent.VK_RIGHT : KeyEvent.VK_LEFT;
+ for (int index = 0 ; index < selectionLength; index ++){
+ typeKeyCodeUsingAWT(arrowCode,KeyEvent.VK_SHIFT);
+ }
+ }
+ /***
+ * Simulate typing of key with keyCode via AWT repeating numOfRepeats times
+ * @param awtKeyCode
+ * @param numOfRepeats
+ * @param modifiers
+ */
+ public static void typeKeyCodeUsingAWTRepeately (int awtKeyCode , int numOfRepeats, int... modifiers) {
+ for (int index = 0 ; index < numOfRepeats ; index++){
+ KeyboardHelper.typeKeyCodeUsingAWT(awtKeyCode, modifiers);
+ }
+ }
}
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/SWTBotEditorExt.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/SWTBotEditorExt.java 2010-11-03 09:11:09 UTC (rev 26208)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/parts/SWTBotEditorExt.java 2010-11-03 09:12:36 UTC (rev 26209)
@@ -22,6 +22,7 @@
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCTabItem;
import org.eclipse.ui.IEditorReference;
+import org.jboss.tools.ui.bot.ext.Timing;
public class SWTBotEditorExt extends SWTBotEclipseEditor {
@@ -63,6 +64,17 @@
} catch (WidgetNotFoundException wnfe){
// do nothing there is no tabfolder in editor
}
- }
+ }
+ /**
+ * Deselect current selection and set cursor position to specified line and column
+ * @param line
+ * @param column
+ */
+ public void deselectAndSetCursorPosition (int line, int column){
+ selectRange(0, 0, 0);
+ insertText(line, column, "");
+ save();
+ bot.sleep(Timing.time2S());
+ }
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2010-11-03 09:11:09 UTC (rev 26208)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2010-11-03 09:12:36 UTC (rev 26209)
@@ -7,6 +7,7 @@
import org.jboss.tools.vpe.ui.bot.test.editor.BlockCommentTest;
import org.jboss.tools.vpe.ui.bot.test.editor.EditingActionsTest;
import org.jboss.tools.vpe.ui.bot.test.editor.InsertActionsTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.TextEditingActionsTest;
import org.jboss.tools.vpe.ui.bot.test.editor.ToggleCommentTest;
import org.jboss.tools.vpe.ui.bot.test.editor.VerificationOfNameSpacesTest;
import org.jboss.tools.vpe.ui.bot.test.editor.JspFileEditingTest;
@@ -70,7 +71,7 @@
suite.addTestSuite(VisualEditorContextMenuTest.class);
suite.addTestSuite(InsertActionsTest.class);
suite.addTestSuite(EditingActionsTest.class);
-
+ suite.addTestSuite(TextEditingActionsTest.class);
return new TestSetup(suite);
}
}
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/TextEditingActionsTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/TextEditingActionsTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/TextEditingActionsTest.java 2010-11-03 09:12:36 UTC (rev 26209)
@@ -0,0 +1,216 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2010 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor;
+
+import java.awt.event.KeyEvent;
+
+import org.eclipse.swtbot.swt.finder.utils.Position;
+import org.jboss.tools.ui.bot.ext.SWTBotExt;
+import org.jboss.tools.ui.bot.ext.Timing;
+import org.jboss.tools.ui.bot.ext.helper.KeyboardHelper;
+import org.jboss.tools.ui.bot.ext.parts.SWTBotEditorExt;
+import org.jboss.tools.vpe.ui.bot.test.tools.SWTBotWebBrowser;
+import org.mozilla.interfaces.nsIDOMNode;
+/**
+ * Tests JSP file Cut, Copy, Paste actions through Visual Editor Menu for Text selection
+ * @author vlado pakan
+ *
+ */
+public class TextEditingActionsTest extends VPEEditorTestCase {
+
+ private SWTBotExt botExt = null;
+
+ private static final String TEXT_TO_EDIT = "Text to edit";
+
+ private static final String PAGE_TEXT = "<%@ taglib uri=\"http://java.sun.com/jsf/core\" prefix=\"f\"%>\n" +
+ "<%@ taglib uri=\"http://java.sun.com/jsf/html\" prefix=\"h\"%>\n" +
+ "<html>\n" +
+ " <head>\n" +
+ " <title>Input User Name Page</title>\n" +
+ " </head>\n" +
+ " <body>\n" +
+ " <f:view>\n" +
+ " <h:outputText value=\"" + TextEditingActionsTest.TEXT_TO_EDIT + "\"/>\n" +
+ " </f:view>\n" +
+ " </body>\n" +
+ "</html>";
+
+ private static final String TEST_PAGE_NAME = "TextEditingActionsTest.jsp";
+
+ private SWTBotEditorExt jspEditor;
+ private SWTBotWebBrowser webBrowser;
+
+ public TextEditingActionsTest() {
+ super();
+ botExt = new SWTBotExt();
+ }
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ eclipse.maximizeActiveShell();
+ createJspPage(TextEditingActionsTest.TEST_PAGE_NAME);
+ jspEditor = botExt.swtBotEditorExtByTitle(TextEditingActionsTest.TEST_PAGE_NAME);
+ webBrowser = new SWTBotWebBrowser(TextEditingActionsTest.TEST_PAGE_NAME,botExt);
+
+ }
+ /**
+ * Tests Cut Copy Paste Operations on Blank Page
+ */
+ public void testCutCopyPasteBlankPage(){
+
+ jspEditor.setText("");
+ jspEditor.save();
+ bot.sleep(Timing.time3S());
+ jspEditor.setText(TextEditingActionsTest.TEXT_TO_EDIT);
+ jspEditor.save();
+ bot.sleep(Timing.time3S());
+ // Check Copy Functionality
+ String textToCutCopy = TextEditingActionsTest.TEXT_TO_EDIT.substring(0,4);
+ nsIDOMNode node = webBrowser.getDomNodeByTagName("SPAN", 0);
+ webBrowser.selectDomNode(node, 0);
+ jspEditor.deselectAndSetCursorPosition(0, 0);
+ webBrowser.setFocus();
+ KeyboardHelper.selectTextUsingAWTKeyBoard(true,textToCutCopy.length());
+ webBrowser.clickContextMenu(node,
+ SWTBotWebBrowser.COPY_MENU_LABEL);
+ jspEditor.deselectAndSetCursorPosition(0, TextEditingActionsTest.TEXT_TO_EDIT.length());
+ webBrowser.setFocus();
+ webBrowser.clickContextMenu(node,
+ SWTBotWebBrowser.PASTE_MENU_LABEL);
+ jspEditor.save();
+ bot.sleep(Timing.time2S());
+ String textToContain = TextEditingActionsTest.TEXT_TO_EDIT + textToCutCopy;
+ assertSourceEditorContains(jspEditor.getText(),
+ textToContain,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ assertVisualEditorContainsNodeWithValue(webBrowser,
+ textToContain,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ // Check Cut Functionality
+ webBrowser.selectDomNode(node, 0);
+ jspEditor.deselectAndSetCursorPosition(0, 0);
+ webBrowser.setFocus();
+ KeyboardHelper.typeKeyCodeUsingAWTRepeately(KeyEvent.VK_RIGHT, textToContain.length());
+ KeyboardHelper.selectTextUsingAWTKeyBoard(false, textToCutCopy.length());
+ webBrowser.clickContextMenu(node,
+ SWTBotWebBrowser.CUT_MENU_LABEL);
+ jspEditor.save();
+ bot.sleep(Timing.time2S());
+ jspEditor.deselectAndSetCursorPosition(0, 0);
+ assertSourceEditorIs(jspEditor.getText(),
+ TextEditingActionsTest.TEXT_TO_EDIT,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ assertVisualEditorContainsNodeWithValue(webBrowser,
+ TextEditingActionsTest.TEXT_TO_EDIT,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ webBrowser.setFocus();
+ webBrowser.clickContextMenu(node,
+ SWTBotWebBrowser.PASTE_MENU_LABEL);
+ jspEditor.save();
+ bot.sleep(Timing.time2S());
+ textToContain = textToCutCopy + TextEditingActionsTest.TEXT_TO_EDIT;
+ assertSourceEditorContains(jspEditor.getText(),
+ textToContain,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ assertVisualEditorContainsNodeWithValue(webBrowser,
+ textToContain,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ }
+
+ @Override
+ protected void closeUnuseDialogs() {
+
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ return false;
+ }
+ @Override
+ protected void tearDown() throws Exception {
+ jspEditor.close();
+ super.tearDown();
+ }
+ /**
+ * Tests Cut Copy Paste Operations on Value Attribute
+ */
+ public void testCutCopyPasteValueAttribute(){
+
+ jspEditor.setText(TextEditingActionsTest.PAGE_TEXT);
+ jspEditor.save();
+ bot.sleep(Timing.time3S());
+ nsIDOMNode node = webBrowser.getDomNodeByTagName("SPAN", 0);
+ webBrowser.selectDomNode(node, 0);
+ bot.sleep(Timing.time1S());
+ // Check Copy Functionality
+ Position cursorPosition = jspEditor.cursorPosition();
+ jspEditor.deselectAndSetCursorPosition(cursorPosition.line, cursorPosition.column);
+ webBrowser.setFocus();
+ String textToCutCopy = TextEditingActionsTest.TEXT_TO_EDIT.substring(0,4);
+ KeyboardHelper.selectTextUsingAWTKeyBoard(true,textToCutCopy.length());
+ webBrowser.clickContextMenu(node,
+ SWTBotWebBrowser.COPY_MENU_LABEL);
+ webBrowser.setFocus();
+ KeyboardHelper.typeKeyCodeUsingAWTRepeately(KeyEvent.VK_RIGHT,
+ TextEditingActionsTest.TEXT_TO_EDIT.length() - textToCutCopy.length());
+ webBrowser.clickContextMenu(node,
+ SWTBotWebBrowser.PASTE_MENU_LABEL);
+ jspEditor.save();
+ bot.sleep(Timing.time2S());
+ String textToContain = TextEditingActionsTest.TEXT_TO_EDIT + textToCutCopy;
+ assertSourceEditorContains(jspEditor.getText(),
+ textToContain,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ assertVisualEditorContainsNodeWithValue(webBrowser,
+ textToContain,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ // Check Cut Functionality
+ webBrowser.selectDomNode(node, 0);
+ bot.sleep(Timing.time2S());
+ jspEditor.deselectAndSetCursorPosition(cursorPosition.line, cursorPosition.column);
+ webBrowser.setFocus();
+ KeyboardHelper.typeKeyCodeUsingAWTRepeately(KeyEvent.VK_RIGHT, textToContain.length());
+ KeyboardHelper.selectTextUsingAWTKeyBoard(false, textToCutCopy.length());
+ webBrowser.clickContextMenu(node,
+ SWTBotWebBrowser.CUT_MENU_LABEL);
+ jspEditor.save();
+ bot.sleep(Timing.time2S());
+ assertSourceEditorContains(jspEditor.getText(),
+ "\"" + TextEditingActionsTest.TEXT_TO_EDIT + "\"",
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ assertVisualEditorContainsNodeWithValue(webBrowser,
+ TextEditingActionsTest.TEXT_TO_EDIT,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ bot.sleep(Timing.time2S());
+ webBrowser.selectDomNode(node, 0);
+ bot.sleep(Timing.time2S());
+ jspEditor.deselectAndSetCursorPosition(cursorPosition.line, cursorPosition.column);
+ bot.sleep(Timing.time2S());
+ webBrowser.setFocus();
+ bot.sleep(Timing.time2S());
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_RIGHT);
+ bot.sleep(Timing.time2S());
+ KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_LEFT);
+ webBrowser.clickContextMenu(node,
+ SWTBotWebBrowser.PASTE_MENU_LABEL);
+ bot.sleep(Timing.time2S());
+ jspEditor.save();
+ bot.sleep(Timing.time2S());
+ textToContain = textToCutCopy + TextEditingActionsTest.TEXT_TO_EDIT;
+ assertSourceEditorContains(jspEditor.getText(),
+ textToContain,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ assertVisualEditorContainsNodeWithValue(webBrowser,
+ textToContain,
+ TextEditingActionsTest.TEST_PAGE_NAME);
+ }
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/TextEditingActionsTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java 2010-11-03 09:11:09 UTC (rev 26208)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/VPEEditorTestCase.java 2010-11-03 09:12:36 UTC (rev 26209)
@@ -99,11 +99,26 @@
assertTrue("File " + fileName
+ " has to contain string '"
+ textToContain
- + "' but it doesn't.\nIt contains: " + sourceEditorText,
+ + "' but it doesn't.\nIt is: " + sourceEditorText,
sourceEditorText.contains(textToContain));
}
/**
+ * Asserts if sourceEditorText of file with fileName equals to expectedText
+ * @param sourceEditorText
+ * @param expectedText
+ * @param fileName
+ */
+ protected static void assertSourceEditorIs (String sourceEditorText, String expectedText, String fileName){
+
+ assertTrue("File " + fileName
+ + " has to be '"
+ + expectedText
+ + "' but it doesn't.\nIt is: " + sourceEditorText,
+ sourceEditorText.equals(expectedText));
+
+ }
+ /**
* Asserts if Visual Editor contains node with particular attributes
* @param webBrowser
* @param nodeNameToContain
@@ -127,7 +142,7 @@
}
/**
- * Asserts if Visual Editor contains node nodeNameToContain at least numOccurrencies times
+ * Asserts if Visual Editor contains node nodeNameToContain exactly numOccurrencies times
* @param webBrowser
* @param nodeNameToContain
* @param numOccurrences
@@ -147,5 +162,23 @@
webBrowser.getDomNodeOccurenciesByTagName(nodeNameToContain) == numOccurrences);
}
-
+ /**
+ * Asserts if Visual Editor contains node with value valueToContain
+ * @param webBrowser
+ * @param valueToContain
+ * @param fileName
+ */
+ protected static void assertVisualEditorContainsNodeWithValue (SWTBotWebBrowser webBrowser,
+ String valueToContain,
+ String fileName){
+
+ assertTrue("Visual Representation of file " + fileName
+ + " has to contain noide with "
+ + valueToContain
+ + " value but it doesn't",
+ webBrowser.containsNodeWithValue(webBrowser.getMozillaEditor().getDomDocument(),
+ valueToContain));
+
+ }
+
}
15 years, 5 months
JBoss Tools SVN: r26208 - trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-11-03 05:11:09 -0400 (Wed, 03 Nov 2010)
New Revision: 26208
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/EditingActionsTest.java
Log:
Remove Debug Message
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/EditingActionsTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/EditingActionsTest.java 2010-11-03 09:07:52 UTC (rev 26207)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/EditingActionsTest.java 2010-11-03 09:11:09 UTC (rev 26208)
@@ -73,7 +73,6 @@
SWTBotWebBrowser.PASTE_MENU_LABEL);
jspTextEditor.save();
botExt.sleep(Timing.time3S());
-webBrowser.displayWebBrowserDOM();
assertSourceEditorContains(stripHTMLSourceText(jspTextEditor.getText()),
"<h:inputText/><h:inputText/><h:outputTextvalue=\"outputText\"/><h:inputText/>",
EditingActionsTest.TEST_PAGE);
15 years, 5 months
JBoss Tools SVN: r26207 - trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2010-11-03 05:07:52 -0400 (Wed, 03 Nov 2010)
New Revision: 26207
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksProcessGraphicalEditor.java
Log:
JBIDE-7346
done
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksProcessGraphicalEditor.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksProcessGraphicalEditor.java 2010-11-03 08:49:02 UTC (rev 26206)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/graphical/editors/SmooksProcessGraphicalEditor.java 2010-11-03 09:07:52 UTC (rev 26207)
@@ -584,7 +584,7 @@
createTaskDetailsSection(toolkit, sashForm);
- sashForm.setWeights(new int[] { 3, 7 });
+ sashForm.setWeights(new int[] { 2, 8 });
validateEnd(null);
}
15 years, 5 months