JBoss Tools SVN: r21025 - branches/jbosstools-3.1.x/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-03-25 19:06:25 -0400 (Thu, 25 Mar 2010)
New Revision: 21025
Added:
branches/jbosstools-3.1.x/documentation/guides/JBDS_Release_Notes/en-US/Feedback.xml
Log:
added feedback xml
Added: branches/jbosstools-3.1.x/documentation/guides/JBDS_Release_Notes/en-US/Feedback.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/JBDS_Release_Notes/en-US/Feedback.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/JBDS_Release_Notes/en-US/Feedback.xml 2010-03-25 23:06:25 UTC (rev 21025)
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<section id="sect-Beginners_Guide-We_Need_Feedback" lang="en-US">
+ <title>We Need Feedback!</title>
+ <indexterm>
+ <primary>feedback</primary>
+ <secondary>contact information for this manual</secondary>
+ </indexterm>
+ <para>
+ If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a report in JIRA against JBoss Developer Studio: <ulink url="https://jira.jboss.org/jira/secure/CreateIssue.jspa?pid=12310500&issu...">https://jira.jboss.org/jira/secure/CreateIssue.jspa?pid=12310500&issu...</ulink>
+ </para>
+ <para>
+ When submitting a bug report, be sure to mention the manual's name and to select the "documentation" component.
+ </para>
+ <para>
+ If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding text so we can find it easily.
+ </para>
+</section>
+
+
14 years, 9 months
JBoss Tools SVN: r21024 - branches/jbosstools-3.1.x/documentation/guides/GettingStartedGuide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-03-25 19:03:37 -0400 (Thu, 25 Mar 2010)
New Revision: 21024
Added:
branches/jbosstools-3.1.x/documentation/guides/GettingStartedGuide/en-US/Feedback.xml
Log:
added feedback xml
Added: branches/jbosstools-3.1.x/documentation/guides/GettingStartedGuide/en-US/Feedback.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/GettingStartedGuide/en-US/Feedback.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/GettingStartedGuide/en-US/Feedback.xml 2010-03-25 23:03:37 UTC (rev 21024)
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<section id="sect-Beginners_Guide-We_Need_Feedback" lang="en-US">
+ <title>We Need Feedback!</title>
+ <indexterm>
+ <primary>feedback</primary>
+ <secondary>contact information for this manual</secondary>
+ </indexterm>
+ <para>
+ If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a report in JIRA against JBoss Developer Studio: <ulink url="https://jira.jboss.org/jira/secure/CreateIssue.jspa?pid=12310500&issu...">https://jira.jboss.org/jira/secure/CreateIssue.jspa?pid=12310500&issu...</ulink>
+ </para>
+ <para>
+ When submitting a bug report, be sure to mention the manual's name and to select the "documentation" component.
+ </para>
+ <para>
+ If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding text so we can find it easily.
+ </para>
+</section>
+
+
14 years, 9 months
JBoss Tools SVN: r21023 - branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2010-03-25 18:58:06 -0400 (Thu, 25 Mar 2010)
New Revision: 21023
Added:
branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Feedback.xml
Log:
added feedback xml
Added: branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Feedback.xml
===================================================================
--- branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Feedback.xml (rev 0)
+++ branches/jbosstools-3.1.x/documentation/guides/Exadel-migration/en-US/Feedback.xml 2010-03-25 22:58:06 UTC (rev 21023)
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<section id="sect-Beginners_Guide-We_Need_Feedback" lang="en-US">
+ <title>We Need Feedback!</title>
+ <indexterm>
+ <primary>feedback</primary>
+ <secondary>contact information for this manual</secondary>
+ </indexterm>
+ <para>
+ If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a report in JIRA against JBoss Developer Studio: <ulink url="https://jira.jboss.org/jira/secure/CreateIssue.jspa?pid=12310500&issu...">https://jira.jboss.org/jira/secure/CreateIssue.jspa?pid=12310500&issu...</ulink>
+ </para>
+ <para>
+ When submitting a bug report, be sure to mention the manual's name and to select the "documentation" component.
+ </para>
+ <para>
+ If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding text so we can find it easily.
+ </para>
+</section>
+
+
14 years, 9 months
JBoss Tools SVN: r21022 - trunk/jmx/docs/reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2010-03-25 15:04:23 -0400 (Thu, 25 Mar 2010)
New Revision: 21022
Modified:
trunk/jmx/docs/reference/en-US/how_to.xml
trunk/jmx/docs/reference/en-US/tasks.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-1159 - text was updated in the Eclipse Equinox Managing chapter, links were added to the Tomcat Managing chapter
Modified: trunk/jmx/docs/reference/en-US/how_to.xml
===================================================================
--- trunk/jmx/docs/reference/en-US/how_to.xml 2010-03-25 17:02:33 UTC (rev 21021)
+++ trunk/jmx/docs/reference/en-US/how_to.xml 2010-03-25 19:04:23 UTC (rev 21022)
@@ -16,10 +16,11 @@
property <emphasis>
<property>com.sun.management.jmxremote.ssl</property>
</emphasis> is set to false. </para>
- <para>More information to manage Tomcat can be found in Tomcat management
- documentation.</para>
- <para>Instructions to manage remotely Tomcat are available in Tomcat's monitoring
- documentation.</para>
+ <para>More information to manage Tomcat can be found in
+ <ulink url="http://tomcat.apache.org/tomcat-6.0-doc/">
+ Tomcat management</ulink> documentation.</para>
+ <para>Instructions to manage remotely Tomcat are available in
+ <ulink url="http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html.">Tomcat's monitoring</ulink> documentation.</para>
</section>
Modified: trunk/jmx/docs/reference/en-US/tasks.xml
===================================================================
--- trunk/jmx/docs/reference/en-US/tasks.xml 2010-03-25 17:02:33 UTC (rev 21021)
+++ trunk/jmx/docs/reference/en-US/tasks.xml 2010-03-25 19:04:23 UTC (rev 21022)
@@ -42,11 +42,10 @@
property <emphasis>
<property>com.sun.management.jmxremote.ssl</property>
</emphasis> is set to false. </para>
- <para>More information to manage Tomcat can be found in Tomcat management
- documentation.</para>
- <para>Instructions to manage remotely Tomcat are available in Tomcat's monitoring
- documentation.</para>
+ <para>More information to manage Tomcat can be found in <ulink url="http://tomcat.apache.org/tomcat-6.0-doc/">Tomcat management documentation</ulink>.</para>
+ <para>Instructions to manage remotely Tomcat are available in <ulink url="http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html">Tomcat's monitoring documentation</ulink>.</para>
+
</section>
<section>
@@ -62,13 +61,13 @@
</emphasis> and select the <property>JMX perspective</property></para>
</listitem>
- <listitem>
+ <!--<listitem>
<para>Select <emphasis>
<property>JMX Server > Open Connection</property>
</emphasis> and click on <emphasis>
<property>OK</property>
</emphasis></para>
- </listitem>
+ </listitem>-->
<listitem>
<para>Switch to the <property>MBean Explorer</property> by going to <emphasis>
@@ -124,6 +123,8 @@
<listitem>
<para>In the <emphasis>
+ <property>JBoss Enterprise Middleware</property>
+ </emphasis> or in <emphasis>
<property>JBoss Community</property>
</emphasis> section, select a server version</para>
</listitem>
14 years, 9 months
JBoss Tools SVN: r21021 - trunk/ws/docs/reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2010-03-25 13:02:33 -0400 (Thu, 25 Mar 2010)
New Revision: 21021
Modified:
trunk/ws/docs/reference/en-US/client.xml
trunk/ws/docs/reference/en-US/topdown.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-1128 User guide mistakes - fixed
Modified: trunk/ws/docs/reference/en-US/client.xml
===================================================================
--- trunk/ws/docs/reference/en-US/client.xml 2010-03-25 15:10:43 UTC (rev 21020)
+++ trunk/ws/docs/reference/en-US/client.xml 2010-03-25 17:02:33 UTC (rev 21021)
@@ -66,4 +66,8 @@
</listitem>
</itemizedlist>
<para>JBoss WS use a Java class to test Web Service. A client sample class will be generated, you may run this client as a java application to call a web service.</para>
+ <note>
+ <title>Note:</title>
+ <para>To run <property>client sample</property> as a Java application you need a <property>JBoss Runtime</property> in build path. </para>
+ </note>
</chapter>
Modified: trunk/ws/docs/reference/en-US/topdown.xml
===================================================================
--- trunk/ws/docs/reference/en-US/topdown.xml 2010-03-25 15:10:43 UTC (rev 21020)
+++ trunk/ws/docs/reference/en-US/topdown.xml 2010-03-25 17:02:33 UTC (rev 21021)
@@ -63,7 +63,7 @@
</figure>
</listitem>
</itemizedlist>
- <para>If you added the JBoss Web Service facet to the project, now the <property>Finish</property> button is disable. You must click <property>Next</property> button to set more information about the JBoss Web Service facet. The page is like <property>Figure 2.5</property>. Then click on the <property>Finish</property> button.</para>
+ <para>If you added the JBoss Web Service facet to the project, now the <property>Finish</property> button is unavailable. You must click <property>Next</property> button to set more information about the JBoss Web Service facet. The page is like <property>Figure 2.5</property>. Then click on the <property>Finish</property> button.</para>
<para>If you didn't add the JBoss Web Service facet to the project, click on the <property>Finish</property> button. Next you will need to add JBoss Web Service facet to the project.</para>
</section>
@@ -332,7 +332,7 @@
<itemizedlist>
<listitem>
<para>Generate WSDL file: select it, you will get a generated WSDL file in your
- project. But this wsdl's services' address location values are not a real
+ project. But this wsdl's service address location values are not a real
address. </para>
</listitem>
<listitem>
@@ -378,7 +378,7 @@
<listitem>
<para>If you selected to update the default web.xml, you will test the web service in
the browser. Open the Explorer, input the url for the web service according to
- web.xml plus <property>?wsdl.</property>, you will get the WSDL file from Explorer. </para>
+ web.xml plus <property>?wsdl</property>, you will get the WSDL file from Explorer. </para>
<figure>
<title>The Updated web.xml file</title>
<mediaobject>
14 years, 9 months
JBoss Tools SVN: r21020 - in trunk/jsf/plugins: org.jboss.tools.jsf.ui and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2010-03-25 11:10:43 -0400 (Thu, 25 Mar 2010)
New Revision: 21020
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/plugin.xml
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameELVariableWizard.java
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/el/refactoring/ELRenameProcessor.java
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/el/refactoring/RenameELVariableProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4990
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/el/refactoring/ELRenameProcessor.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/el/refactoring/ELRenameProcessor.java 2010-03-25 14:58:19 UTC (rev 21019)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/el/refactoring/ELRenameProcessor.java 2010-03-25 15:10:43 UTC (rev 21020)
@@ -16,7 +16,6 @@
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.IPath;
import org.eclipse.ltk.core.refactoring.CompositeChange;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
@@ -27,11 +26,11 @@
import org.eclipse.text.edits.MultiTextEdit;
import org.eclipse.text.edits.ReplaceEdit;
import org.eclipse.text.edits.TextEdit;
-import org.jboss.tools.common.el.core.ELCorePlugin;
import org.jboss.tools.common.el.core.ElCoreMessages;
+import org.jboss.tools.common.el.core.model.ELInvocationExpression;
+import org.jboss.tools.common.el.core.model.ELPropertyInvocation;
import org.jboss.tools.common.model.project.ProjectHome;
import org.jboss.tools.common.text.ITextSourceReference;
-import org.jboss.tools.common.util.FileUtil;
/**
* @author Daniel Azarov
@@ -117,90 +116,9 @@
return flag;
}
- private void changeXMLNode(ITextSourceReference location, IFile file){
- if(isBadLocation(location, file))
- return;
-
- if(!isFileCorrect(file))
- return;
-
- String content = null;
- try {
- content = FileUtil.readStream(file);
- } catch (CoreException e) {
- ELCorePlugin.getDefault().logError(e);
- }
-
- String text = content.substring(location.getStartPosition(), location.getStartPosition()+location.getLength());
- if(text.startsWith("<")){ //$NON-NLS-1$
- int position = text.lastIndexOf("/>"); //$NON-NLS-1$
- if(position < 0){
- position = text.lastIndexOf(">"); //$NON-NLS-1$
- }
- change(file, location.getStartPosition()+position, 0, " name=\""+getNewName()+"\""); //$NON-NLS-1$ //$NON-NLS-2$
- }else{
- change(file, location.getStartPosition(), location.getLength(), getNewName());
- }
- }
- private void changeAnnotation(ITextSourceReference location, IFile file){
- if(isBadLocation(location, file))
- return;
-
- if(!isFileCorrect(file))
- return;
-
- String content = null;
- try {
- content = FileUtil.readStream(file);
- } catch (CoreException e) {
- ELCorePlugin.getDefault().logError(e);
- }
-
- String text = content.substring(location.getStartPosition(), location.getStartPosition()+location.getLength());
- int openBracket = text.indexOf("("); //$NON-NLS-1$
- int openQuote = text.indexOf("\""); //$NON-NLS-1$
- if(openBracket >= 0){
- int closeBracket = text.indexOf(")", openBracket); //$NON-NLS-1$
-
- int equals = text.indexOf("=", openBracket); //$NON-NLS-1$
- int value = text.indexOf("value", openBracket); //$NON-NLS-1$
-
- if(closeBracket == openBracket+1){ // empty brackets
- String newText = "\""+getNewName()+"\""; //$NON-NLS-1$ //$NON-NLS-2$
- change(file, location.getStartPosition()+openBracket+1, 0, newText);
- }else if(value > 0){ // construction value="name" found so change name
- String newText = text.replace(getOldName(), getNewName());
- change(file, location.getStartPosition(), location.getLength(), newText);
- }else if(equals > 0){ // other parameters are found
- String newText = "value=\""+getNewName()+"\","; //$NON-NLS-1$ //$NON-NLS-2$
- change(file, location.getStartPosition()+openBracket+1, 0, newText);
- }else{ // other cases
- String newText = text.replace(getOldName(), getNewName());
- change(file, location.getStartPosition(), location.getLength(), newText);
- }
- }else if(openQuote >= 0){
- int closeQuota = text.indexOf("\"", openQuote); //$NON-NLS-1$
-
- if(closeQuota == openQuote+1){ // empty quotas
- String newText = "\""+getNewName()+"\""; //$NON-NLS-1$ //$NON-NLS-2$
- change(file, location.getStartPosition()+openQuote+1, 0, newText);
- }else{ // the other cases
- String newText = text.replace(getOldName(), getNewName());
- change(file, location.getStartPosition(), location.getLength(), newText);
- }
- }else{
- String newText = "(\""+getNewName()+"\")"; //$NON-NLS-1$ //$NON-NLS-2$
- change(file, location.getStartPosition()+location.getLength(), 0, newText);
- }
- }
- private void clearChanges(){
- keys.clear();
- }
-
private void change(IFile file, int offset, int length, String text){
- //System.out.println("change file - "+file.getFullPath()+" offset - "+offset+" len - "+length+" text"+text);
String key = file.getFullPath().toString()+" "+offset;
if(!keys.contains(key)){
TextFileChange change = getChange(file);
@@ -232,18 +150,6 @@
}
- private boolean checkFolder(IResource resource, IResource[] sources, IPath output){
- for(IResource folder : sources){
- if(resource.equals(folder))
- return false;
- }
-
- if(resource.getFullPath().equals(output))
- return false;
-
- return true;
- }
-
ArrayList<String> keys = new ArrayList<String>();
@Override
@@ -266,11 +172,27 @@
change(file, offset, length, newName);
}
-
@Override
protected boolean isFileCorrect(IFile file) {
return ELRenameProcessor.this.isFileCorrect(file);
}
+
+ protected ELInvocationExpression findComponentReference(ELInvocationExpression invocationExpression){
+ ELInvocationExpression invExp = invocationExpression;
+ while(invExp != null){
+ if(invExp instanceof ELPropertyInvocation){
+ if(((ELPropertyInvocation)invExp).getQualifiedName() != null && ((ELPropertyInvocation)invExp).getQualifiedName().equals(propertyName))
+ return invExp;
+ else
+ invExp = invExp.getLeft();
+
+ }else{
+ invExp = invExp.getLeft();
+ }
+ }
+ return null;
+ }
+
}
}
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/el/refactoring/RenameELVariableProcessor.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/el/refactoring/RenameELVariableProcessor.java 2010-03-25 14:58:19 UTC (rev 21019)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/el/refactoring/RenameELVariableProcessor.java 2010-03-25 15:10:43 UTC (rev 21020)
@@ -11,7 +11,6 @@
package org.jboss.tools.jsf.el.refactoring;
import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
@@ -23,6 +22,12 @@
import org.eclipse.ltk.core.refactoring.participants.SharableParticipants;
import org.eclipse.ltk.internal.core.refactoring.Messages;
import org.jboss.tools.common.el.core.ElCoreMessages;
+import org.jboss.tools.common.model.XModel;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.project.IModelNature;
+import org.jboss.tools.common.model.refactoring.RenameModelObjectChange;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.jsf.model.pv.JSFBeanSearcher;
/**
* @author Daniel Azarov
@@ -64,11 +69,8 @@
public RefactoringStatus checkInitialConditions(IProgressMonitor pm)
throws CoreException, OperationCanceledException {
RefactoringStatus result = new RefactoringStatus();
- boolean status = false;
- status = checkELContextVariable();
-
- if(!status)
+ if(findManagedBean() == null)
result.addFatalError(Messages.format(ElCoreMessages.RENAME_EL_VARIABLE_PROCESSOR_CAN_NOT_FIND_EL_VARIABLE, getOldName()));
return result;
}
@@ -84,17 +86,6 @@
return rootChange;
}
-
- private boolean checkELContextVariable(){
- boolean status = true;
-
- IProject[] projects = getSearcher().getProjects();
- for (IProject project : projects) {
- // TODO:
- }
- return status;
- }
-
/*
* (non-Javadoc)
* @see org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor#getElements()
@@ -142,6 +133,25 @@
}
private void renameELVariable(IProgressMonitor pm, IFile file){
- getSearcher().findELReferences();
+ XModelObject managedBean = findManagedBean();
+ if(managedBean != null){
+ Change managedBeanChange = RenameModelObjectChange.createChange(new XModelObject[]{managedBean}, getNewName(), "managed-bean-name");
+ rootChange.add(managedBeanChange);
+ getSearcher().findELReferences();
+ }
}
+
+ private XModelObject findManagedBean(){
+ IModelNature nature = EclipseResourceUtil.getModelNature(file.getProject());
+ if(nature == null)
+ return null;
+ XModel model = nature.getModel();
+ if(model == null)
+ return null;
+ JSFBeanSearcher beanSearcher = new JSFBeanSearcher(model);
+ beanSearcher.parse(getOldName());
+ XModelObject managedBean = beanSearcher.getBean();
+
+ return managedBean;
+ }
}
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.ui/plugin.xml 2010-03-25 14:58:19 UTC (rev 21019)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/plugin.xml 2010-03-25 15:10:43 UTC (rev 21020)
@@ -444,12 +444,12 @@
</extension>
<!-- Refactorng -->
- <!--extension
+ <extension
point="org.eclipse.ui.menus">
<menuContribution
class="org.jboss.tools.jsf.ui.el.refactoring.ELRefactorContributionFactory"
locationURI="popup:org.eclipse.ui.popup.any?after=save">
</menuContribution>
- </extension-->
+ </extension>
</plugin>
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameELVariableWizard.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameELVariableWizard.java 2010-03-25 14:58:19 UTC (rev 21019)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/el/refactoring/RenameELVariableWizard.java 2010-03-25 15:10:43 UTC (rev 21020)
@@ -102,7 +102,7 @@
}
private void initializeRefactoring() {
- //processor.setNewName(editor.getValueAsString());
+ processor.setNewName(editor.getValueAsString());
}
}
14 years, 9 months
JBoss Tools SVN: r21019 - trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-03-25 10:58:19 -0400 (Thu, 25 Mar 2010)
New Revision: 21019
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/BeanDefinitionTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6012
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/BeanDefinitionTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/BeanDefinitionTest.java 2010-03-25 14:48:07 UTC (rev 21018)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/BeanDefinitionTest.java 2010-03-25 14:58:19 UTC (rev 21019)
@@ -106,8 +106,10 @@
* @throws JavaModelException
*/
public void testPrivitiveTypes() throws JavaModelException {
- assertTheOnlyBean("java.lang.Integer");
- assertTheOnlyBean("org.jboss.jsr299.tck.tests.definition.bean.Animal");
+ Set<IBean> beans = getBeans("java.lang.Integer");
+ assertFalse("Cannot find bean java.lang.Integer", beans.isEmpty());
+ beans = getBeans("org.jboss.jsr299.tck.tests.definition.bean.Animal");
+ assertFalse("Cannot find bean org.jboss.jsr299.tck.tests.definition.bean.Animal", beans.isEmpty());
}
/**
14 years, 9 months
JBoss Tools SVN: r21018 - in trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl: definition and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-03-25 10:48:07 -0400 (Thu, 25 Mar 2010)
New Revision: 21018
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6012
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java 2010-03-25 12:24:52 UTC (rev 21017)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/ParametedType.java 2010-03-25 14:48:07 UTC (rev 21018)
@@ -255,4 +255,8 @@
}
}
+ public String toString() {
+ return signature + ":" + super.toString();
+ }
+
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java 2010-03-25 12:24:52 UTC (rev 21017)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/ParametedTypeFactory.java 2010-03-25 14:48:07 UTC (rev 21018)
@@ -1,5 +1,6 @@
package org.jboss.tools.cdi.internal.core.impl.definition;
+
import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
@@ -12,7 +13,18 @@
import org.jboss.tools.cdi.internal.core.impl.TypeDeclaration;
import org.jboss.tools.common.model.util.EclipseJavaUtil;
-public class ParametedTypeFactory {
+public class ParametedTypeFactory {
+ // I S J C F D Z
+ static HashMap<String,String> primitives = new HashMap<String, String>();
+ static {
+ primitives.put("I", "Qjava.lang.Integer;");
+ primitives.put("S", "Qjava.lang.Short;");
+ primitives.put("J", "Qjava.lang.Long;");
+ primitives.put("C", "Qjava.lang.Character;");
+ primitives.put("F", "Qjava.lang.Float;");
+ primitives.put("D", "Qjava.lang.Double;");
+ primitives.put("Z", "Qjava.lang.Boolean;");
+ }
Map<String, ParametedType> cache = new HashMap<String, ParametedType>();
public ParametedType newParametedType(IType type) {
@@ -36,6 +48,7 @@
public ParametedType getParametedType(IType context, String typeSignature) throws JavaModelException {
if(typeSignature == null) return null;
+
String key = context == null || context.isBinary() || "QObject;".equals(typeSignature) ? typeSignature : context.getFullyQualifiedName() + "+" + typeSignature;
if(cache.containsKey(key)) return cache.get(key);
ParametedType result = new ParametedType();
@@ -43,6 +56,11 @@
result.setSignature(typeSignature);
typeSignature = typeSignature.substring(result.getArrayPrefix().length());
+
+ if(primitives.containsKey(typeSignature)) {
+ typeSignature = primitives.get(typeSignature);
+ result.setSignature(result.getArrayPrefix() + typeSignature);
+ }
int startToken = typeSignature.indexOf('<');
if(startToken < 0) {
14 years, 9 months
JBoss Tools SVN: r21017 - in trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot: testsuite and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jpeterka
Date: 2010-03-25 08:24:52 -0400 (Thu, 25 Mar 2010)
New Revision: 21017
Modified:
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/DaliTest.java
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java
trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/Project.java
Log:
JPA bot tests update (DDL generation, perspective check,... )
Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/DaliTest.java
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/DaliTest.java 2010-03-25 11:49:06 UTC (rev 21016)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testcase/DaliTest.java 2010-03-25 12:24:52 UTC (rev 21017)
@@ -1,18 +1,21 @@
- /*******************************************************************************
- * 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
- ******************************************************************************/
+/*******************************************************************************
+ * 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.hibernate.ui.bot.testcase;
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
import org.jboss.tools.hibernate.ui.bot.testsuite.HibernateTest;
import org.jboss.tools.hibernate.ui.bot.testsuite.Project;
+import org.jboss.tools.ui.bot.ext.helper.ContextMenuHelper;
import org.jboss.tools.ui.bot.ext.types.EntityType;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
import org.jboss.tools.ui.bot.ext.types.PerspectiveType;
@@ -24,75 +27,108 @@
@RunWith(SWTBotJunit4ClassRunner.class)
public class DaliTest extends HibernateTest {
-
- static boolean projectCreated = false;
-
+
+ private static boolean projectCreated = false;
+
@BeforeClass
public static void prepare() {
- bot.viewByTitle("Welcome").close();
+ bot.viewByTitle("Welcome").close();
eclipse.openPerspective(PerspectiveType.JPA);
util.waitForNonIgnoredJobs();
}
-
+
/**
- * TC 22
+ * TC 22 - Test creates JPA Project
*/
@Test
public void createJPAProject() {
- if (projectCreated) return;
-
- EntityType type = EntityType.JPA_PROJECT;
+ if (projectCreated)
+ return;
+
+ EntityType type = EntityType.JPA_PROJECT;
eclipse.createNew(type);
-
+
// JPA Project Page
eclipse.waitForShell("New JPA Project");
bot.textWithLabel("Project name:").setText(Project.JPA_PRJ_NAME);
bot.button(IDELabel.Button.NEXT).click();
-
+
// Java Page
bot.button(IDELabel.Button.NEXT).click();
-
- // JPA Facet Page
+
+ // JPA Facet Page
bot.comboBoxInGroup("Platform").setSelection("Hibernate");
// Finish
bot.button(IDELabel.Button.FINISH).click();
eclipse.waitForClosedShell(bot.shell("New JPA Project"));
util.waitForNonIgnoredJobs();
-
+
projectCreated = true;
}
-
- @Test
+ /**
+ * Test open persistence.xml of JPA project
+ */
+ @Test
public void openPersitenceXML() {
ProjectExplorer explorer = new ProjectExplorer();
- explorer.openFile(Project.JPA_PRJ_NAME, "JPA Content", "persistence.xml");
+ explorer.openFile(Project.JPA_PRJ_NAME, "JPA Content",
+ "persistence.xml");
}
-
+
/**
- * TC 24
+ * TC 24 - Test generates DDL file
*/
@Test
public void generateDDL() {
-
+ // Select project
+ SWTBotView viewBot = bot.viewByTitle(IDELabel.View.PROJECT_EXPLORER);
+ SWTBotTree tree = viewBot.bot().tree().select(Project.JPA_PRJ_NAME);
+ // JPA Tools -> Generate Tables From Entities
+ ContextMenuHelper.clickContextMenu(tree, "JPA Tools",
+ "Generate Tables from Entities...");
+
+ // DDL Generation Dialog
+ String outputDir = Project.JPA_PRJ_NAME + "/" + Project.DDL_OUTPUT;
+ bot.textWithLabel("Output directory:").setText(outputDir);
+ bot.textWithLabel("File name").setText(Project.DDL_OUTPUT);
+
+ bot.button(IDELabel.Button.FINISH).click();
+
+ // Check file
+ ProjectExplorer explorer = new ProjectExplorer();
+ explorer.openFile(Project.JPA_PRJ_NAME, Project.DDL_OUTPUT,
+ Project.DDL_FILENAME);
}
/**
- * TC 24
+ * TC 24 - Test for generating Entities from Tables
*/
@Test
public void generateEntities() {
+ // Select project
+ SWTBotView viewBot = bot.viewByTitle(IDELabel.View.PROJECT_EXPLORER);
+ SWTBotTree tree = viewBot.bot().tree().select(Project.JPA_PRJ_NAME);
+ // JPA Tools -> Generate Tables From Entities
+ ContextMenuHelper.clickContextMenu(tree, "JPA Tools",
+ "Generate Entities from Tables...");
+
+ // Generation Entities dialog
+ bot.textWithLabel("Package:").setText(Project.ENTITIES_PACKAGE);
+ bot.button(IDELabel.Button.FINISH).click();
}
/**
- * TC 23
+ * TC 23 - Check JPA perspective views
*/
@Test
public void checkJPAPerspective() {
-
+ bot.viewByTitle("JPA Structure").setFocus();
+ bot.viewByTitle("JPA Details").setFocus();
+ bot.viewByTitle("Data Source Explorer").setFocus();
}
/**
@@ -100,7 +136,9 @@
*/
@Test
public void checkCAInConfigurationEditor() {
+ bot.editorByTitle("persistence.xml").show();
+ // TODO - Multipage editor bot support needed first
}
/**
@@ -108,19 +146,13 @@
*/
@Test
public void checkCAInMappingEditor() {
+ // TODO - Multipage editor bot support needed first
}
-
- public static boolean isPRojectCreated() {
- if (projectCreated) {
- log.info("JPA Project is already created");
- }
- return projectCreated;
- }
@AfterClass
public static void cleanup() {
-
+ log.info("JPA DaliTest cleanup");
+ bot.sleep(TIME_5S);
}
-
}
Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java 2010-03-25 11:49:06 UTC (rev 21016)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/HibernateTest.java 2010-03-25 12:24:52 UTC (rev 21017)
@@ -11,7 +11,6 @@
package org.jboss.tools.hibernate.ui.bot.testsuite;
import static org.eclipse.swtbot.eclipse.finder.matchers.WithPartName.withPartName;
-import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileInputStream;
Modified: trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/Project.java
===================================================================
--- trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/Project.java 2010-03-25 11:49:06 UTC (rev 21016)
+++ trunk/hibernatetools/tests/org.jboss.tools.hibernate.ui.bot.test/src/org/jboss/tools/hibernate/ui/bot/testsuite/Project.java 2010-03-25 12:24:52 UTC (rev 21017)
@@ -30,4 +30,7 @@
// JPA Project
public static final String JPA_PRJ_NAME = "jpatest1";
+ public static final String DDL_OUTPUT = "src";
+ public static final String DDL_FILENAME = "test_schema.dll";
+ public static final String ENTITIES_PACKAGE = "org.entities";
}
14 years, 9 months
JBoss Tools SVN: r21016 - trunk/smooks/docs/reference/en-US.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2010-03-25 07:49:06 -0400 (Thu, 25 Mar 2010)
New Revision: 21016
Modified:
trunk/smooks/docs/reference/en-US/references.xml
trunk/smooks/docs/reference/en-US/summary.xml
trunk/smooks/docs/reference/en-US/tasks.xml
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-821 - added links to smooks demos.</p>
</body></html>
Modified: trunk/smooks/docs/reference/en-US/references.xml
===================================================================
--- trunk/smooks/docs/reference/en-US/references.xml 2010-03-25 09:56:39 UTC (rev 21015)
+++ trunk/smooks/docs/reference/en-US/references.xml 2010-03-25 11:49:06 UTC (rev 21016)
@@ -610,7 +610,7 @@
</imageobject>
</mediaobject>
</figure>
-
+ <para>For more details about Smooks editor, also see the movie, <ulink url="">"Overview of the Smooks Editor"</ulink>.</para>
</section>
</section>
<section>
Modified: trunk/smooks/docs/reference/en-US/summary.xml
===================================================================
--- trunk/smooks/docs/reference/en-US/summary.xml 2010-03-25 09:56:39 UTC (rev 21015)
+++ trunk/smooks/docs/reference/en-US/summary.xml 2010-03-25 11:49:06 UTC (rev 21016)
@@ -14,9 +14,11 @@
<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>
-<para>For more information about Smooks technology please visit
+<para>
+ For more information about Smooks technology please visit
<ulink url="http://www.smooks.org/mediawiki/index.php?title=Main_Page">
- Smooks Technology Home Page</ulink></para>
-
+ Smooks Technology Home Page</ulink>
+</para>
+ <para>You can find a set of screencasts on Smooks tools technology <ulink url="http://community.jboss.org/wiki/JBossTools-SmooksEditor">here</ulink>.</para>
</section>
</chapter>
Modified: trunk/smooks/docs/reference/en-US/tasks.xml
===================================================================
--- trunk/smooks/docs/reference/en-US/tasks.xml 2010-03-25 09:56:39 UTC (rev 21015)
+++ trunk/smooks/docs/reference/en-US/tasks.xml 2010-03-25 11:49:06 UTC (rev 21016)
@@ -155,6 +155,11 @@
</imageobject>
</mediaobject>
</figure>
+ <para>For details, also see the movie,
+ <ulink url="http://www.screencast.com/users/tfennelly/folders/Camtasia/media/a6648ba3...">"XML to Java"</ulink>.
+ </para>
+ <para>If you are interested in transforming EDI to Java, please, follow the
+ <ulink url="http://www.screencast.com/users/tfennelly/folders/Camtasia/media/a72704fb...">link</ulink>.</para>
</section>
<section>
<title>Apply Template Task</title>
14 years, 9 months