JBoss Tools SVN: r22265 - in trunk/jsf/docs/userguide/en-US/images: faq and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2010-05-22 15:00:53 -0400 (Sat, 22 May 2010)
New Revision: 22265
Added:
trunk/jsf/docs/userguide/en-US/images/faq/
trunk/jsf/docs/userguide/en-US/images/faq/missingnauture.png
Log:
https://jira.jboss.org/browse/TOOLSDOC-73
missing natures dialog image
Added: trunk/jsf/docs/userguide/en-US/images/faq/missingnauture.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en-US/images/faq/missingnauture.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 11 months
JBoss Tools SVN: r22264 - trunk/jsf/docs/userguide/en-US.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2010-05-22 15:00:39 -0400 (Sat, 22 May 2010)
New Revision: 22264
Modified:
trunk/jsf/docs/userguide/en-US/vwt_faq.xml
Log:
https://jira.jboss.org/browse/TOOLSDOC-73
missing natures dialog is documented
Modified: trunk/jsf/docs/userguide/en-US/vwt_faq.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/vwt_faq.xml 2010-05-22 03:34:27 UTC (rev 22263)
+++ trunk/jsf/docs/userguide/en-US/vwt_faq.xml 2010-05-22 19:00:39 UTC (rev 22264)
@@ -64,4 +64,39 @@
<property>Web > HTML Files > Editor</property>
</emphasis>).</para>
</section>
+ <section id="question_3">
+ <title>Visual Editor starts OK, but the Missing Natures dialog appears</title>
+
+ <figure>
+ <title>Missing Nature</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/faq/missingnauture.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <para>
+
+ Some functionality of Visual Editor may not work if a project doesn't have <property>org.jboss.tools.jsf.jsfnature</property> or <property>org.jboss.tools.jst.web.kb.kbnature</property> in <property>.project</property> configuration. To fix this problem and turn off the message box execute next steps:
+</para>
+<orderedlist>
+<listitem><para>
+ Right mouse button click on a project in Package Explorer.
+ </para></listitem>
+ <listitem><para>
+ Select <property>Configure -> Add JSF Capabilities</property> from the context menu.
+ </para></listitem>
+ <listitem><para>
+ Configure your project using Add JSF Capabilities wizard and press Finish.
+</para></listitem>
+
+</orderedlist>
+<para>
+If you are shure that your project does not need JSF capabilities, just disable this message box by checking <property>Do not show this dialog again!</property> checkbox.
+ </para>
+
+ </section>
+
</chapter>
15 years, 11 months
JBoss Tools SVN: r22263 - trunk/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-21 23:34:27 -0400 (Fri, 21 May 2010)
New Revision: 22263
Modified:
trunk/build/build.xml
Log:
clean leftovers from previous build
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2010-05-22 03:21:54 UTC (rev 22262)
+++ trunk/build/build.xml 2010-05-22 03:34:27 UTC (rev 22263)
@@ -561,15 +561,16 @@
<property name="COMPONENT" value="." />
<property name="move.test.results" value="true" />
<var name="tests.results.found" value="false" />
- <echo>basedir = ${basedir}
+ <echo level="debug">basedir = ${basedir}
WORKINGDIR = ${WORKINGDIR}
COMPONENT = ${COMPONENT}</echo>
+ <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
<for param="test.xml.files" delimiter=",
">
<path>
<fileset dir="${WORKINGDIR}"
includes="**/target/surefire-reports/TEST-*.xml, **/**/target/surefire-reports/TEST-*.xml"
- excludes="**/*NoTestsRun.xml, **/**/*NoTestsRun.xml"
+ excludes="**/TEST-*NoTestsRun.xml, **/**/TEST-*NoTestsRun.xml"
/>
</path>
<sequential>
15 years, 11 months
JBoss Tools SVN: r22262 - trunk/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-21 23:21:54 -0400 (Fri, 21 May 2010)
New Revision: 22262
Modified:
trunk/build/build.xml
Log:
debug
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2010-05-22 02:47:06 UTC (rev 22261)
+++ trunk/build/build.xml 2010-05-22 03:21:54 UTC (rev 22262)
@@ -561,12 +561,15 @@
<property name="COMPONENT" value="." />
<property name="move.test.results" value="true" />
<var name="tests.results.found" value="false" />
+ <echo>basedir = ${basedir}
+WORKINGDIR = ${WORKINGDIR}
+COMPONENT = ${COMPONENT}</echo>
<for param="test.xml.files" delimiter=",
">
<path>
<fileset dir="${WORKINGDIR}"
- includes="**/target/surefire-reports/TEST-*.xml"
- excludes="**/*NoTestsRun.xml"
+ includes="**/target/surefire-reports/TEST-*.xml, **/**/target/surefire-reports/TEST-*.xml"
+ excludes="**/*NoTestsRun.xml, **/**/*NoTestsRun.xml"
/>
</path>
<sequential>
15 years, 11 months
JBoss Tools SVN: r22261 - trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2010-05-21 22:47:06 -0400 (Fri, 21 May 2010)
New Revision: 22261
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView.java
Log:
JBIDE-6326 - adding ability to open WS invoke results in the XML editor - updates to popup menu enable/disable
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView.java 2010-05-22 02:27:29 UTC (rev 22260)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView.java 2010-05-22 02:47:06 UTC (rev 22261)
@@ -77,6 +77,7 @@
@SuppressWarnings("restriction")
public class JAXRSWSTestView extends ViewPart {
+ private static final String DEFAULT_TEXT_EDITOR_ID = "org.eclipse.ui.DefaultTextEditor"; //$NON-NLS-1$
private static final String XML_EDITOR_ID = "org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"; //$NON-NLS-1$
private static final String TCPIP_VIEW_ID = "org.eclipse.wst.internet.monitor.view";//$NON-NLS-1$
private static final String DELETE = "DELETE";//$NON-NLS-1$
@@ -120,6 +121,7 @@
private MenuItem openInXMLEditorAction;
private MenuItem openResponseTagInXMLEditor;
private Menu resultsTextMenu;
+ private MenuItem copyMenuAction;
/**
* The constructor.
@@ -289,7 +291,7 @@
Button sampleButton = new Button(buttonBar, SWT.PUSH);
sampleButton.setText(JBossWSUIMessages.JAXRSWSTestView_Set_Sample_Data_Label);
- sampleButton.setVisible(true);
+ sampleButton.setVisible(false);
sampleButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
@@ -315,7 +317,7 @@
resultsTextMenu = new Menu(resultsText.getShell(), SWT.POP_UP);
- MenuItem copyMenuAction = new MenuItem(resultsTextMenu, SWT.PUSH);
+ copyMenuAction = new MenuItem(resultsTextMenu, SWT.PUSH);
copyMenuAction.setText(JBossWSUIMessages.JAXRSWSTestView_CopyResultsMenu);
copyMenuAction.setAccelerator(SWT.CTRL + 'C');
copyMenuAction.addSelectionListener(new SelectionListener(){
@@ -417,8 +419,22 @@
setControlsForWSType(wsTypeCombo.getText());
setControlsForMethodType(methodCombo.getText());
setControlsForSelectedURL();
+ setMenusForCurrentState();
}
+ private void setMenusForCurrentState() {
+ if (resultsText!= null && !resultsText.isDisposed()){
+ boolean enabled = resultsText.getText().trim().length() > 0;
+ copyMenuAction.setEnabled(enabled);
+ openInXMLEditorAction.setEnabled(enabled);
+ if (wsTypeCombo.getText().equalsIgnoreCase(JAX_WS)) {
+ openResponseTagInXMLEditor.setEnabled(enabled);
+ } else if (wsTypeCombo.getText().equalsIgnoreCase(JAX_RS) ){
+ openResponseTagInXMLEditor.setEnabled(false);
+ }
+ }
+ }
+
private void openXMLEditor (String text){
IWorkbenchWindow window = getSite().getWorkbenchWindow();
IStorage storage = new ResultsXMLStorage(text);
@@ -426,8 +442,11 @@
IWorkbenchPage page = window.getActivePage();
if (page != null) {
try {
-// page.openEditor(input, "org.eclipse.ui.DefaultTextEditor");
- page.openEditor(input, XML_EDITOR_ID);
+ if (window.getWorkbench().getEditorRegistry().findEditor(XML_EDITOR_ID) != null) {
+ page.openEditor(input, XML_EDITOR_ID);
+ } else {
+ page.openEditor(input, DEFAULT_TEXT_EDITOR_ID);
+ }
} catch (PartInitException e) {
e.printStackTrace();
}
@@ -566,10 +585,6 @@
if (bodyText.getText().trim().length() == 0) {
bodyText.setText(emptySOAP);
}
-
- if (openResponseTagInXMLEditor != null &&
- !openResponseTagInXMLEditor.isDisposed())
- openResponseTagInXMLEditor.setEnabled(true);
}
else if (wsType.equalsIgnoreCase(JAX_RS)) {
actionText.setEnabled(false);
@@ -580,10 +595,8 @@
parmsTab.getControl().setEnabled(true);
headerTab.getControl().setEnabled(true);
methodCombo.setText(GET);
- if (openResponseTagInXMLEditor != null &&
- !openResponseTagInXMLEditor.isDisposed())
- openResponseTagInXMLEditor.setEnabled(false);
}
+ setMenusForCurrentState();
}
/*
@@ -692,6 +705,7 @@
public void aboutToRun(IJobChangeEvent event) {};
});
+ setMenusForCurrentState();
}
/*
15 years, 11 months
JBoss Tools SVN: r22260 - trunk/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-21 22:27:29 -0400 (Fri, 21 May 2010)
New Revision: 22260
Modified:
trunk/build/build.xml
Log:
document how to use collect.test.results.for.hudson target; set defaults
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2010-05-22 02:21:52 UTC (rev 22259)
+++ trunk/build/build.xml 2010-05-22 02:27:29 UTC (rev 22260)
@@ -544,11 +544,22 @@
</if>
</target>
+ <!--
+ To run this after a maven build in Hudson, set these properties:
+ basedir=${WORKSPACE}/sources
+ WORKINGDIR=${WORKSPACE}/sources
+ COMPONENT=.
+ move.test.results=true
+ -->
<target name="collect.test.results.for.hudson"
depends="init"
if="isInHudson"
description="collect test results after a pure maven build so Hudson has something to see"
>
+ <property name="basedir" value="${WORKSPACE}/sources" />
+ <property name="WORKINGDIR" value="${WORKSPACE}/sources" />
+ <property name="COMPONENT" value="." />
+ <property name="move.test.results" value="true" />
<var name="tests.results.found" value="false" />
<for param="test.xml.files" delimiter=",
">
15 years, 11 months
JBoss Tools SVN: r22259 - trunk/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-21 22:21:52 -0400 (Fri, 21 May 2010)
New Revision: 22259
Modified:
trunk/build/build.xml
Log:
add move.test.results option
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2010-05-22 02:04:59 UTC (rev 22258)
+++ trunk/build/build.xml 2010-05-22 02:21:52 UTC (rev 22259)
@@ -781,6 +781,14 @@
>
<fileset dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports/TEST-*.xml" />
</copy>
+ <if>
+ <isset property="move.test.results" />
+ <then>
+ <delete dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports" />
+ </then>
+ <else>
+ </else>
+ </if>
</target>
<target name="collect.all.test.results" unless="no.tests.run">
15 years, 11 months
JBoss Tools SVN: r22258 - trunk/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-21 22:04:59 -0400 (Fri, 21 May 2010)
New Revision: 22258
Modified:
trunk/build/build.xml
Log:
add collect.test.results.for.hudson target so we can call this AFTER a pure maven build to just collect tests
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2010-05-22 01:52:34 UTC (rev 22257)
+++ trunk/build/build.xml 2010-05-22 02:04:59 UTC (rev 22258)
@@ -544,14 +544,18 @@
</if>
</target>
- <target name="collect.test.results.for.hudson" depends="init" if="isInHudson" description="collect test results after a pure maven build so Hudson has something to see">
+ <target name="collect.test.results.for.hudson"
+ depends="init"
+ if="isInHudson"
+ description="collect test results after a pure maven build so Hudson has something to see"
+ >
<var name="tests.results.found" value="false" />
- <for param="test.dir" delimiter=",
+ <for param="test.xml.files" delimiter=",
">
<path>
- <dirset dir="${WORKINGDIR}"
- includes="**/target/surefire-reports/TEST-*.xml, **/**/target/surefire-reports/TEST-*.xml"
- excludes="**/*NoTestsRun.xml"
+ <fileset dir="${WORKINGDIR}"
+ includes="**/target/surefire-reports/TEST-*.xml"
+ excludes="**/*NoTestsRun.xml"
/>
</path>
<sequential>
@@ -564,7 +568,7 @@
<antcall target="collect.test.results">
<param name="COMPONENT" value="." />
</antcall>
- <antcall target="collect.all.test.results"/>
+ <antcall target="collect.all.test.results" />
</then>
<else>
<antcall target="create.empty.test.results.file" />
15 years, 11 months
JBoss Tools SVN: r22257 - trunk/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-21 21:52:34 -0400 (Fri, 21 May 2010)
New Revision: 22257
Modified:
trunk/build/build.xml
Log:
add collect.test.results.for.hudson target so we can call this AFTER a pure maven build to just collect tests
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2010-05-22 01:43:00 UTC (rev 22256)
+++ trunk/build/build.xml 2010-05-22 01:52:34 UTC (rev 22257)
@@ -546,10 +546,11 @@
<target name="collect.test.results.for.hudson" depends="init" if="isInHudson" description="collect test results after a pure maven build so Hudson has something to see">
<var name="tests.results.found" value="false" />
- <for param="test.dir">
+ <for param="test.dir" delimiter=",
+ ">
<path>
<dirset dir="${WORKINGDIR}"
- includes="**/target/surefire-reports/TEST-*.xml"
+ includes="**/target/surefire-reports/TEST-*.xml, **/**/target/surefire-reports/TEST-*.xml"
excludes="**/*NoTestsRun.xml"
/>
</path>
@@ -558,16 +559,16 @@
</sequential>
</for>
<if>
- <equals arg1="${tests.results.found}" arg2="false" />
+ <equals arg1="${tests.results.found}" arg2="true" />
<then>
- <antcall target="create.empty.test.results.file" />
- <property name="no.tests.run" value="true" />
- </then>
- <else>
<antcall target="collect.test.results">
<param name="COMPONENT" value="." />
</antcall>
<antcall target="collect.all.test.results"/>
+ </then>
+ <else>
+ <antcall target="create.empty.test.results.file" />
+ <property name="no.tests.run" value="true" />
</else>
</if>
</target>
15 years, 11 months
JBoss Tools SVN: r22256 - trunk/build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-21 21:43:00 -0400 (Fri, 21 May 2010)
New Revision: 22256
Modified:
trunk/build/build.xml
Log:
add collect.test.results.for.hudson target so we can call this AFTER a pure maven build to just collect tests
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2010-05-22 01:22:11 UTC (rev 22255)
+++ trunk/build/build.xml 2010-05-22 01:43:00 UTC (rev 22256)
@@ -544,7 +544,7 @@
</if>
</target>
- <target name="collect.test.results.for.hudson" description="collect test results after a pure maven build so Hudson has something to see">
+ <target name="collect.test.results.for.hudson" depends="init" if="isInHudson" description="collect test results after a pure maven build so Hudson has something to see">
<var name="tests.results.found" value="false" />
<for param="test.dir">
<path>
15 years, 11 months