Commit 27cb825a authored by Saad bin Abid's avatar Saad bin Abid
Browse files

Make improvements in the MultipleAspectsContraintUI.java and other constraints.

parent 0cabe276
......@@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry excluding="org/fortiss/af3/mira/ui/constraints/RequirementBasicConstraintsUI.java" kind="src" path="src"/>
<classpathentry kind="src" path="test-src"/>
<classpathentry kind="output" path="build"/>
</classpath>
......@@ -53,7 +53,7 @@ import org.osgi.framework.BundleContext;
/**
* The activator class controls the plug-in life cycle
*
* @ConQAT.Rating YELLOW Hash: 4FBC354DB4D83C26E64F5A136752C12B
* @ConQAT.Rating GREEN Hash: 810FFAD65800F969C1783B30F2671EF6
*/
public class AF3MiraUIActivator extends AbstractUIPlugin {
......@@ -83,8 +83,6 @@ public class AF3MiraUIActivator extends AbstractUIPlugin {
IConstraintUIService.getInstance().registerConstraintUI(AuthorConstraintUI.class,
AuthorConstraint.class);
// IConstraintUIService.getInstance().registerConstraintUI(AuthorConstraintUI.class,
// RequirementBasicConstraints.AuthorConstraint.class);
IConstraintUIService.getInstance().registerConstraintUI(UniqueSignalNameConstraintUI.class,
UniqueSignalNameConstraint.class);
......
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.Constraint
* @author abid
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 3442ABB7C6EE4E17E0D0CD18F0CCE4A8
* @ConQAT.Rating GREEN Hash: 2045A6F3E36DFEDFB68330E10FC98EC2
*/
public class AuthorConstraintUI extends ConstraintUIBaseAutocheck {
......
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.Constraint
* @author saadbinabid
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 6A453FAE1DA12B05CEBF9DEF5BF41DE9
* @ConQAT.Rating GREEN Hash: 6B34A6F9BB5541B622D0EEF8D2369B54
*/
public class DescriptionAndOrConstraintUI extends ConstraintUIBaseAutocheck {
......
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.Constraint
* @author saadbinabid
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: D6C91033F02F656D18B765129C7E4A86
* @ConQAT.Rating GREEN Hash: 335E1D9EC960FEA018E3C47F7A471BB6
*/
public class DescriptionConstraintUI extends ConstraintUIBaseAutocheck {
......
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.Constraint
* @author saadbinabid
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 82A50C46422316633CF35DE7825625DD
* @ConQAT.Rating GREEN Hash: 39C88FC26931786B0470C37018ED0FF3
*/
public class IDConstraintUI extends ConstraintUIBaseAutocheck {
......
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.Constraint
* @author saadbinabid
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: BED453EA208FC3D5C08EB2F11AB38C7B
* @ConQAT.Rating GREEN Hash: BE0DF56B079C636B4EEE3CC13D0567BC
*/
public class NameConstraintUI extends ConstraintUIBaseAutocheck {
......
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.Constraint
* @author saadbinabid
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 57B1AA5CA639986965D00F96261F6953
* @ConQAT.Rating GREEN Hash: 01AD72EBA893DD8A2E5515CF5E26AEC8
*/
public class ParameterTypeConstraintUI extends ConstraintUIBaseAutocheck {
......
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.Constraint
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 1EFA467479AC11693B065E055F8552FD
* @ConQAT.Rating GREEN Hash: 880D144336C3EAB8372D8C1572DE0628
*/
public class RationaleConstraintUI extends ConstraintUIBaseAutocheck {
......
/*--------------------------------------------------------------------------+
$Id$
| |
| Copyright 2016 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.mira.ui.constraints;
import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.ConstraintUIBaseAutocheck;
/**
* UI part of {@link org.fortiss.af3.mira.constraints.AuthorConstraint}
*
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 217B9088769E53082F31A4AD324B5FA9
*/
public class RequirementBasicConstraintsUI {
/**
*
* @author abid
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash:
*/
public static class AuthorConstraintUI extends ConstraintUIBaseAutocheck {
/** {@inheritDoc} */
@Override
public String getDescription() {
return "All requirements have an author";
}
/** {@inheritDoc} */
@Override
public boolean shouldBeManuallyActivated() {
return true;
}
}
}
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.Constraint
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 9DA52D3AA4E967B3460E766980DD498F
* @ConQAT.Rating GREEN Hash: 849FDA583C7AFCE8D3CA38455C84CF87
*/
public class RequirementContainsTestSuiteConstraintUI extends ConstraintUIBaseAutocheck {
......
......@@ -39,7 +39,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 217B9088769E53082F31A4AD324B5FA9
* @ConQAT.Rating GREEN Hash: 46927BC11E3D39D6138A8E7F32596D43
*/
public class SignalConstraintsUI {
......
......@@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases.Constraint
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: BE19AD314BAEDF3B6C82045D8AE730F6
* @ConQAT.Rating GREEN Hash: D64615A52A6F6AE9CC0D5F799B822C95
*/
public class SourceConstraintUI extends ConstraintUIBaseAutocheck {
......
......@@ -66,7 +66,7 @@ import org.fortiss.tooling.kernel.utils.ConstraintsUtils;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 0720DBA800046DF939F9127A8B068FDC
* @ConQAT.Rating GREEN Hash: 8847690EF4E0AB93AD8F0525D2736D62
*/
public class TraceConstraint extends AF3ProjectConstraintBase {
......
......@@ -44,7 +44,7 @@ import org.fortiss.tooling.kernel.ui.extension.base.ConstraintUIBases;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 40B647DB21A3C03EAAE4DC4969F5128A
* @ConQAT.Rating GREEN Hash: A7C4A32EB03DF2DBE7BA9D1AD67944A4
*/
public class TraceConstraintUI extends ConstraintUIBases.ConstraintUIBase {
......
......@@ -3,7 +3,7 @@
<classpathentry kind="src" path="generated-src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry excluding="org/fortiss/af3/mira/constraints/RequirementBasicConstraints.java" kind="src" path="src"/>
<classpathentry kind="src" path="test-src"/>
<classpathentry exported="true" kind="lib" path="lib/com4j.jar"/>
<classpathentry exported="true" kind="lib" path="lib/com4j-office.jar"/>
......
......@@ -35,13 +35,11 @@ import org.fortiss.af3.mira.relation.IRelationTypeService;
import org.fortiss.af3.mira.relation.RelationTypeService;
import org.fortiss.tooling.kernel.service.IConstraintService;
import org.osgi.framework.BundleContext;
//import org.fortiss.af3.mira.constraints.SignalConstraints.SignalTypeConstraint;
//import org.fortiss.af3.mira.constraints.SignalConstraints.UniqueSignalNameConstraint;
/**
* The activator class controls the plug-in life cycle.
*
* @ConQAT.Rating YELLOW Hash: 08C8DDF75235EB9E440093558A39D9BF
* @ConQAT.Rating GREEN Hash: ECAAA072691C73DBE3DD1223B37A98FC
*/
public class AF3MiraActivator extends Plugin {
......@@ -63,8 +61,6 @@ public class AF3MiraActivator extends Plugin {
RelationTypeService rts = (RelationTypeService)IRelationTypeService.getInstance();
rts.initializeService();
rts.startService();
IConstraintService.getInstance().registerConstraint(AuthorConstraint.class);
IConstraintService.getInstance().registerConstraint(
RequirementContainsTestSuiteConstraint.class);
IConstraintService.getInstance().registerConstraint(UniqueSignalNameConstraint.class);
......@@ -79,9 +75,7 @@ public class AF3MiraActivator extends Plugin {
IConstraintService.getInstance().registerConstraint(DescriptionAndOrConstraint.class);
IConstraintService.getInstance()
.registerConstraint(GlossaryTermsDefinitionConstraint.class);
// IConstraintService.getInstance().registerConstraint(
// RequirementBasicConstraints.AuthorConstraint.class);
IConstraintService.getInstance().registerConstraint(AuthorConstraint.class);
}
/** {@inheritDoc} */
......
......@@ -30,7 +30,7 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraintInstanceStatus;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: FDEBC9B06EC5621F99F0C2F4E9099374
* @ConQAT.Rating GREEN Hash: B0E3400E24B5C115D0CBA6EA0D9468D3
*/
public class AuthorConstraint extends AF3ProjectConstraintCheckerBase {
......
......@@ -33,7 +33,7 @@ import org.fortiss.tooling.kernel.model.constraints.IConstraintInstanceStatus;
* @author abid
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: CBA5DD5DB3DD211B5731ECD82E4C4124
* @ConQAT.Rating GREEN Hash: 2FB294665C18905C543F39870A692065
*/
public class DescriptionAndOrConstraint extends AF3ProjectConstraintCheckerBase {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment