Dependency information required #1227

CLOSED
Submitted 7 months ago

On section 2.1, if I use the code as is, I get these errors:

  • The import org.eclipse.e4.ui.css cannot be resolved

  • IThemeEngine cannot be resolved to a type

I could get rid of them by adding org.eclipse.e4.ui.css.swt.theme as a dependency. But then I get several occurrences of this warning:

  • Discouraged access: The type 'IThemeEngine' is not API (restriction on required library 'E:\Mário\workspace-eclipse-curso-vogella\.metadata\.plugins\org.eclipse.pde.core\.bundle_pool\plugins\org.eclipse.e4.ui.css.swt.theme_0.14.100.v20230727-0604.jar')

Is this expected?

Comments

  6 months ago

https://learn.vogella.com/exercises/rich-client-platform/using-css-styling-0egqU#create-a-new-plug-in-and-add-dependencies mention that org.eclipse.e4.ui.css.swt.theme needs to be added as manifest dependency.

The discouraged access it expected. I added this information: NOTE: IThemeEngine is not yet released API, therefore you will see The type 'IThemeEngine' is not API messages if you use it. Unfortunately, official API for theme switching has not been released yet, so you have to use this provisional API.

  6 months ago

Thank you for the added note.

Regarding the import, my bad, sorry!

Please login to write a comment.