Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » discouraged access to org.eclipse.xtext.ui.wizard.template contents
discouraged access to org.eclipse.xtext.ui.wizard.template contents [message #1839883] Wed, 31 March 2021 06:52 Go to next message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Hi all,

The generated template provider classes contain references to various interfaces in org.eclipse.xtext.ui.wizard.template - namely

import org.eclipse.xtext.ui.wizard.template.FileTemplate
import org.eclipse.xtext.ui.wizard.template.IFileGenerator
import org.eclipse.xtext.ui.wizard.template.IFileTemplateProvider
import org.eclipse.xtext.ui.wizard.template.IProjectGenerator
import org.eclipse.xtext.ui.wizard.template.IProjectTemplateProvider
import org.eclipse.xtext.ui.wizard.template.ProjectTemplate


This causes a number of warnings in the IDE because the package is not among those exported by org.eclipse.xtext.ui. Is this a bug or did I miss something...?

Xtext Complete SDK 2.25.0.v20210301-1429

Thanks
Volker
Re: discouraged access to org.eclipse.xtext.ui.wizard.template contents [message #1839885 is a reply to message #1839883] Wed, 31 March 2021 06:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
alll these files are also marked as @Beta
please create an issue at https://github.com/eclipse/xtext-eclipse to discuss


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Wed, 31 March 2021 07:02]

Report message to a moderator

Re: discouraged access to org.eclipse.xtext.ui.wizard.template contents [message #1839888 is a reply to message #1839885] Wed, 31 March 2021 07:19 Go to previous messageGo to next message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 133
Registered: February 2016
Senior Member
Hello Volker,

As a workaround you can supress the warnings by defining explicit access rules for classes or packages in the Library section of the Build Path settings:
open "Plug-in Dependencies" and Edit on Access Rules. Add a rule of type "Accessible". Note that you have to convert a class name to a path with "/".

Hope that helps,
Tamás
Re: discouraged access to org.eclipse.xtext.ui.wizard.template contents [message #1839890 is a reply to message #1839885] Wed, 31 March 2021 07:48 Go to previous message
Volker Wegert is currently offline Volker WegertFriend
Messages: 182
Registered: July 2009
Senior Member
Christian Dietrich wrote on Wed, 31 March 2021 02:59
alll these files are also marked as @Beta


You're right, as per default :-) I missed that.

Christian Dietrich wrote on Wed, 31 March 2021 02:59
please create an issue at https://github.com/eclipse/xtext-eclipse to discuss


Done, https://github.com/eclipse/xtext/issues/1962
Previous Topic:Xtext + OCL
Next Topic:Hover on keywords in nested structure does not seem to work
Goto Forum:
  


Current Time: Fri May 14 11:21:45 GMT 2021

Powered by FUDForum. Page generated in 0.02128 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top