Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
JBIDE-24880: Split JAX-WS and JAX-RS plugins (#283)

Signed-off-by: Rastislav Wagner <rawagner@redhat.com>

    • -137
    • +0
    ./action/OpenInWSTesterAction.java
    • -77
    • +0
    ./action/OpenInWSTesterActionProvider.java
  1. … 507 more files in changeset.
JBIDE-18690 - ResourceException while deleting project

  1. … 2 more files in changeset.
JBIDE-11766 - Work with "Annotation Properties" view breaks JAX-RS explorer

- Using jobs to process Java changes and Resource changes, with a scheduling rule

to avoid concurrency (race conditions).

- Fixing unit tests that now need to wait until the jobs (running asynchronously in another thread)

are done before doing the assertions, with a timeout (set to a lage enough value to allow for debugging)

- Fixed usage of compilation unit's working copy vs primary copy in some tests.

- Calling "ICompilationUnit.makeConsistent(IProgressMonitor)" resolves the problem where in some

cases, some JAX-RS annotations would not be "seen" by the JAX-RS tooling, resulting in elements being removed

- Removed the CompilationUnitRepository which worked as a cache for the Compilation Units AST, but could contain stale data

- Changed the 'Refresh Action' to trigger a real metamodel build ad then refresh the UI, which avoids the need to perform a project build.

  1. … 52 more files in changeset.
JBIDE-11766 - Work with "Annotation Properties" view breaks JAX-RS explorer

- Using jobs to process Java changes and Resource changes, with a scheduling rule

to avoid concurrency (race conditions).

- Fixing unit tests that now need to wait until the jobs (running asynchronously in another thread)

are done before doing the assertions, with a timeout (set to a lage enough value to allow for debugging)

- Fixed usage of compilation unit's working copy vs primary copy in some tests.

- Calling "ICompilationUnit.makeConsistent(IProgressMonitor)" resolves the problem where in some

cases, some JAX-RS annotations would not be "seen" by the JAX-RS tooling, resulting in elements being removed

- Removed the CompilationUnitRepository which worked as a cache for the Compilation Units AST, but could contain stale data

- Changed the 'Refresh Action' to trigger a real metamodel build ad then refresh the UI, which avoids the need to perform a project build.

  1. … 52 more files in changeset.
JBIDE-16163 - Missing update in JAX-RS explorer when facing to quick change in code

Accepting and processing events of type POST_CHANGE and POST_RECONCILE as one or the other

happens, depending if the change and save occurred at the same time (almost) or not.

  1. … 18 more files in changeset.
JBIDE-17296 - Missing warning decorator on the "JAX-RS Web Services" node when no application is defined

Also includes fixes for:

- JBIDE-17078 - JAX-RS Problems doesn't appears after the JAX-RS Support is activated

- JBIDE-17771 - Trigger validation when JAX-RS nature is added on a project

- JBIDE-18068 - JAX-RS Explorer doesn't have "expand" icon

- JBIDE-18114 - Invalid state of JAX-RS Web Services node in Project Explorer after JAX-RS Support removal

    • -58
    • +66
    ./UriMappingsContentProvider.java
  1. … 46 more files in changeset.
JBIDE-18022 - For JBIDE 4.2.0.CR1: Ensure copyrights and provider names are correct in all plugins and features [Webservices]

    • -1
    • +1
    ./UriMappingsLabelProviderMessages.java
    • -0
    • +10
    ./UriPathTemplateElementAdapterFactory.java
    • -1
    • +1
    ./UriPathTemplateMediaTypeMappingElement.java
    • -1
    • +1
    ./UriPathTemplateMethodMappingElement.java
    • -1
    • +1
    ./action/CopyToClipboardActionProvider.java
    • -1
    • +1
    ./action/CreateResourceActionProvider.java
  1. … 363 more files in changeset.
JBIDE-17653 - Node 'JAX-RS Web Services' doesn't appear after JAX-RS Support is added

    • -41
    • +47
    ./UriMappingsContentProvider.java
  1. … 13 more files in changeset.
JBIDE-16825 - Provide support for new @BeanParam JAX-RS Annotation

Also implemented JBIDE-17575 - Support JAX-RS annotations on bean properties

Improved JUnit tests speed by avoiding building a full metamodel for each test

  1. … 142 more files in changeset.
JBIDE-17296 - Missing warning decorator on the "JAX-RS Web Services" node when no application is defined

"JAX-RS Web Services" node in project explorer shows a "warning" decorator (by default)

if no application was defined, unless no JAX-RS element exists in the project.

  1. … 7 more files in changeset.
JBIDE-17151 - Improve the Restful Services Wizard

    • -46
    • +51
    ./UriMappingsContentProvider.java
    • -0
    • +77
    ./action/CreateResourceAction.java
    • -0
    • +76
    ./action/CreateResourceActionProvider.java
  1. … 46 more files in changeset.
JBIDE-15548 - Use JUnit @Rules instead of inheritance in test cases

  1. … 56 more files in changeset.
JBIDE-15505 - Exception in JAXRS at startup

Added a check for null metamodel before calling the JaxrsMetamodel#removeListener() method

JBIDE-15505 - Exception in JAXRS at startup

Added a check for null metamodel before calling the JaxrsMetamodel#removeListener() method

JBIDE-15599 - Changes on a subresource locator fields are not propagated to the JAX-RS Explorer

Registered the URI Mappings Content Provider (in the UI) when the JAX-RS Web Services node is

expanded. This avoids the case where in some circumstances, the JAX-RS metamodel would have no

listener to notify when JAX-RS endpoints changed.

Also edited the log messages for sake of readability

  1. … 1 more file in changeset.
JBIDE-15599 - Changes on a subresource locator fields are not propagated to the JAX-RS Explorer

Registered the URI Mappings Content Provider (in the UI) when the JAX-RS Web Services node is

expanded. This avoids the case where in some circumstances, the JAX-RS metamodel would have no

listener to notify when JAX-RS endpoints changed.

Also edited the log messages for sake of readability

  1. … 1 more file in changeset.
JBIDE-15039 - JAX-RS Problem decorator not shown on the Project Explorer node

Main refactoring/changes in this PR consist in:

- compare the problem level of each JAX-RS element before vs after the validation, and

in case of change, notify the metamodel. The metamodel will look for all affected Endpoints and

send 'problem level change' notification to the listeners (here, the UI). In turn, the UI will *update*

the associated node (update -> no refresh for sub nodes) to get a proper image decorator.

- same logix with the metamodel itself, except that the public problem level includes the problem level of the

JAX-RS elements, which means that the 'JAX-RS Web Services' node now reflects the whole Metamodel and thus, displays the

global problem level.

This new UI refresh strategy also reduces the number of times refresh occurred (there's now a single refresh per affected element, even

if this element has multiple problems).

- also fixed a problem where the UI listener would only be registered once the "JAX-RS Web Services" node was expended

    • -17
    • +79
    ./UriMappingsContentProvider.java
  1. … 26 more files in changeset.
JBIDE-15039 - JAX-RS Problem decorator not shown on the Project Explorer node

Adding notification each time a JAX-RS element is validated so that it's UI element gets refreshed

Also 'update' the parent node element to show/hide the problem decorator

  1. … 5 more files in changeset.
JBIDE-15031 - JAX-RS Metamodel builder called too many times during project build

Do not launch a build job when the metamodel already exist and is being initialized.

applied JBIDE-14913 to beta2 branch

    • -228
    • +186
    ./UriMappingsContentProvider.java
    • -157
    • +204
    ./UriPathTemplateCategory.java
  1. … 4 more files in changeset.
JBIDE-14913 - JAX-RS Web Services node is empty after project import or workbench startup

displaying the "Loading..." node when the Metamodel is being built

Using a proper Mutex Rule to avoid multiple concurrent builds

Registering the Metamodel Listener at the right moment and only once, so that changes

can be applied on the UI

    • -62
    • +20
    ./UriMappingsContentProvider.java
  1. … 4 more files in changeset.
JBIDE-13985 - Remove "REST" in "JAX-RS REST Web Services"

Done and externalized labels in a message bundle.

    • -0
    • +33
    ./UriMappingsLabelProviderMessages.java
    • -0
    • +4
    ./UriMappingsLabelProviderMessages.properties
  1. … 1 more file in changeset.
JBIDE-13985 - Remove "REST" in "JAX-RS REST Web Services"

Done and externalized labels in a message bundle.

    • -0
    • +33
    ./UriMappingsLabelProviderMessages.java
    • -0
    • +4
    ./UriMappingsLabelProviderMessages.properties
  1. … 1 more file in changeset.
JBIDE-13587 - Rewrite the way Java/resources changes are handled by the JAX-RS core plugin

Using Lucene to index JAX-RS Elements and Endpoints on multiple criteria

Having a more Object-oriented approach for the domain classes

Revising most of the JUnit tests after domain entities refactoring

    • -204
    • +232
    ./UriMappingsContentProvider.java
    • -140
    • +161
    ./UriPathTemplateCategory.java
    • -137
    • +137
    ./UriPathTemplateElement.java
    • -1
    • +1
    ./UriPathTemplateMethodMappingElement.java
  1. … 145 more files in changeset.
Fixed - JBIDE-12934 Problem marker remains on "Error" on Endpoint node in Project explorer after error was fixed and "warning" remains

  1. … 11 more files in changeset.
JBIDE-12765 - Unable to parse web.xml

Narrowing the explorer refresh to the JAX-RS node only, thus avoiding

errors from other nodes, in particular the one responsible for

displaying web.xml content.

Fixed - JBIDE-12413 - Warn when a JAX-RS HTTP Method has no valid @Target and @Retention annotations aside of the @HttpMethod annotation Fixed - JBIDE-12485 - Move JAX-RS validation into JBoss Tools validation, aside of CDI validation Fixed - JBIDE-12486 - Improve message labels when JAX-RS PathParam annotation value does not match Path template parameters Fixed - JBIDE-12488 - Report a warning if no JAX-RS activator (or multiple ones) exist in the project

git-svn-id: http://svn.jboss.org/repos/jbosstools/trunk@43224 a97e2381-89e5-4abb-bab3-167db6db766c

    • -0
    • +2
    ./UriPathTemplateElementAdapterFactory.java
  1. … 81 more files in changeset.
Fixed - JBIDE-10115 Remove need for jax-rs-api.jar (https://issues.jboss.org/browse/JBIDE-10115)

git-svn-id: http://svn.jboss.org/repos/jbosstools/trunk@42714 a97e2381-89e5-4abb-bab3-167db6db766c

    • -1
    • +0
    ./action/OpenInWSTesterActionProvider.java
  1. … 30 more files in changeset.
Fixed - JBIDE-11337 - https://issues.jboss.org/browse/JBIDE-11337 Web Service Tester: wrong URL initialization after selecting "Run on Server"

git-svn-id: http://svn.jboss.org/repos/jbosstools/trunk@40424 a97e2381-89e5-4abb-bab3-167db6db766c

    • -1
    • +4
    ./action/OpenInWSTesterActionProvider.java
  1. … 1 more file in changeset.
Fixed - JBIDE-10250 - Restore error decorators on the JAX-RS endpoints icons when validation detects errors https://issues.jboss.org/browse/JBIDE-10250

git-svn-id: http://svn.jboss.org/repos/jbosstools/trunk@38958 a97e2381-89e5-4abb-bab3-167db6db766c

  1. … 1 more file in changeset.