[427803] Prepare - Move diagram.ecore in its own plugin

This commit contains some file moves without changes needed by the following commit. It allows to keep history Indeed, if the move and the refactoring are made together GIT lost the history of all moved files.

Change-Id: If095c366e388f7db9c8e5424e05befe7c514c928
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Move diagram.ecore in its own plugin and generate model plugin.

This commit contains changes in org.eclipse.sirius and
org.eclipse.sirius.diagram corresponding to the meta-model regen (and
the corresponding refactoring in these plugins).

Others commits follow with the edit and editor generation (and
corresponding refactoring).
The compilation is not OK. That's normal. The most difficult cases will
be dealt later, one by one.

List of remaining problems for this 2 meta-model plugins:
* A- Reference from ToolInterpretedExpressionTargetSwitch
(org.eclipse.sirius.business.internal.dialect.description) to
MappingBasedToolDescriptionQuery
(org.eclipse.sirius.diagram.business.api.query)
* B- Reference from DAnalysisSessionImpl
(org.eclipse.sirius.business.internal.session.danalysis) to
VisibilityPropagatorAdapter
(org.eclipse.sirius.diagram.business.internal.helper.display)

Change-Id: If590615c6fae6fdcb6e7a24e6c05baaadf875c44
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Prepare - Generate edit plugin

This commit contains some file moves without changes needed by the following commit. It allows to keep history Indeed, if the move and the refactoring are made together GIT lost the history of all moved files.

Change-Id: Ied07e081b6fb4ec3a34cd7893dbe7b2e6ead7f9a
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Generate edit plugin

This commit contains changes in org.eclipse.sirius.ui and
org.eclipse.sirius.diagram.ui corresponding to the edit regen (and
the corresponding refactoring in these plugins). It also contains the
changes caused by the refactoring of the previous commit (model regen)
Other commits follow with the editor generation (and
corresponding refactoring).
The compilation is not OK. That's normal. The most difficult cases will
be dealt later, one by one.

After discussion, it is more simpler to move all classes from
/org.eclipse.sirius.diagram/src to /org.eclipse.sirius.diagram.ui/src.
Indeed, originally, the plugin org.eclipse.sirius.diagram has for ui
aspects. So to have a result more quickly, it was decided to move all
these classes. There will be probably another step to isolate more
precisely some classes that could go again in
org.eclipse.sirius.diagram.

Change-Id: I61662aefa24a0b04270e9aef026c39ec5b5d79bc
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Prepare - Generate editor plugin

This commit contains some file moves without changes needed by the
following commit. It allows to keep history Indeed, if the move and the
refactoring are made together GIT lost the history of all moved files.

Change-Id: I1c03526653c8e7970abde5728e231a06b32a319b
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Generate editor plugin.

This commit contains changes in org.eclipse.sirius.editor and
org.eclipse.sirius.editor.diagram corresponding to the editor regen (and
the corresponding refactoring in these plugins). It also contains the
changes caused by the refactoring of the 2 previous commits (model and
edit regen)
The compilation is not OK. That's normal. The most difficult cases will
be dealt later, one by one.
List of remaining problems:
* AbstractToolDescriptionPreconditionPropertySection
(org.eclipse.sirius.editor.properties.sections.tool.abstracttooldescription)
refers EdgeCreationDescription and DiagramDescription.
* EStructuralFeatureCustomizationAppliedOnPropertySection
(org.eclipse.sirius.editor.properties.sections.description.estructuralfeaturecustomization)
refers org.eclipse.sirius.diagram.description.style.StylePackage
* AbstractViewpointPropertySection
(org.eclipse.sirius.editor.properties.sections.common) refers
DiagramImportDescription and SiriusPropertySectionHelper
* Lot of problems for menu custmization (sse package
org.eclipse.sirius.editor.tools.internal.menu)

Change-Id: Id32d35b7906df27c95730abddc680d33c690b164
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Refactoring caused by the 3 previous commits

The compilation is not OK. That's normal. The most difficult cases will
be dealt later, one by one.

Change-Id: If3882e1df27ca2f6de41976f7228599f7ed36bf8
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Replace reference from ViewpointRegistryImpl to
DiagramDescriptionMappingsRegistry

