Skip to content
Snippets Groups Projects
Commit be1a7073 authored by Sebastian Bergemann's avatar Sebastian Bergemann
Browse files

Use directly ReuseLibrary class without creating a dummy one

Issue-Ref: 4324
Issue-Url: af3#4324



Signed-off-by: default avatarSebastian Bergemann <bergemann@fortiss.org>
parent 827012b8
No related branches found
No related tags found
1 merge request!207Add exclusion from constraint checks possibility for certain types
Pipeline #38950 failed
ToolingReuseActivator.java 0c381ee60aad6d6b37aa05b35c0473d24acae196 YELLOW ToolingReuseActivator.java 52b9208684334f60ee8c0bc074c86f06f6248227 YELLOW
...@@ -15,9 +15,8 @@ ...@@ -15,9 +15,8 @@
+--------------------------------------------------------------------------*/ +--------------------------------------------------------------------------*/
package org.fortiss.tooling.ext.reuse; package org.fortiss.tooling.ext.reuse;
import static org.fortiss.tooling.ext.reuse.utils.ReuseLibraryModelElementFactory.createReuseLibrary;
import org.eclipse.core.runtime.Plugin; import org.eclipse.core.runtime.Plugin;
import org.fortiss.tooling.ext.reuse.model.ReuseLibrary;
import org.fortiss.tooling.kernel.service.IConstraintCheckerService; import org.fortiss.tooling.kernel.service.IConstraintCheckerService;
import org.osgi.framework.BundleContext; import org.osgi.framework.BundleContext;
...@@ -44,7 +43,7 @@ public class ToolingReuseActivator extends Plugin { ...@@ -44,7 +43,7 @@ public class ToolingReuseActivator extends Plugin {
// they should comply when they are outside of it (in a normal project). This is why the // they should comply when they are outside of it (in a normal project). This is why the
// ReuseLibrary needs to be registered as an exclusion for all the usual constraint checks. // ReuseLibrary needs to be registered as an exclusion for all the usual constraint checks.
IConstraintCheckerService ccs = IConstraintCheckerService.getInstance(); IConstraintCheckerService ccs = IConstraintCheckerService.getInstance();
ccs.registerTypeAsExcludedParentForConstraintChecks(createReuseLibrary().getClass()); ccs.registerTypeAsExcludedParentForConstraintChecks(ReuseLibrary.class);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment