Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Spungin2014-06-16 11:35:01 -0400
committerSteven Spungin2014-06-16 11:38:38 -0400
commitb1f10c10ec1346f08f32cb33efdbe106a526d5d1 (patch)
tree71f20b7374f433269acc5ac5ea4240abf1f212df
parent0dc361ad0733d205397172baf30c164644ef46ba (diff)
downloadorg.eclipse.e4.tools-b1f10c10ec1346f08f32cb33efdbe106a526d5d1.tar.gz
org.eclipse.e4.tools-b1f10c10ec1346f08f32cb33efdbe106a526d5d1.tar.xz
org.eclipse.e4.tools-b1f10c10ec1346f08f32cb33efdbe106a526d5d1.zip
Bug 437543 - [model editor] Live editor has injection error creating
XmiTab Change-Id: I809b912825d2e5b4baa84b553e7716774641cc8c Signed-off-by: Steven Spungin <steven@spungin.tv>
-rw-r--r--bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/XmiTab.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/XmiTab.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/XmiTab.java
index 6498d2c0..009de558 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/XmiTab.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/tabs/XmiTab.java
@@ -7,7 +7,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
- * Steven Spungin <steven@spungin.tv> - initial API and implementation, Bug 391089
+ * Steven Spungin <steven@spungin.tv> - initial API and implementation, Bug 391089, Bug 437543
*******************************************************************************/
package org.eclipse.e4.tools.emf.ui.internal.common.component.tabs;
@@ -17,6 +17,7 @@ import javax.inject.Inject;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
import org.eclipse.e4.core.contexts.IEclipseContext;
+import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.tools.emf.ui.internal.common.xml.AnnotationAccess;
import org.eclipse.e4.tools.emf.ui.internal.common.xml.EMFDocumentResourceMediator;
import org.eclipse.e4.tools.emf.ui.internal.common.xml.XMLConfiguration;
@@ -51,6 +52,8 @@ public class XmiTab extends Composite {
@Inject
private IEclipseContext context;
+
+ @Optional
@Inject
private IProject project;
@Inject

Back to the top