Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2011-03-14 15:12:34 +0000
committerHenrik Rentz-Reichert2011-03-14 15:12:34 +0000
commit6d1c62cbabc9c3cc354dbaa3a02ea3649cf6ca4e (patch)
tree0c7727afd71c9b0917d52d9fd32e00e687a440c0 /plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java
parent6817e2a255f4d719f88f563353e612ab5240a805 (diff)
downloadorg.eclipse.etrice-6d1c62cbabc9c3cc354dbaa3a02ea3649cf6ca4e.tar.gz
org.eclipse.etrice-6d1c62cbabc9c3cc354dbaa3a02ea3649cf6ca4e.tar.xz
org.eclipse.etrice-6d1c62cbabc9c3cc354dbaa3a02ea3649cf6ca4e.zip
core.room.ui: avoid giving access to internal package
Diffstat (limited to 'plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java')
-rw-r--r--plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java b/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java
index 94086de72..883612b32 100644
--- a/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java
+++ b/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java
@@ -12,8 +12,11 @@
package org.eclipse.etrice.core.ui;
+import org.eclipse.etrice.core.ui.internal.RoomActivator;
import org.eclipse.ui.plugin.AbstractUIPlugin;
+import com.google.inject.Injector;
+
/**
* Use this class to register components to be used within the IDE.
*/
@@ -26,4 +29,8 @@ public class RoomUiModule extends org.eclipse.etrice.core.ui.AbstractRoomUiModul
@org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.etrice.core.validation.RoomJavaValidator> bindRoomJavaValidator() {
return org.eclipse.etrice.core.ui.RoomModelValidator.class;
}
+
+ public static Injector getInjector() {
+ return RoomActivator.getInstance().getInjector("org.eclipse.etrice.core.Room");
+ }
}

Back to the top