Eclipse 4

Dependencies to use for Eclipse 4

Dependencies to use for Eclipse 4

When you develop with Eclipse 4, you need to use a lot of new classes and annotations that are defined in several plugins. It is a little tricky to know these dependencies without any documentation.

Here is a table to summarize the dependency that must be used for each class or annotation.

Annotation ou Classe Dépendance à ajouter
IEclipseContext org.eclipse.e4.core.contexts
ContextInjectionFactory org.eclipse.e4.core.contexts
InjectionException org.eclipse.e4.core.di
@Focus org.eclipse.e4.ui.di
@UIEventTopic org.eclipse.e4.ui.di
@Inject javax.inject with import-package (Cf #348123) !!
@PostConstruct javax.annotations with import-package (Cf #348123) !!
@Preference org.eclipse.e4.core.di.extensions
@EventTopic org.eclipse.e4.core.di.extensions
ESelectionService org.eclipse.e4.ui.workbench
EMenuService org.eclipse.e4.ui.workbench.swt
@Optional org.eclipse.e4.core.di
@Execute org.eclipse.e4.core.di
@CanExecute org.eclipse.e4.core.di
MApplication, MPart,… org.eclipse.e4.ui.model.workbench

You can also find more information in the Eclipse wiki

Leave a Reply