Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 398688 - [CDO] Validation problem markers for CDO resources
Summary: [CDO] Validation problem markers for CDO resources
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Mac OS X
: P2 enhancement (vote)
Target Milestone: M5   Edit
Assignee: Christian Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 290952
  Show dependency tree
 
Reported: 2013-01-21 17:26 EST by Christian Damus CLA
Modified: 2013-01-31 18:14 EST (History)
0 users

See Also:
give.a.damus: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2013-01-21 17:26:44 EST
The Model Validation function in Papyrus relies on the creation and tracking of problem markers on the resources that persist the model content.  However, in the CDO context, there are no workspace resources, hence no workspace metadata, and no resource markers.

An alternative representation of problems is required that records information compatible with the workspace problem markers and can be presented in the UI in a consistent fashion (including decorations, fly-over tips, etc.).  Optionally, it should be possible to store and share problems in the repository.

It is proposed to develop an Ecore model of problems that reference the elements that they annotate and carry the usual data recorded in EMF Diagnostics and IMarkers.
Comment 1 Christian Damus CLA 2013-01-21 17:28:27 EST
I'll take this, to contribute a Problems Model.
Comment 2 Christian Damus CLA 2013-01-31 17:22:10 EST
r9987 on cdo_kepler branch:

Added three new projects to the plugins/cdo/ folder in the repository:

  * org.eclipse.papyrus.cdo.validation.problems
  * org.eclipse.papyrus.cdo.validation.problems.edit
  * org.eclipse.papyrus.cdo.validation.problems.tests

These are the usual EMF-generated plug-ins, implementing a simple model of EProblems mirroring the Diagnostic API of EMF, plus an EProblemsContainer to group problems.

EProblems convert easily to/from Diagnostics and IStatuses for interoperability with the EMF validation APIs and workspace IMarkers.  The ProblemsManager assists with this, as well as tracking EProblems for the resources in some resource set, providing API for looking up the EProblems attached to any EObject (using a cross-reference adapter, if available).

Complete test coverage of the ProblemsManager is included, together with the EMF-generated tests for the model, itself.
Comment 3 Christian Damus CLA 2013-01-31 18:14:20 EST
Committing the initial problems model to the cod_kepler branch completes delivery of this work item.

Additional changes may be required for generation and presentation of validation problems in the UI in a later phase; these will be handled separately.