Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2019-02-15 03:11:42 -0500
committerJuergen Haug2019-02-15 03:11:42 -0500
commit715521c546e87f2b7acf439a5a13a2d8f03cf16a (patch)
treea12f9b25478a864325f52d727697aafadf8a9c26
parent186ab8c930c9aa55f087b7fc37fc1a9ac22a2784 (diff)
downloadorg.eclipse.etrice-715521c546e87f2b7acf439a5a13a2d8f03cf16a.tar.gz
org.eclipse.etrice-715521c546e87f2b7acf439a5a13a2d8f03cf16a.tar.xz
org.eclipse.etrice-715521c546e87f2b7acf439a5a13a2d8f03cf16a.zip
Bug 542660 - deactivated resource markers for diagrams
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/link/ResourceModule.java11
-rw-r--r--plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/link/ResourceModule.java12
2 files changed, 22 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/link/ResourceModule.java b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/link/ResourceModule.java
index 2e47dac84..675f02fba 100644
--- a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/link/ResourceModule.java
+++ b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/link/ResourceModule.java
@@ -15,6 +15,9 @@ import org.eclipse.etrice.ui.common.base.refactoring.DiagramReferenceUpdater;
import org.eclipse.etrice.ui.common.base.support.DiagramAccessBase;
import org.eclipse.xtext.resource.generic.AbstractGenericResourceRuntimeModule;
import org.eclipse.xtext.ui.refactoring.IReferenceUpdater;
+import org.eclipse.xtext.validation.IResourceValidator;
+
+import com.google.inject.Binder;
/**
* @author Henrik Rentz-Reichert - initial contribution and API
@@ -22,6 +25,14 @@ import org.eclipse.xtext.ui.refactoring.IReferenceUpdater;
*/
public class ResourceModule extends AbstractGenericResourceRuntimeModule {
+ @Override
+ public void configure(Binder binder) {
+ super.configure(binder);
+
+ binder.bind(IResourceValidator.class).toInstance(IResourceValidator.NULL);
+ }
+
+
/* (non-Javadoc)
* @see org.eclipse.xtext.resource.generic.AbstractGenericResourceRuntimeModule#getLanguageName()
*/
diff --git a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/link/ResourceModule.java b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/link/ResourceModule.java
index f54be7297..2d67366e7 100644
--- a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/link/ResourceModule.java
+++ b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/link/ResourceModule.java
@@ -16,6 +16,9 @@ import org.eclipse.etrice.ui.common.base.support.DiagramAccessBase;
import org.eclipse.etrice.ui.structure.DiagramAccess;
import org.eclipse.xtext.resource.generic.AbstractGenericResourceRuntimeModule;
import org.eclipse.xtext.ui.refactoring.IReferenceUpdater;
+import org.eclipse.xtext.validation.IResourceValidator;
+
+import com.google.inject.Binder;
/**
* @author Henrik Rentz-Reichert - initial contribution and API
@@ -23,6 +26,13 @@ import org.eclipse.xtext.ui.refactoring.IReferenceUpdater;
*/
public class ResourceModule extends AbstractGenericResourceRuntimeModule {
+ @Override
+ public void configure(Binder binder) {
+ super.configure(binder);
+
+ binder.bind(IResourceValidator.class).toInstance(IResourceValidator.NULL);
+ }
+
/* (non-Javadoc)
* @see org.eclipse.xtext.resource.generic.AbstractGenericResourceRuntimeModule#getLanguageName()
*/
@@ -45,6 +55,6 @@ public class ResourceModule extends AbstractGenericResourceRuntimeModule {
public Class<? extends DiagramAccessBase> bindDiagramAccess() {
return DiagramAccess.class;
- }
+ }
}

Back to the top