[build] Update Luna target platform for M4

Change-Id: Iaa6b0be8937388cdd22d5c98e672a068e70cdb5e
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Remove unused config file for projectusus

Signed-of-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
Change-Id: Ia0957e2a6ca8226ef8a068f26d2f8c72662f7319
[423562] New project to contain shared settings and configuration files

Change-Id: Icb99bd32753bcd9ccaf05f921114f5ad56dd4f47
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Add Sirius CheckStyle configuration

Change-Id: I447e9f9ea5e1c4981bcd9ce2e76a0662e8e26799
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Ensure all plug-ins have CheckStyle enabled with the same config

This also fixes all the CheckStyle errors introduced by enabling
CheckStyle in projects which did not have it.

There are a few exceptions:
* CheckStyle is still disabled for the org.eclipse.sirius.synchronizer
  plug-in. It contains almost zero javadoc so it would produce too
  many errors to fix right now.
* In org.eclipse.sirius.diagram, CheckStyle is disabled for a sub-set
  of packages which correspond to code which was (a long time ago)
  generated by GMF Tooling.

Change-Id: I16e494dea028d455985dfe3e5b92d635e50100f0
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Tighten the PDE configuration of all plug-ins

All Sirius plug-ins now have the same project-specific PDE settings,
which were made more strict. All the errors resulting from the new rules
were fixed. The (many) new warnings were left for now.

The most visible change is that all the Require-Bundle dependencies in
Sirius plug-ins are now versioned, using the version available at this
time in the sirius_juno.target target platform as the minimum version.

Change-Id: Icc4f69139f7735719f158c14b6e8d5a0bb5582f3
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Add standard import order configuration

Change-Id: Idaad3a12f033ab97fa1ce6c7302a834f8e1d0b23
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Add reference Java formatter settings

Change-Id: I130ecad149b93e87f5dce0ff45809d8f45f4c474
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Add reference Java source cleanup settings

Change-Id: Id43a031424a241c5959bedcbd9248d91e7afab08
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Add missing javacProjectSettings flag to build.properties

Change-Id: I8b3db448fdc19c2cd925dc6168b5474888f9b303
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Apply the same JDT preferences to all plug-ins

This includes the Sirius formatting and cleanup profiles, and fixes all
unnecessary casts, which are now configured as errors.

All settings are "inlined" as project-specific settings to ensure the
behavior is the same for everyone independently of workspace-specific
configuration.

Change-Id: Idae6ea461db19710b48a1be2a85ba65530cbff1d
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[423562] Use explicit versioning for exported packages

Change-Id: I8799f39c18146c1b01a3b79a0176cc47271bb18d
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[cleanup] Reduce our dependency to the JDT

Now that we depend on Java 1.6+, we can use
javax.lang.model.SourceVersion#isIdentifier to validate projects name
instead of relying on code from the JDT.

Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
Change-Id: I79813b90d75dfd3eb0741be5b0ab93086d1f8e1a
[cleanup] Remove unneeded @SuppressWarnings annotations

Also add a few missing ones.

Change-Id: I27794304ca02302b64a88906e7632a2096cdccdf
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[cleanup] Remove dead code and obsolete TODO markers

Change-Id: Ifbb8e00b6b7957cd935b00bffff0ea2aef2a2ef0
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[cleanup] Use PrecisionPoint when dealing with double coordinates

Also use the preciseX() and preciseY() accessors instead of direct
access to the deprecated fields.

Change-Id: If03859e2c94a8b8983854ea55b3d7e91e57b4c86
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[cleanup] Remove unused imports

Change-Id: Id3b77f465313488125f2f903fd3603629314fe4d
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[cleanup] Remove dead code

Change-Id: If9cb454b61642074b352332ab230fad1fc7c63bf
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
[cleanup] Extract complex loop in its own method

Change-Id: I76570eeb0610f26ca5ddfdfe40ea1f1f943007a2
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>