JBoss Tools SVN: r37511 - in trunk/documentation/whatsnew: forge and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-12-22 03:46:12 -0500 (Thu, 22 Dec 2011)
New Revision: 37511
Added:
trunk/documentation/whatsnew/images/browsersim_externalsetup.png
trunk/documentation/whatsnew/images/browsersimdeviceedit.png
trunk/documentation/whatsnew/images/browsersimlandscape.png
trunk/documentation/whatsnew/images/customizeperspective_browsersim.png
trunk/documentation/whatsnew/images/deviceselection.png
trunk/documentation/whatsnew/images/phoneicontoolbar.png
trunk/documentation/whatsnew/images/portraitbrowsersim.png
trunk/documentation/whatsnew/images/quickaccessbrowser.png
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html
trunk/documentation/whatsnew/hibernate/hibernate-news-3.5.0.M5.html
trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html
trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.M5.html
Log:
JBIDE-10368 extended browsersim and language/completeness
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-22 08:44:55 UTC (rev 37510)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-22 08:46:12 UTC (rev 37511)
@@ -36,7 +36,13 @@
<p><b>Support for AS 7.1</b></p>
</td>
<td valign="top" width="90%">
- <p>JBoss AS Tools now supports JBoss AS 7.1 beta1b. The support includes a new server adapter type. JBoss AS 7.1 also includes new security features restricting access to the remote management services. The new 7.1 adapter includes methods for storing these credentials. </p>
+ <p>JBoss AS Tools now supports JBoss AS 7.1 beta1b and should
+ work with newer releases of AS 7.1 too. The support includes a new
+ server adapter type (JBoss AS 7.1.x). JBoss AS 7.1 also includes
+ new security features restricting access to the remote management
+ services if you are not running as the same user as AS 7 is
+ started with. The new 7.1 adapter includes support for managing
+ and using such credentials. </p>
<p><img src="images/credentials-dialog.png" alt="credentials dialog"/></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-10292">Related Jira</a></small></p>
</td>
@@ -47,8 +53,12 @@
<p><b>Run On Server supported for EAR projects</b></p>
</td>
<td valign="top" width="90%">
- <p>Attempting to run an EAR project on a server now will load the url that is most likely to be desired, whereas previously no action was taken on EAR projects</p>
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-9893">Related Jira</a></small></p>
+
+ <p>Previously nothing happend when you attempted to "Run on
+ Server" on an EAR project. Now our server adapters will load the
+ url for the first found WAR project on it.</p>
+
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9893">Related Jira</a></small></p>
</td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
@@ -67,7 +77,7 @@
<p><b>Actions to load AS Management urls</b></p>
</td>
<td valign="top" width="90%">
- <p>The most commonly loaded bundled apps for our servers now appear in the server view's context menu. Simply right-click on the server, select "show in", and you will see options such as the JMX Console, Admin Console, and Web Console.</p>
+ <p>The most commonly bundled apps for JBoss servers now appear in the server view's context menu. Right-click on the server, select "Show In", and you will see options such as the JMX Console, Admin Console, and Web Console.</p>
<p><img src="images/show-in-management-console.png" alt="show in management console"/></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-6828">Related Jira</a></small></p>
</td>
@@ -78,7 +88,15 @@
<p><b>Usability improvement for "Mark As Deployable" feature</b></p>
</td>
<td valign="top" width="90%">
- <p>Some users may have been confusing the "Mark as Deployable" feature with simple deployment done via the Add / Remove Module wizard. When a user now attempts to "Mark as Deployable" a project which is already a deployable module, a dialog is shown, advising them against it unless they are aware of what they are doing. </p>
+ <p>We've seen many users use "Mark as Deployable" on
+ individual resources instead of deploying the project
+ directly. They were not aware of the project being runnable/deployable on
+ the server adapter.</p>
+
+ <p>Thus now when a user attempts to "Mark as Deployable" on a
+ resource within a project which is already a
+ deployable module, a dialog is shown, advising about
+ their options. </p>
<p><img src="images/mark-deployable.png" alt="mark deployable"/)></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9995">Related Jira</a></small></p>
</td>
Modified: trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html 2011-12-22 08:44:55 UTC (rev 37510)
+++ trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html 2011-12-22 08:46:12 UTC (rev 37511)
@@ -72,7 +72,7 @@
<tr>
<td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>'Show In Forge Console'</b></td>
<td valign="top">
- <p>A very nice feature we have added is the so called 'Show In Forge Console' feature. Bringing up the context menu and then selecting the 'Show In' menu on a selected item in the Project or Package explorer will contain an entry labeled 'Forge Console'. </p>
+ <p>Bringing up the context menu and then selecting the 'Show In' menu on a selected item in the Project or Package explorer will contain an entry labeled 'Forge Console'. </p>
<p><img src="images/3.3.0.M5/show_in_forge_console.png"/></p>
<p>Selecting this entry will result in the Forge Console automatically issuing the 'pick-up' command and changing the current Forge runtime context to the selected resource and performing the other behaviour mentioned earlier.</p>
<p><img src="images/3.3.0.M5/show_in_result.png" width="640" height="382"/></p>
Modified: trunk/documentation/whatsnew/hibernate/hibernate-news-3.5.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/hibernate/hibernate-news-3.5.0.M5.html 2011-12-22 08:44:55 UTC (rev 37510)
+++ trunk/documentation/whatsnew/hibernate/hibernate-news-3.5.0.M5.html 2011-12-22 08:46:12 UTC (rev 37511)
@@ -24,7 +24,8 @@
<h1>Hibernate tools 3.5.0.M5 What's New</h1>
<p align="right"><a href="../index.html">< Main
- Index</a> <a href="../examples/examples-news-3.3.0.M5.html">JBoss AS Tools ></a></p>
+ Index</a> <a
+href="../examples/examples-news-3.3.0.M5.html">Project Examples ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
@@ -39,9 +40,13 @@
<tr>
<td valign="top" align="right"><a name="itemname1" id="itemname1"></a><b>Select Hibernate Version</b></td>
<td valign="top">
- <p>Because of incompatible API changes between hibernate 3.5 and hibernate 4 we have to ask user about the version of hibernate he uses in the mappings.
- This should be specified for Console Configuration. This allows us to support both hibernate versions in single plugins installation.</p>
-
+ <p>You can now choose which version of Hibernate you want to use,
+ Hibernate 3.5 or 4.0. </p>
+
+ <p>Be ware that Hibernate 4.0 support is still experimental and not *all*
+ operations/features are Hibernate 4 enabled yet, but we
+ include it so you can give feedback/report issues for this to
+ make the support more complete.</p>
<img src="images/console_configuration_hibernate_version.png"/>
<p><small>Related jiras:<a href="https://issues.jboss.org/browse/JBIDE-10098">1</a>, <a href="https://issues.jboss.org/browse/JBIDE-9825">2</a></p>
Added: trunk/documentation/whatsnew/images/browsersim_externalsetup.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/browsersim_externalsetup.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/browsersimdeviceedit.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/browsersimdeviceedit.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/browsersimlandscape.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/browsersimlandscape.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/customizeperspective_browsersim.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/customizeperspective_browsersim.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/deviceselection.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/deviceselection.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/phoneicontoolbar.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/phoneicontoolbar.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/portraitbrowsersim.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/portraitbrowsersim.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/whatsnew/images/quickaccessbrowser.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/quickaccessbrowser.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html 2011-12-22 08:44:55 UTC (rev 37510)
+++ trunk/documentation/whatsnew/jst/jst-news-3.3.0.M5.html 2011-12-22 08:46:12 UTC (rev 37511)
@@ -34,15 +34,26 @@
</td>
<td valign="top">
<p>
- Eclipse JSF Tools (WTP) has an annoying <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=357885">issue</a> with faces converter validation. It does not support faces converters annotated @FacesConverter. So if your project uses such converters in <f:converter converterId="..."/> you will get a warning.
- But JBoss Tools 3.3.0.M5 has a new quick fix which will help you to disable Facelet Validator to get rid of that warning.
+ Eclipse JSF Tools (WTP) has an <a
+ href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=357885">issue</a>
+ with faces converter validation. It does not support
+ faces converters that are configured via
+ <code>@FacesConverter</cpde>. If your project uses
+ such converters in <f:converter
+ converterId="..."/> you will get a false warning
+ which can be annoying.
+ In JBoss Tools 3.3.0.M5 we have added a new quick fix which will help you to disable Facelet Validator to get rid of that warning.
</p>
<img src="images/3.3.0.M5/jsf-1.png"/><br/><br/>
<img src="images/3.3.0.M5/jsf-2.png"/>
- <p><small><a href="https://jira.jboss.org/browse/JBIDE-9366">Related Jira</a></small></p>
- </td>
- </tr>
+ <p>Be aware that if you do disable this validation
+ it is not only faces converters validation you
+ disable it is all the validaiton provided by
+ Eclipse WTP Facelets support.</p> <p><small><a
+ href="https://jira.jboss.org/browse/JBIDE-9366">Related
+ Jira</a></small></p> </td> </tr>
+
<tr>
<td colspan="2">
<hr />
@@ -74,7 +85,17 @@
</td>
<td valign="top">
<p>
- In case of some JBoss Tools validator (CDI, JSF, Seam) reports a false problem, you can disable the corresponding validation rule in Preferences via the new quick fix "Configure Problem Severity".
+ We now provide an "Configure Problem Severity"
+ quickfix for all
+ warnings done by JBoss Tools validator (CDI, JSF,
+ Seam). This is useful if your application uses
+ CDI programatically or you use CDI components that is
+ not detectable by the tooling. Then you can lower the
+ amount of possible false warnings.</p>
+
+ <p>Tip: Please report if you find false warnings you
+ believe the tools should be able to avoid reporting
+ in the first place.</p>
</p>
<img src="images/3.3.0.M5/quickFix.png"/><br/><br/>
<img src="images/3.3.0.M5/preferences.png"/>
Modified: trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-22 08:44:55 UTC (rev 37510)
+++ trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-22 08:46:12 UTC (rev 37511)
@@ -28,17 +28,96 @@
></a></p>
<table border="0" cellpadding="10" cellspacing="0"
width="80%">
+
<tr>
<td colspan="2">
<hr/>
+ <h3>General</h3>
+ <hr/>
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>OpenShift server adapter</b></td>
+ <td valign="top">
+ <p>
+ The server adapter for OpenShift has
+ changed from previous versions. Previously
+ OpenShift was an possible AS7 behavior, but
+ that made it hard/impossible to use together
+ with other application types such as PHP &
+ Ruby.
+ </p>
+ <p>
+ In this release OpenShift is its own server
+ type and does not have hard
+ dependencies to AS7 anymore.
+</p><p>
+ If you used the old server adapter then you
+ should delete the old and create a new
+ via the OpenShift Express Application
+ wizard to get the updated server type.
+ </p>
+ <p><img src="images/openshift-server-adapter.png" alt="openshift server adapter"/></p>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-9935">Related Jira</a></small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr/>
<h3>OpenShift Express Application Wizard</h3>
<hr/>
</td>
</tr>
+ <tr>
+ <td valign="top" align="left"><a
+ name="itemname3" id="itemname3"></a><b>Use Existing Projects</b></td>
+ <td valign="top">
+ <p>
+ The OpenShift Express Application wizard
+ previously only allowed you to import the
+ existing application installed to OpenShift
+ into your workspace.
+ </p>
+ <p>
+ It was then up to you to merge the demo with
+ your own application and push things to the
+ OpenShift PaaS. Our tooling did not assist
+ you in that case.
+ </p>
+ <p>
+ M5 we now support to setup your own
+ application directly for deployment to OpenShift. Just uncheck
+ <b>"Create New Project"</b> and choose
+ an existing project from your workspace, that
+ you want to publish to OpenShift. The
+ wizard will then copy OpenShift
+ configurations and enable git on
+ the project. You'll then be able to
+ push it to OpenShift via git or let the OpenShift Server
+ Adapter do that job for you.
+ </p>
+
+ <p><img
+ src="images/push-existing-project.png"
+ alt="push existing project"/></p>
+ <p><small><a
+ href="https://issues.jboss.org/browse/JBIDE-10171">Related
+ Jira</a></small></p> </td> </tr>
+
<tr>
+ <td colspan="2">
+ <hr/>
+ <h3>Cartridges</h3>
+ <hr/>
+ </td>
+ </tr>
+ <tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Embed Cartridges</b></td>
<td valign="top">
- The OpenShift Express Application wizard now allows you to embed cartridges to your OpenShift application.
+ You can now manage cartridges for your
+ OpenShift applition directly from JBoss Tools.
Cartridges add capabilities to your application. A typical usecase is to add a mysql database.
You allow your application to use a mysql database by embedding the mysql cartridge to it.
The OpenShift Express Application wizard will list all available cartridges and allow you to add/remove cartridges at will.
@@ -53,68 +132,28 @@
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Embed Jenkins</b></td>
<td valign="top">
- An even more exciting use case is to embed jenkins to your OpenShift application. That will turn OpenShift into an Continous Integration server.
+ OpenShift now has support for Jenkins, turning OpenShift into an Continous Integration server.
Anytime you push changes to OpenShift, a jenkins CI server will build your application.
- Our wizard allows you to embed the jenkins client. It will verify behind the scenes that you already have a jenkins application and
- prompt you to create one if you haven't yet.
- <p><img src="images/create-jenkins.png" alt="create jenkins"/></p>
- Credentials and url of your new jenkins instance will get reported to you accordingly.
+ The OpenShift Express Application wizard allows you to embed the jenkins client. It will verify behind the scenes that you already have a jenkins application and prompt you to create one if you haven't yet.
+
+ <p><img src="images/create-jenkins.png" alt="create jenkins"/></p>
+ Credentials and url of your new
+ jenkins instance will get reported to
+ you - keep those for future reference.
<p><img src="images/jenkins-creation-log.png" alt="jenkins creation log"/></p>
<p><small><a href="https://issues.jboss.org/browse/JBIDE-9927">Related Jira</a></small></p>
</td>
</tr>
+
<tr>
<td colspan="2">
<hr/>
</td>
</tr>
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>Push Existing Projects</b></td>
- <td valign="top">
- The OpenShift Express Application wizard in M4 allowed you to import the demo application (that the OpenShift PaaS creates initially) to your workspace.
- It was then up to you to merge the demo with your own application and push things to the OpenShift PaaS. Our tooling did not assist you in that case.
- In M5 we now allow you to push your own application directly. Just uncheck <b>"Create New Project"</b> and choose the project from your workspace, that you want to
- publish to OpenShift. The wizard will then copy OpenShift configurations and enable git on it. You'll then be able to manually push it to OpenShift
- or let our Server Adapter do that job for you.
- <p><img src="images/push-existing-project.png" alt="push existing project"/></p>
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-10171">Related Jira</a></small></p>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <hr/>
- </td>
- </tr>
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>OpenShift server adapter</b></td>
- <td valign="top">
- We also offer you an Eclipse WTP compliant OpenShift Server adapter that allows you to publish applications to OpenShift.
- The server adapter is created when you finish the OpenShift Express Application wizard. We already offered that server adapter in M4.
- We now turned it into its own distinct server type and made it work even more seamlessly.
- <p><img src="images/openshift-server-adapter.png" alt="openshift server adapter"/></p>
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-9935">Related Jira</a></small></p>
- </td>
- </tr>
+
+
<tr>
<td colspan="2">
- <hr/>
- <h3>OpenShift Express REST client</h3>
- <hr/>
- </td>
- </tr>
- <tr>
- <td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>REST Client</b></td>
- <td valign="top">
- We developed a client for the OpenShift Express REST service in M4. It pretty much offers all features that
- are currently available in the rhc-* command line tools (create/rename a domain, create/destroy applications,
- list all existing applications, available cartridges, read the application log, embed cartridges etc.). <br/>
- We moved it to github and joined forces with the OpenShift team.
- The official client is now maintained at <a href="https://github.com/bdecoste/openshift-java-client">https://github.com/bdecoste/openshift-java-client</a>
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-10068">Related Jira</a>, <a href="https://issues.jboss.org/browse/JBIDE-10455">Related Jira</a></small></p>
- </td>
- </tr>
- <tr>
- <td colspan="2">
<hr/>
<h3>Maven pom.xml editor</h3>
<hr/>
@@ -126,15 +165,15 @@
If you want to deploy your Web application to OpenShift Express, you will need to define an <strong><i>openshift</i></strong> maven profile.
It basically configures the maven build to generate a ROOT.war archive in the deployments folder of your project.
<p>
- In the pom.xml editor, create a <profiles> section if it doesn't exist and press <strong>CTRL+<space></strong> to trigger auto-completion,
+ In the pom.xml editor, create a <profiles> section if it doesn't exist and press <strong>CTRL+<space></strong> to trigger auto-completion,
an OpenShift Express Maven profile template is now available :
</p>
<p></p><img src="images/openshift-profile.png" alt="new OpenShift Express maven profile template"/></p>
Press enter to select and insert the <strong><i>openshift</i></strong> profile in your pom.xml.
<p><small><a href="https://issues.jboss.org/browse/JBIDE-10354">Related Jira</a></small></p>
</td>
- </tr>
- <!--
+ </tr>
+
<tr>
<td colspan="2">
<hr/>
@@ -145,18 +184,15 @@
<tr>
<td valign="top" align="left"><a name="itemname3" id="itemname3"></a><b>REST Client</b></td>
<td valign="top">
- We also developed a client for the OpenShift Express REST service. It pretty much offers all features that
+ We developed a client for the OpenShift Express REST service in M4. It offers most features that
are currently available in the rhc-* command line tools (create/rename a domain, create/destroy applications,
- list all existing applications, available cartridges, read the application log etc.). <br/>
- Even though it's pretty new, it's code base is pretty well tested since it's well covered by unit-tests and
- used in our application wizard and the <a href="https://github.com/forge/plugin-openshift-express">Forge OpenShift Express plugin</a>.
- The plug-in is currently still an osgi bundle, but we will strip its Eclipse dependencies and move it to github
- at some point.</br>
- You may check the current code in our <a href="http://anonsvn.jboss.org/repos/jbosstools/trunk/openshift/plugins/org.jbo...">SVN</a>.
- <p><small><a href="https://issues.jboss.org/browse/JBIDE-9591">Related Jira</a></small></p>
+ list all existing applications, available cartridges, read the application log, embed cartridges etc.). <br/>
+ We moved it to github and joined forces with the OpenShift team.
+ The official client is now maintained at <a href="https://github.com/bdecoste/openshift-java-client">https://github.com/bdecoste/openshift-java-client</a>
+ <p><small><a href="https://issues.jboss.org/browse/JBIDE-10068">Related Jira</a>, <a href="https://issues.jboss.org/browse/JBIDE-10455">Related Jira</a></small></p>
</td>
</tr>
- -->
+
</table>
</body>
Modified: trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.M5.html 2011-12-22 08:44:55 UTC (rev 37510)
+++ trunk/documentation/whatsnew/vpe/vpe-news-3.3.0.M5.html 2011-12-22 08:46:12 UTC (rev 37511)
@@ -45,12 +45,124 @@
<td valign="top">
<p>BrowserSim is a mobile browser simulator which is integrated into Eclipse as an external web browser. It allows to browse
web pages as if they are opened on a mobile device.</p>
- <p><img src="images/3.3.0.M5/9539.png" alt="Google Image search for 'RedHat'" title="Google Image search for 'RedHat'"/></p>
- <p><small>
+ <p><img src="images/3.3.0.M5/9539.png" alt="Google
+ Image search for 'RedHat'" title="Google Image search for
+ 'RedHat'"/></p>
+<p><small>
<a href="https://jira.jboss.org/jira/browse/JBIDE-9539">Related Jira</a>
</small></p>
</td>
</tr>
+
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <b><p>
+ External Browser setup
+ <p></b>
+ </td>
+ <td valign="top">
+ <p>You can enable BrowserSim as the default webbrowser
+ used in Eclipse Preferences. This will make it the
+ default browser used for actions such as "Run On
+ Server".
+ </p>
+ <p><img src="../images/browsersim_externalsetup.png"/></p>
+<p><small>
+
+ </small></p>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+
+ <tr>
+ <td valign="top" align="left">
+ <b><p>
+ BrowserSim Toolbar/Command
+ <p></b>
+ </td>
+ <td valign="top">
+ <p>You can also add Browser Simulator to the global
+ toolbar by using Window > Customize Perspective and
+ select "BrowserSim" under "Command Groups Availability".
+ </p>
+ <p><img src="../images/customizeperspective_browsersim.png"/></p>
+
+ <p>Then it becomes available in the global toolbar
+ via the "phone" icon</p>
+
+ <p><img src="../images/phoneicontoolbar.png"/></p>
+
+ <p>Finally you can also use quick access dialog
+ (Ctrl+3 or Cmd+3) to access the Browser Simulator.</p>
+
+ <p><img src="../images/quickaccessbrowser.png"/></p>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <b><p>
+ Rotate
+ <p></b>
+ </td>
+ <td valign="top">
+ <p>The simulator provides a quick "rotate" option to
+ toggle between portrait and landscape mode.</p>
+
+ <p><img src="../images/portraitbrowsersim.png"/></p>
+
+ <p><img src="../images/browsersimlandscape.png"/></p>
+
+ </td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2">
+ <hr />
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <b><p>
+ Device selection
+ <p></b>
+ </td>
+ <td valign="top">
+ <p>In the "Devices" menu you can select some
+ predefined Devices.
+ </p>
+
+ <p><img src="../images/deviceselection.png"/></p>
+
+ <p>If you choose "More..." you can redefine and add
+ new predefined devices with proper names, useragents
+ and dimensions.</p>
+
+ <p><img src="../images/browsersimdeviceedit.png"/></p>
+ </td>
+ </tr>
+
+
+
<tr>
<td colspan="2">
<hr />
12 years, 5 months
JBoss Tools SVN: r37510 - trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/factory.
by jbosstools-commits@lists.jboss.org
Author: ljelinko
Date: 2011-12-22 03:44:55 -0500 (Thu, 22 Dec 2011)
New Revision: 37510
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/factory/DefaultMatchersFactory.java
Log:
changed constructor visibility
Modified: trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/factory/DefaultMatchersFactory.java
===================================================================
--- trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/factory/DefaultMatchersFactory.java 2011-12-22 07:17:49 UTC (rev 37509)
+++ trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/factory/DefaultMatchersFactory.java 2011-12-22 08:44:55 UTC (rev 37510)
@@ -13,7 +13,7 @@
*/
public class DefaultMatchersFactory {
- public DefaultMatchersFactory() {
+ private DefaultMatchersFactory() {
// not to be instantiated
}
12 years, 5 months
JBoss Tools SVN: r37509 - in trunk/documentation/whatsnew: as and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2011-12-22 02:17:49 -0500 (Thu, 22 Dec 2011)
New Revision: 37509
Modified:
trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html
trunk/documentation/whatsnew/core/core-news-3.3.0.M5.html
trunk/documentation/whatsnew/examples/examples-news-3.3.0.M5.html
trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html
trunk/documentation/whatsnew/hibernate/hibernate-news-3.5.0.M5.html
trunk/documentation/whatsnew/index.html
trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
trunk/documentation/whatsnew/teiid/teiid-news-7.6.html
trunk/documentation/whatsnew/ws/ws-news-1.2.2.M5.html
Log:
JBIDE-10368 fix navigation links between nandn
Modified: trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/as/as-news-3.3.0.M5.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -21,7 +21,7 @@
<h1>JBoss AS Tools 3.3.0.M5 What's New</h1>
- <p align="right"><a href="../index.html">< Main Index</a> <a href="../openshift/openshift-news-2.3.0.M5.html">OpenShift Tools></a></p>
+ <p align="right"><a href="../index.html">< Main Index</a> <a href="../jst/jst-news-3.3.0.M5.html">JST/JSF Tools></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
<tr>
Modified: trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/central/central-news-1.0.0.M5.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -23,7 +23,9 @@
<body>
<h1>JBoss Central 1.0.0.M5 What's New</h1>
-<p align="right"><a href="../index.html">< Main Index</a>
+<p align="right"><a href="../index.html">< Main Index</a> <a
+href="../teiid/teiid-news-7.6.html">Teiid Designer ></a>
+
</p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
Modified: trunk/documentation/whatsnew/core/core-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/core/core-news-3.3.0.M5.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/core/core-news-3.3.0.M5.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -24,7 +24,7 @@
<h1>Core/Common 3.3.0.M5 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a>
-<a href="../jst/jst-news-3.3.0.M5.html">JST/JSF 3.3.0.M5 ></a>
+<a href="../openshift/openshift-news-2.3.0.M5.html">OpenShift Tools ></a>
</p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
Modified: trunk/documentation/whatsnew/examples/examples-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/examples/examples-news-3.3.0.M5.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/examples/examples-news-3.3.0.M5.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -23,7 +23,7 @@
<body>
<h1>Examples 3.3.0.M5 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
-href="../central/central-news-1.0.0.M5.html">JBoss Central ></a>
+href="../maven/maven-news-3.3.0.M5.html">Maven Tools ></a>
</p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
Modified: trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/forge/forge-news-3.3.0.M5.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -24,7 +24,7 @@
<h1>Forge Tools 3.3.0.M5 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
- href="../index.html">Other ></a></p>
+ href="../hibernate/hibernate-news-3.5.0.M5.html">Hibernate Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
Modified: trunk/documentation/whatsnew/hibernate/hibernate-news-3.5.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/hibernate/hibernate-news-3.5.0.M5.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/hibernate/hibernate-news-3.5.0.M5.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -24,7 +24,7 @@
<h1>Hibernate tools 3.5.0.M5 What's New</h1>
<p align="right"><a href="../index.html">< Main
- Index</a> <a href="../as/as-news-3.3.0.M5.html">JBoss AS Tools ></a></p>
+ Index</a> <a href="../examples/examples-news-3.3.0.M5.html">JBoss AS Tools ></a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/index.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -39,20 +39,17 @@
<p><a href="core/core-news-3.3.0.M5.html">Core/General</a></p>
<p><a href="openshift/openshift-news-2.3.0.M5.html">OpenShift
Tools</a></p>
-
<p><a href="as/as-news-3.3.0.M5.html">JBoss AS Server
Tools</a></p>
<p><a href="jst/jst-news-3.3.0.M5.html">JST/JSF</a></p>
<p><a href="vpe/vpe-news-3.3.0.M5.html">Visual Page Editor</a></p>
<p><a href="cdi/cdi-news-3.3.0.M5.html">CDI/Seam 3 Tools</a></p>
<p><a href="forge/forge-news-3.3.0.M5.html">Forge Tools</a></p>
- <p><a href="hibernate/hibernate-news-3.5.0.M5.html">Hibernate Tools</a></p>
+ <p><a href="hibernate/hibernate-news-3.5.0.M5.html">Hibernate Tools</a></p>
<p><a href="examples/examples-news-3.3.0.M5.html">Project Examples</a></p>
<p><a href="maven/maven-news-3.3.0.M5.html">Maven Tools</a></p>
-
- <p><a href="central/central-news-1.0.0.M5.html">JBoss
- Central</a></p>
- <p><a href="teiid/teiid-news-7.6.html">Teiid Designer</a></p>
+ <p><a href="central/central-news-1.0.0.M5.html">JBoss Central</a></p>
+ <p><a href="teiid/teiid-news-7.6.html">Teiid Designer</a></p>
<p><a href="ws/ws-news-1.2.2.M5.html">Webservices Tools</a></p>
</td>
Modified: trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html
===================================================================
--- trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/openshift/openshift-news-2.3.0.M5.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -24,7 +24,7 @@
<h1>OpenShift 2.3.0.M5 What's New</h1>
<p align="right"><a href="../index.html">< Main Index</a> <a
- href="../maven/maven-news-3.3.0.M5.html">Maven Tools
+ href="../as/as-news-3.3.0.M5.html">Server Tools
></a></p>
<table border="0" cellpadding="10" cellspacing="0"
width="80%">
Modified: trunk/documentation/whatsnew/teiid/teiid-news-7.6.html
===================================================================
--- trunk/documentation/whatsnew/teiid/teiid-news-7.6.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/teiid/teiid-news-7.6.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -22,7 +22,8 @@
</head>
<body>
<h1>Teiid Designer 7.6 What's New</h1>
-<p align="right"><a href="../index.html">< Main Index</a></p>
+<p align="right"><a href="../index.html">< Main Index</a>
+<a href="../ws/ws-news-1.2.2.M5.html">Webservices ></a></p>
<p>Last revised Dec 08, 2011</p>
<p><b>Teiid Designer</b> is a graphical data modeling tool that enables
rapid definition, integration, management and testing of data services
Modified: trunk/documentation/whatsnew/ws/ws-news-1.2.2.M5.html
===================================================================
--- trunk/documentation/whatsnew/ws/ws-news-1.2.2.M5.html 2011-12-22 01:24:18 UTC (rev 37508)
+++ trunk/documentation/whatsnew/ws/ws-news-1.2.2.M5.html 2011-12-22 07:17:49 UTC (rev 37509)
@@ -23,8 +23,7 @@
<body>
<h1>WS tools 3.3.0 M5 What's New</h1>
-<p align="right"><a href="../index.html">< Main Index</a> <a
-href="../deltacloud/deltacloud-news-0.2.0.M2.html">DeltaCloud Tools ></a></p>
+<p align="right"><a href="../index.html">< Main Index</a></p>
<table border="0" cellpadding="10" cellspacing="0" width="80%">
12 years, 5 months
JBoss Tools SVN: r37508 - trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-12-21 20:24:18 -0500 (Wed, 21 Dec 2011)
New Revision: 37508
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationErrorManager.java
Log:
JBIDE-10187
https://issues.jboss.org/browse/JBIDE-10187
Values in annotation are checked for null.
Modified: trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationErrorManager.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationErrorManager.java 2011-12-22 00:32:16 UTC (rev 37507)
+++ trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/ValidationErrorManager.java 2011-12-22 01:24:18 UTC (rev 37508)
@@ -195,11 +195,15 @@
warnings = (Object[])v;
} else if(v instanceof String) {
warnings = new String[]{v.toString()};
+ } else {
+ continue;
}
for (Object warning : warnings) {
- String trimed = warning.toString().trim();
+ if(warning == null) {
+ continue;
+ }
boolean found = false;
- if(trimed.equals(ALL_WARNINGS)) {
+ if(warning.equals(ALL_WARNINGS)) {
found = true;
} else {
for (String name : names) {
12 years, 5 months
JBoss Tools SVN: r37507 - in trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java: impl and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-12-21 19:32:16 -0500 (Wed, 21 Dec 2011)
New Revision: 37507
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IJavaAnnotation.java
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationDeclaration.java
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationLiteral.java
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/JavaAnnotation.java
Log:
JBIDE-10187
https://issues.jboss.org/browse/JBIDE-10187
Correct implementation of AnnotationDeclaration.getParentElement()
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IJavaAnnotation.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IJavaAnnotation.java 2011-12-21 23:56:44 UTC (rev 37506)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IJavaAnnotation.java 2011-12-22 00:32:16 UTC (rev 37507)
@@ -11,6 +11,7 @@
package org.jboss.tools.common.java;
import org.eclipse.core.resources.IResource;
+import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.IMemberValuePair;
import org.eclipse.jdt.core.IType;
@@ -49,6 +50,13 @@
*
* @return Java element on which or for which this annotation was created
*/
+ public IJavaElement getParentElement();
+
+ /**
+ * Returns Java member on which or for which this annotation was created.
+ *
+ * @return Java member on which or for which this annotation was created
+ */
public IMember getParentMember();
/**
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationDeclaration.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationDeclaration.java 2011-12-21 23:56:44 UTC (rev 37506)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationDeclaration.java 2011-12-22 00:32:16 UTC (rev 37507)
@@ -179,8 +179,6 @@
@Override
public IJavaElement getSourceElement() {
- // Should we return the corresponding java element instead of member?
- // If this is an annotation declared on local variable (method parameter) then the parent member and element are not the same object.
- return getSourceMember();
+ return annotation.getParentElement();
}
}
\ No newline at end of file
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationLiteral.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationLiteral.java 2011-12-21 23:56:44 UTC (rev 37506)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/AnnotationLiteral.java 2011-12-22 00:32:16 UTC (rev 37507)
@@ -11,6 +11,7 @@
package org.jboss.tools.common.java.impl;
import org.eclipse.core.resources.IResource;
+import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.IMemberValuePair;
import org.eclipse.jdt.core.ISourceRange;
@@ -83,6 +84,10 @@
return null;
}
+ public IJavaElement getParentElement() {
+ return null;
+ }
+
public IMemberValuePair[] getMemberValuePairs() {
return memberValues;
}
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/JavaAnnotation.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/JavaAnnotation.java 2011-12-21 23:56:44 UTC (rev 37506)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/impl/JavaAnnotation.java 2011-12-22 00:32:16 UTC (rev 37507)
@@ -86,6 +86,10 @@
return null;
}
+ public IJavaElement getParentElement() {
+ return annotation.getParent();
+ }
+
public IMemberValuePair[] getMemberValuePairs() {
try {
return annotation.getMemberValuePairs();
12 years, 5 months
JBoss Tools SVN: r37506 - trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-12-21 18:56:44 -0500 (Wed, 21 Dec 2011)
New Revision: 37506
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/SuppressWarningsTests.java
Log:
https://issues.jboss.org/browse/JBIDE-10187 Add support for a @SuppressWarnings
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/SuppressWarningsTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/SuppressWarningsTests.java 2011-12-21 23:50:20 UTC (rev 37505)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/SuppressWarningsTests.java 2011-12-21 23:56:44 UTC (rev 37506)
@@ -52,7 +52,7 @@
public void testWOSuppress() throws Exception {
IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/AnotherFish.java");
- AbstractResourceMarkerTest.assertMarkerIsCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 20, 24, 28, 31, 39, 42);
+ AbstractResourceMarkerTest.assertMarkerIsCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 20, 24, 28, 31, 39, 42, 45);
}
public void testClass() throws Exception {
12 years, 5 months
JBoss Tools SVN: r37505 - trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-12-21 18:50:20 -0500 (Wed, 21 Dec 2011)
New Revision: 37505
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/Parameter.java
Log:
JBIDE-10187
https://issues.jboss.org/browse/JBIDE-10187
Correct implementation of Parameter.getSourceElement()
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/Parameter.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/Parameter.java 2011-12-21 23:49:08 UTC (rev 37504)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/Parameter.java 2011-12-21 23:50:20 UTC (rev 37505)
@@ -22,6 +22,7 @@
public Parameter() {}
+ @Override
public ParameterDefinition getDefinition() {
return (ParameterDefinition)definition;
}
@@ -44,10 +45,12 @@
return getDefinition().getName();
}
+ @Override
public IParametedType getMemberType() {
return getDefinition().getType();
}
+ @Override
public IParametedType getType() {
if(getDefinition().getOverridenType() != null) {
return getDefinition().getOverridenType();
@@ -55,6 +58,7 @@
return getDefinition().getType();
}
+ @Override
public IClassBean getClassBean() {
return beanMethod.getClassBean();
}
@@ -63,6 +67,12 @@
return getDefinition().getMethodDefinition().getMethod();
}
+ @Override
+ public IJavaElement getSourceElement() {
+ return getDefinition().getVariable();
+ }
+
+ @Override
protected ISourceReference getSourceReference() {
return getDefinition().getVariable();
}
12 years, 5 months
JBoss Tools SVN: r37504 - trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-12-21 18:49:08 -0500 (Wed, 21 Dec 2011)
New Revision: 37504
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIBean.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIInjectionPoint.java
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifier.java
Log:
https://issues.jboss.org/browse/JBIDE-10187 Add support for a @SuppressWarnings
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIBean.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIBean.java 2011-12-21 23:31:22 UTC (rev 37503)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIBean.java 2011-12-21 23:49:08 UTC (rev 37504)
@@ -26,6 +26,7 @@
import org.jboss.tools.cdi.core.IScopeDeclaration;
import org.jboss.tools.cdi.core.IStereotypeDeclaration;
import org.jboss.tools.common.java.IAnnotationDeclaration;
+import org.jboss.tools.common.java.IJavaSourceReference;
import org.jboss.tools.common.java.IParametedType;
import org.jboss.tools.common.java.ITypeDeclaration;
import org.jboss.tools.common.text.ITextSourceReference;
@@ -73,7 +74,7 @@
}
@Override
- public ITextSourceReference getAnnotationPosition(
+ public IJavaSourceReference getAnnotationPosition(
String annotationTypeName) {
return null;
}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIInjectionPoint.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIInjectionPoint.java 2011-12-21 23:31:22 UTC (rev 37503)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIInjectionPoint.java 2011-12-21 23:49:08 UTC (rev 37504)
@@ -13,6 +13,7 @@
import org.jboss.tools.cdi.core.IInjectionPoint;
import org.jboss.tools.cdi.core.IQualifierDeclaration;
import org.jboss.tools.common.java.IAnnotationDeclaration;
+import org.jboss.tools.common.java.IJavaSourceReference;
import org.jboss.tools.common.java.IParametedType;
import org.jboss.tools.common.text.ITextSourceReference;
@@ -81,7 +82,7 @@
}
@Override
- public ITextSourceReference getAnnotationPosition(String annotationTypeName) {
+ public IJavaSourceReference getAnnotationPosition(String annotationTypeName) {
return null;
}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifier.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifier.java 2011-12-21 23:31:22 UTC (rev 37503)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/testmodel/CDIQualifier.java 2011-12-21 23:49:08 UTC (rev 37504)
@@ -10,7 +10,7 @@
import org.jboss.tools.cdi.core.ICDIProject;
import org.jboss.tools.cdi.core.IQualifier;
import org.jboss.tools.common.java.IAnnotationDeclaration;
-import org.jboss.tools.common.text.ITextSourceReference;
+import org.jboss.tools.common.java.IJavaSourceReference;
public class CDIQualifier implements IQualifier{
private ICDIProject project;
@@ -82,7 +82,7 @@
}
@Override
- public ITextSourceReference getAnnotationPosition(String annotationTypeName) {
+ public IJavaSourceReference getAnnotationPosition(String annotationTypeName) {
return null;
}
12 years, 5 months
JBoss Tools SVN: r37503 - in trunk/cdi/tests/org.jboss.tools.cdi.core.test: src/org/jboss/tools/cdi/core/test/tck/validation and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-12-21 18:31:22 -0500 (Wed, 21 Dec 2011)
New Revision: 37503
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/suppresswarnings/AnotherFish.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/suppresswarnings/Fish.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/SuppressWarningsTests.java
Log:
https://issues.jboss.org/browse/JBIDE-10187 Add support for a @SuppressWarnings
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/suppresswarnings/AnotherFish.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/suppresswarnings/AnotherFish.java 2011-12-21 23:13:24 UTC (rev 37502)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/suppresswarnings/AnotherFish.java 2011-12-21 23:31:22 UTC (rev 37503)
@@ -38,4 +38,10 @@
@Named("fishDulipcatedNameSecond")
public void setFish3BROKEN(Fish fishBROKEN) {
}
+
+ @Inject Fish fish4BROKEN;
+
+ @Inject
+ public void initializeBROKEN((a)javax.enterprise.event.Observes String stringBROKEN) {
+ }
}
\ No newline at end of file
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/suppresswarnings/Fish.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/suppresswarnings/Fish.java 2011-12-21 23:13:24 UTC (rev 37502)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/suppresswarnings/Fish.java 2011-12-21 23:31:22 UTC (rev 37503)
@@ -44,4 +44,11 @@
@Named("fishDulipcatedName")
public void setFish3OK(Fish fishOK) {
}
+
+ @SuppressWarnings("cdi")
+ @Inject Fish fish4OK;
+
+ @Inject
+ public void initializeBROKEN(@SuppressWarnings({"cdi-annotated-observer", "cdi-ambiguous-dependency"}) @javax.enterprise.event.Observes String stringOK) {
+ }
}
\ No newline at end of file
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/SuppressWarningsTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/SuppressWarningsTests.java 2011-12-21 23:13:24 UTC (rev 37502)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/validation/SuppressWarningsTests.java 2011-12-21 23:31:22 UTC (rev 37503)
@@ -50,6 +50,11 @@
restorePreferences(CDIPreferences.PRODUCER_ANNOTATED_INJECT);
}
+ public void testWOSuppress() throws Exception {
+ IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/AnotherFish.java");
+ AbstractResourceMarkerTest.assertMarkerIsCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 20, 24, 28, 31, 39, 42);
+ }
+
public void testClass() throws Exception {
IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/Fish.java");
AbstractResourceMarkerTest.assertMarkerIsNotCreated(file, MessageFormat.format(CDIValidationMessages.DUPLCICATE_EL_NAME, ".*"), 8);
@@ -84,9 +89,6 @@
IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/Fish.java");
AbstractResourceMarkerTest.assertMarkerIsNotCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 22);
AbstractResourceMarkerTest.assertMarkerIsCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 31);
-
- file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/AnotherFish.java");
- AbstractResourceMarkerTest.assertMarkerIsCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 20, 24, 28, 31, 39);
}
public void testMultipleSuppress() throws Exception {
@@ -115,9 +117,11 @@
public void testNameAll() throws Exception {
IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/Fish.java");
AbstractResourceMarkerTest.assertMarkerIsNotCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 35);
+ }
- file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/AnotherFish.java");
- AbstractResourceMarkerTest.assertMarkerIsCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 20, 24, 28, 31, 39);
+ public void testGroupName() throws Exception {
+ IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/Fish.java");
+ AbstractResourceMarkerTest.assertMarkerIsNotCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 49);
}
/**
@@ -170,4 +174,21 @@
AbstractResourceMarkerTest.assertMarkerIsNotCreated(file, CDIValidationMessages.AMBIGUOUS_INJECTION_POINTS, 45);
AbstractResourceMarkerTest.assertMarkerIsNotCreated(file, MessageFormat.format(CDIValidationMessages.DUPLCICATE_EL_NAME, ".*"), 44);
}
+
+ public void testWarningsOnAnnotatedParam() throws Exception {
+ try {
+ modifyPreferences(CDIPreferences.OBSERVER_ANNOTATED_INJECT);
+ boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
+ IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/Fish.java");
+ TestUtil.validate(file);
+ AbstractResourceMarkerTest.assertMarkerIsCreated(file, CDIValidationMessages.OBSERVER_ANNOTATED_INJECT, 51);
+ AbstractResourceMarkerTest.assertMarkerIsNotCreated(file, CDIValidationMessages.OBSERVER_ANNOTATED_INJECT, 52);
+ ResourcesUtils.setBuildAutomatically(saveAutoBuild);
+ } finally {
+ restorePreferences(CDIPreferences.OBSERVER_ANNOTATED_INJECT);
+ }
+
+ IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/suppresswarnings/AnotherFish.java");
+ AbstractResourceMarkerTest.assertMarkerIsCreated(file, CDIValidationMessages.OBSERVER_ANNOTATED_INJECT, 44, 45);
+ }
}
\ No newline at end of file
12 years, 5 months
JBoss Tools SVN: r37502 - in trunk: cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-12-21 18:13:24 -0500 (Wed, 21 Dec 2011)
New Revision: 37502
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IParameter.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AbstractBeanElement.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIAnnotationElement.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/EventBean.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/StereotypeElement.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/AbstractMemberDefinition.java
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IAnnotated.java
Log:
https://issues.jboss.org/browse/JBIDE-10187 Add support for a @SuppressWarnings
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IParameter.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IParameter.java 2011-12-21 22:35:17 UTC (rev 37501)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/IParameter.java 2011-12-21 23:13:24 UTC (rev 37502)
@@ -13,7 +13,6 @@
import java.util.Set;
import org.jboss.tools.common.java.IParametedType;
-import org.jboss.tools.common.text.ITextSourceReference;
/**
* Represents a parameter of a method which is a member of bean class.
@@ -37,18 +36,6 @@
String getName();
/**
- * Get position of element annotation of a certain annotation type.
- * This method currently replaces IAnnotated.getAnnotation method
- * which cannot be implemented until JDT extend model for parameters.
- *
- * @param annotationTypeName
- * the name of the annotation type
- * @return the element annotation of the given annotation type, or a null
- * value
- */
- ITextSourceReference getAnnotationPosition(String annotationTypeName);
-
- /**
* Returns the bean method which has this parameter.
*
* @return the bean method which has this parameter
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AbstractBeanElement.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AbstractBeanElement.java 2011-12-21 22:35:17 UTC (rev 37501)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AbstractBeanElement.java 2011-12-21 23:13:24 UTC (rev 37502)
@@ -52,6 +52,7 @@
import org.jboss.tools.common.java.IAnnotated;
import org.jboss.tools.common.java.IAnnotationDeclaration;
import org.jboss.tools.common.java.IJavaReference;
+import org.jboss.tools.common.java.IJavaSourceReference;
import org.jboss.tools.common.java.IParametedType;
import org.jboss.tools.common.java.ITypeDeclaration;
import org.jboss.tools.common.java.ParametedType;
@@ -109,7 +110,7 @@
* (non-Javadoc)
* @see org.jboss.tools.cdi.core.IAnnotated#getAnnotationPosition(java.lang.String)
*/
- public ITextSourceReference getAnnotationPosition(String annotationTypeName) {
+ public IJavaSourceReference getAnnotationPosition(String annotationTypeName) {
return getAnnotation(annotationTypeName);
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIAnnotationElement.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIAnnotationElement.java 2011-12-21 22:35:17 UTC (rev 37501)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/CDIAnnotationElement.java 2011-12-21 23:13:24 UTC (rev 37502)
@@ -22,7 +22,7 @@
import org.jboss.tools.cdi.internal.core.impl.definition.AnnotationMemberDefinition;
import org.jboss.tools.common.java.IAnnotated;
import org.jboss.tools.common.java.IAnnotationDeclaration;
-import org.jboss.tools.common.text.ITextSourceReference;
+import org.jboss.tools.common.java.IJavaSourceReference;
/**
*
@@ -113,7 +113,7 @@
* @see org.jboss.tools.common.java.IAnnotated#getAnnotationPosition(java.lang.String)
*/
@Override
- public ITextSourceReference getAnnotationPosition(String annotationTypeName) {
+ public IJavaSourceReference getAnnotationPosition(String annotationTypeName) {
return definition.getAnnotationPosition(annotationTypeName);
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/EventBean.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/EventBean.java 2011-12-21 22:35:17 UTC (rev 37501)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/EventBean.java 2011-12-21 23:13:24 UTC (rev 37502)
@@ -15,6 +15,7 @@
import org.jboss.tools.cdi.core.IScopeDeclaration;
import org.jboss.tools.cdi.core.IStereotypeDeclaration;
import org.jboss.tools.common.java.IAnnotationDeclaration;
+import org.jboss.tools.common.java.IJavaSourceReference;
import org.jboss.tools.common.java.IParametedType;
import org.jboss.tools.common.java.ITypeDeclaration;
import org.jboss.tools.common.text.ITextSourceReference;
@@ -60,7 +61,7 @@
return null;
}
- public ITextSourceReference getAnnotationPosition(String annotationTypeName) {
+ public IJavaSourceReference getAnnotationPosition(String annotationTypeName) {
return null;
}
@@ -185,7 +186,5 @@
@Override
public void open() {
- // TODO Auto-generated method stub
-
}
}
\ No newline at end of file
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/StereotypeElement.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/StereotypeElement.java 2011-12-21 22:35:17 UTC (rev 37501)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/StereotypeElement.java 2011-12-21 23:13:24 UTC (rev 37502)
@@ -23,7 +23,7 @@
import org.jboss.tools.cdi.core.IStereotype;
import org.jboss.tools.cdi.core.IStereotypeDeclaration;
import org.jboss.tools.common.java.IAnnotationDeclaration;
-import org.jboss.tools.common.text.ITextSourceReference;
+import org.jboss.tools.common.java.IJavaSourceReference;
/**
*
@@ -148,7 +148,7 @@
* (non-Javadoc)
* @see org.jboss.tools.cdi.core.IAnnotated#getAnnotationPosition(java.lang.String)
*/
- public ITextSourceReference getAnnotationPosition(String annotationTypeName) {
+ public IJavaSourceReference getAnnotationPosition(String annotationTypeName) {
return getAnnotation(annotationTypeName);
}
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/AbstractMemberDefinition.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/AbstractMemberDefinition.java 2011-12-21 22:35:17 UTC (rev 37501)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/AbstractMemberDefinition.java 2011-12-21 23:13:24 UTC (rev 37502)
@@ -36,6 +36,7 @@
import org.jboss.tools.common.java.IAnnotated;
import org.jboss.tools.common.java.IAnnotationDeclaration;
import org.jboss.tools.common.java.IJavaAnnotation;
+import org.jboss.tools.common.java.IJavaSourceReference;
import org.jboss.tools.common.java.impl.JavaAnnotation;
import org.jboss.tools.common.text.ITextSourceReference;
@@ -195,9 +196,9 @@
/*
* (non-Javadoc)
- * @see org.jboss.tools.cdi.core.IAnnotated#getAnnotationPosition(java.lang.String)
+ * @see org.jboss.tools.common.java.IAnnotated#getAnnotationPosition(java.lang.String)
*/
- public ITextSourceReference getAnnotationPosition(String annotationTypeName) {
+ public IJavaSourceReference getAnnotationPosition(String annotationTypeName) {
return getAnnotation(annotationTypeName);
}
Modified: trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IAnnotated.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IAnnotated.java 2011-12-21 22:35:17 UTC (rev 37501)
+++ trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/java/IAnnotated.java 2011-12-21 23:13:24 UTC (rev 37502)
@@ -12,8 +12,6 @@
import java.util.List;
-import org.jboss.tools.common.text.ITextSourceReference;
-
/**
* Represents a model element that can be annotated.
*
@@ -49,7 +47,7 @@
* @return the text source reference of the annotation of the given annotation type, or a null
* value
*/
- ITextSourceReference getAnnotationPosition(String annotationTypeName);
+ IJavaSourceReference getAnnotationPosition(String annotationTypeName);
/**
* Determine if the element has an annotation of a certain annotation type.
12 years, 5 months