Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBIDE-15039 - JAX-RS Problem decorator not shown on the Project Explorer node #66

Merged
merged 1 commit into from
Jun 28, 2013
Merged

Conversation

xcoulon
Copy link
Member

@xcoulon xcoulon commented Jun 28, 2013

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

…rer 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
@xcoulon xcoulon merged commit 493b06a into jbosstools:master Jun 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant