Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian de Alwis2012-03-23 14:37:17 +0000
committerOleg Besedin2012-03-23 14:37:17 +0000
commit91d8e7e5f8d3f7813ad0ae420a54b14b2f4c7b2a (patch)
tree18c14847c55b027d94287304952bb4c2cb791339
parentcff71eaf108769ede4388d536351361e28c50212 (diff)
downloadeclipse.platform.runtime-91d8e7e5f8d3f7813ad0ae420a54b14b2f4c7b2a.tar.gz
eclipse.platform.runtime-91d8e7e5f8d3f7813ad0ae420a54b14b2f4c7b2a.tar.xz
eclipse.platform.runtime-91d8e7e5f8d3f7813ad0ae420a54b14b2f4c7b2a.zip
-rw-r--r--bundles/org.eclipse.e4.core.di/build.properties3
-rw-r--r--bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/InjectorImpl.java6
2 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.core.di/build.properties b/bundles/org.eclipse.e4.core.di/build.properties
index 2b112c461..c335cc2a5 100644
--- a/bundles/org.eclipse.e4.core.di/build.properties
+++ b/bundles/org.eclipse.e4.core.di/build.properties
@@ -3,5 +3,6 @@ output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.properties,\
- about.html
+ about.html,\
+ .options
src.includes = about.html
diff --git a/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/InjectorImpl.java b/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/InjectorImpl.java
index ea130ad7a..7eac2f46e 100644
--- a/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/InjectorImpl.java
+++ b/bundles/org.eclipse.e4.core.di/src/org/eclipse/e4/core/internal/di/InjectorImpl.java
@@ -385,7 +385,11 @@ public class InjectorImpl implements IInjector {
}
private void reportUnresolvedArgument(Requestor requestor, int argIndex) {
- throw new InjectionException(resolutionError(requestor, argIndex));
+ String msg = resolutionError(requestor, argIndex);
+ if (shouldDebug) {
+ LogHelper.logError(msg, null);
+ }
+ throw new InjectionException(msg);
}
private String resolutionError(Requestor requestor, int argIndex) {

Back to the top