We now pass by the DialectManager that offers a new method to invalidate
the cache of each dialect. This method is currently only used by the
diagram dialect.

Change-Id: Ib0953f1b809907b982b7149e2b1bdf2f365a3a2f
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Isolate diagram repair steps.

The SiriusRepairProcess manages core AND diagram steps. All diagram
steps have been moved in the DiagramRepairParticipant by providing new
APIs in IRepairParticipant. These new methods are currently only used by
diagram participant.

However, another clean up step will be needed later to clean the content
of the method
org.eclipse.sirius.diagram.ui.tools.internal.actions.repair.DiagramRepairParticipant.refreshRepresentations(DAnalysis,
DView) that manages some core concepts.

Conflicts:
	plugins/org.eclipse.sirius.diagram.ui/src/org/eclipse/sirius/diagram/ui/tools/internal/actions/repair/DiagramRepairParticipant.java

Change-Id: Ib049180ca24cdd5f0dc8b2ee5c0cfd9b538f45d8
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Remove dependencies tasks to diagram concepts.

* From ModelOperationTask, we now use
DialectManager.INSTANCE.createTask().
* From ExternalJavaActionTask, the DeleteDDiagramTask has been
generalized. The specific action concerning DDiagramLink corresponds to
dead code and has been removed.

Change-Id: I7ddfc92242ecda633a5ed2f2a193de4c45409798
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Remove dependency from DRepresentationContainerSpec to
DSemanticDiagram

The test on a DSemanticDiagram with a null rootContent has been removed.
There is no real impact because the method
DRepresentationContainerSpec.refresh() is never called. A note has been
added in bugzilla 427869 to think to handle this case in new mechanism.

Change-Id: I551a5c4e8bd0669c49c278ae9ed174ddc3956a40
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Remove dependency from SpecificEditorInputTranformer to
DSemanticDiagram

The method DialectServices.getDescription() is used instead of directly
referencing DSemanticDiagram. Furthermore, this method now works also
for Table and Tree.

Change-Id: Icb0dc6970b6de47314d621aa2379eea5f41a0b91
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Remove dependency from ContextMenuFiller to
ExportRepresentationsAction

The code has been generalized (handle all dialects). For that, a new
method, DialectUIManager.canExport(), has been created.

Change-Id: I694df7d91d01b71c90c497743caf97017e5db2bd
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Remove dependency from AbstractDTreeEditor to
IDiagramCommandFactoryProvider.

This reference is a bug. But the correct corresponding code has been
added to AbstractDTableEditor and DTreeEditor.

Change-Id: Ieadb15b93baf343e7680165aa8075f0e1d49c757
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Missed refactoring in extension point definition

Change-Id: If2678595d3212ac0c49329dd4dab6c5f4470ad61
Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
[427803] Remove diagram  dependency from
ToolInterpretedExpressionTargetSwitch

Remove dependency from ToolInterpretedExpressionTargetSwitch to the
Diagram specific MappingBasedToolDescriptionQuery

Change-Id: I363ccc27b61ae707963360af798e93a51715ff44
Signed-off-by: Maxime PORHEL <maxime.porhel@obeo.fr>
[427803] Remove diagram dependency from AbstractViewpointPropertySection

The code has been adapted to use RepresentationImportDescription
instead.

Change-Id: Ia13d46855f64c97a8553403d46cdc3eb4d4820fb
Signed-off-by: Maxime PORHEL <maxime.porhel@obeo.fr>
[427803] Update extension point id

Change-Id: I3f1fcca764d0e7e65eb6b48d4fb23575fdcc7eec
Signed-off-by: Maxime PORHEL <maxime.porhel@obeo.fr>
[427803] Remove diagram dependency from
EStructuralFeatureCustomizationAppliedOnPropertySection

Change-Id: If5f7cc82d4352412047bce2e79c7ad4fdad2df7b
Signed-off-by: Maxime PORHEL <maxime.porhel@obeo.fr>
[427803] Remove diagram dependency from
AbstractToolDescriptionPropertySection

Change-Id: Ia70f9193e6bc83b98fb60947c9eb78de116af624
Signed-off-by: Maxime PORHEL <maxime.porhel@obeo.fr>