-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2131] The validation rule I_07 should use diagram descriptors instead
of diagrams Bug: 2131 Change-Id: I58a46e657ba6c49b9b954bd97ed4a19e38fcb9e0 Signed-off-by: Tu Ton <minhtutonthat@gmail.com>
- Loading branch information
1 parent
868aced
commit af88f09
Showing
2 changed files
with
125 additions
and
129 deletions.
There are no files selected for viewing
204 changes: 102 additions & 102 deletions
204
core/plugins/org.polarsys.capella.core.platform.sirius.sirius.validation/plugin.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,102 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.2"?> | ||
<!-- | ||
Copyright (c) 2006, 2016 THALES GLOBAL SERVICES. | ||
All rights reserved. This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License v1.0 | ||
which accompanies this distribution, and is available at | ||
http://www.eclipse.org/legal/epl-v10.html | ||
Contributors: | ||
Thales - initial API and implementation | ||
--> | ||
<plugin> | ||
<extension | ||
point="org.polarsys.capella.core.validation.ui.ide.capellaQuickFix"> | ||
<resolver | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.I_22_Resolver" | ||
desc="%quickFix.I_22_Resolver.desc" | ||
label="%quickFix.I_22_Resolver.label" | ||
icon="icons/search16.gif"> | ||
<rules | ||
ruleId="I_22"> | ||
</rules> | ||
</resolver> | ||
<resolver | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.I_23_Resolver" | ||
desc="%quickFix.I_23_Resolver.desc" | ||
icon="icons/search16.gif" | ||
label="%quickFix.I_23_Resolver.label"> | ||
<rules | ||
ruleId="I_23"> | ||
</rules> | ||
</resolver> | ||
</extension> | ||
<extension point="org.eclipse.emf.validation.constraintProviders"> | ||
<constraintProvider> | ||
<package | ||
namespaceUri="http://www.polarsys.org/capella/core/core/1.2.0"> | ||
</package> | ||
<constraints | ||
categories="capella.category/integrity"> | ||
<constraint | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.CapellaElementNamingConflictDiagram" | ||
id="I_07" | ||
isEnabledByDefault="true" | ||
lang="Java" | ||
mode="Batch" | ||
name="I_07 - Diagram Naming conflicts check" | ||
severity="WARNING" | ||
statusCode="1"> | ||
<message> | ||
{0}"{1}" content has a naming conflict for: {2}. | ||
</message> | ||
<description> | ||
This rule checks that a diagram doesn't contain a naming conflict. | ||
</description> | ||
<target | ||
class="CapellaElement"> | ||
</target> | ||
</constraint> | ||
<constraint | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.CapellaElementInDescriptionNameCheck" | ||
id="I_22" | ||
isEnabledByDefault="false" | ||
lang="java" | ||
mode="Batch" | ||
name="I_22 - HyperLink to capella element or diagram name check" | ||
severity="ERROR" | ||
statusCode="1"> | ||
<message> | ||
{0} | ||
</message> | ||
<target | ||
class="CapellaElement"> | ||
</target> | ||
<description> | ||
This rule ensures that hyperLinks to capella elements or diagrams names are up to date. | ||
</description> | ||
</constraint> | ||
<constraint | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.CapellaElementInDescriptionExistanceCheck" | ||
id="I_23" | ||
isEnabledByDefault="false" | ||
lang="java" | ||
mode="Batch" | ||
name="I_23 - HyperLink to capella element or diagram existance check" | ||
severity="ERROR" | ||
statusCode="1"> | ||
<message> | ||
{0} | ||
</message> | ||
<target | ||
class="CapellaElement"> | ||
</target> | ||
<description> | ||
This rule ensures that hyperLinks to non existing capella element or diagram are removed from the description. | ||
</description> | ||
</constraint> | ||
</constraints> | ||
</constraintProvider> | ||
</extension> | ||
</plugin> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?eclipse version="3.2"?> | ||
<!-- | ||
Copyright (c) 2006, 2018 THALES GLOBAL SERVICES. | ||
All rights reserved. This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License v1.0 | ||
which accompanies this distribution, and is available at | ||
http://www.eclipse.org/legal/epl-v10.html | ||
Contributors: | ||
Thales - initial API and implementation | ||
--> | ||
<plugin> | ||
<extension | ||
point="org.polarsys.capella.core.validation.ui.ide.capellaQuickFix"> | ||
<resolver | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.I_22_Resolver" | ||
desc="%quickFix.I_22_Resolver.desc" | ||
label="%quickFix.I_22_Resolver.label" | ||
icon="icons/search16.gif"> | ||
<rules | ||
ruleId="I_22"> | ||
</rules> | ||
</resolver> | ||
<resolver | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.I_23_Resolver" | ||
desc="%quickFix.I_23_Resolver.desc" | ||
icon="icons/search16.gif" | ||
label="%quickFix.I_23_Resolver.label"> | ||
<rules | ||
ruleId="I_23"> | ||
</rules> | ||
</resolver> | ||
</extension> | ||
<extension point="org.eclipse.emf.validation.constraintProviders"> | ||
<constraintProvider> | ||
<package | ||
namespaceUri="http://www.polarsys.org/capella/core/core/1.2.0"> | ||
</package> | ||
<constraints | ||
categories="capella.category/integrity"> | ||
<constraint | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.CapellaElementNamingConflictDiagram" | ||
id="I_07" | ||
isEnabledByDefault="true" | ||
lang="Java" | ||
mode="Batch" | ||
name="I_07 - Diagram Naming conflicts check" | ||
severity="WARNING" | ||
statusCode="1"> | ||
<message> | ||
{0}"{1}" content has a naming conflict for: {2}. | ||
</message> | ||
<description> | ||
This rule checks that a diagram doesn't contain naming conflict with other diagrams of the same type. | ||
</description> | ||
<target | ||
class="CapellaElement"> | ||
</target> | ||
</constraint> | ||
<constraint | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.CapellaElementInDescriptionNameCheck" | ||
id="I_22" | ||
isEnabledByDefault="false" | ||
lang="java" | ||
mode="Batch" | ||
name="I_22 - HyperLink to capella element or diagram name check" | ||
severity="ERROR" | ||
statusCode="1"> | ||
<message> | ||
{0} | ||
</message> | ||
<target | ||
class="CapellaElement"> | ||
</target> | ||
<description> | ||
This rule ensures that hyperLinks to capella elements or diagrams names are up to date. | ||
</description> | ||
</constraint> | ||
<constraint | ||
class="org.polarsys.capella.core.platform.sirius.sirius.validation.ddiagram.CapellaElementInDescriptionExistanceCheck" | ||
id="I_23" | ||
isEnabledByDefault="false" | ||
lang="java" | ||
mode="Batch" | ||
name="I_23 - HyperLink to capella element or diagram existance check" | ||
severity="ERROR" | ||
statusCode="1"> | ||
<message> | ||
{0} | ||
</message> | ||
<target | ||
class="CapellaElement"> | ||
</target> | ||
<description> | ||
This rule ensures that hyperLinks to non existing capella element or diagram are removed from the description. | ||
</description> | ||
</constraint> | ||
</constraints> | ||
</constraintProvider> | ||
</extension> | ||
</plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters