Skip to content

Commit

Permalink
Revert "Exclude tests from Sonar analysis and adapt code to DiffMerge…
Browse files Browse the repository at this point in the history
… version change"

This reverts commit dfd0a9b.
  • Loading branch information
minhtutonthat authored and sandupostaru committed Jan 19, 2021
1 parent dfd0a9b commit e21cb5c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2016, 2021 THALES GLOBAL SERVICES.
* Copyright (c) 2016, 2020, 2019 THALES GLOBAL SERVICES.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
Expand All @@ -20,7 +20,6 @@
import org.eclipse.emf.diffmerge.generic.api.Role;
import org.eclipse.emf.diffmerge.generic.api.diff.IDifference;
import org.eclipse.emf.diffmerge.ui.viewers.EMFDiffNode;
import org.eclipse.emf.diffmerge.ui.viewers.IDifferenceCategory;
import org.eclipse.emf.diffmerge.ui.viewers.categories.AbstractDifferenceCategory;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
Expand Down Expand Up @@ -52,13 +51,6 @@ public boolean keepElement(Object element) {
return false;
}

public EClassCategory(EClass iconClazz, String name, String description, Collection<EClass> clazzes) {
this.iconClazz = iconClazz;
this.name = name;
this.description = description;
this.clazzes = clazzes;
}

public EClassCategory(EClass iconClazz, String name, EClass clazz) {
this(iconClazz, name, Collections.singletonList(clazz));
}
Expand Down Expand Up @@ -128,10 +120,4 @@ public void run() {
return image[0];
}

@Override
public IDifferenceCategory copy() {
EClassCategory copied = new EClassCategory(iconClazz, name, description, clazzes);
copied.copyState(this);
return copied;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.eclipse.emf.diffmerge.diffdata.EMatch;
import org.eclipse.emf.diffmerge.generic.api.diff.IDifference;
import org.eclipse.emf.diffmerge.ui.viewers.EMFDiffNode;
import org.eclipse.emf.diffmerge.ui.viewers.IDifferenceCategory;
import org.eclipse.emf.diffmerge.ui.viewers.categories.AbstractDifferenceCategory;
import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;
import org.eclipse.swt.graphics.Image;
Expand Down Expand Up @@ -89,11 +88,4 @@ public String getText(EMFDiffNode node_p) {
return Messages.Categories_Relation_Identifier;
}

@Override
public IDifferenceCategory copy() {
RelationIdentifierCategory copied = new RelationIdentifierCategory();
copied.copyState(this);
return copied;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.eclipse.emf.diffmerge.diffdata.EMatch;
import org.eclipse.emf.diffmerge.generic.api.diff.IDifference;
import org.eclipse.emf.diffmerge.ui.viewers.EMFDiffNode;
import org.eclipse.emf.diffmerge.ui.viewers.IDifferenceCategory;
import org.eclipse.emf.diffmerge.ui.viewers.categories.AbstractDifferenceCategory;
import org.eclipse.emf.edit.ui.provider.ExtendedImageRegistry;
import org.eclipse.swt.graphics.Image;
Expand Down Expand Up @@ -89,11 +88,4 @@ public String getText(EMFDiffNode node_p) {
return Messages.Categories_ReqIFText_Identifier;
}

@Override
public IDifferenceCategory copy() {
ReqIFTextCategory copied = new ReqIFTextCategory();
copied.copyState(this);
return copied;
}

}
4 changes: 0 additions & 4 deletions tests/org.polarsys.capella.vp.requirements.ju/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
<artifactId>org.polarsys.capella.vp.requirements.ju</artifactId>
<packaging>eclipse-test-plugin</packaging>
<version>0.12.0-SNAPSHOT</version>

<properties>
<sonar.skip>true</sonar.skip>
</properties>

<build>
<plugins>
Expand Down

0 comments on commit e21cb5c

Please sign in to comment.