Problem with isJavaEnabled() [message #1490775] |
Fri, 28 November 2014 07:34  |
Eclipse User |
|
|
|
The Geppetto product is built on Xtext but it does not include JDT. Geppetto may also be installed into an Eclipse IDE but unless Xtext is already installed there it won't work very well. Here's why:
The product includes a feature where the following is included:
- The Eclipse platform
- The Xtext plug-ins needed by Geppetto
- The Geppetto feature
The problem is that when we don't use the product but instead installs the feature #3 into an Eclipse IDE, then Xtext detects that java is enabled. This in turn results in that the SharedContributionWithJDT will make an attempt to bind the class JdtQueuedBuildData which in turn references JavaBuilderState which we neither provide nor depend on. Consequently it has not been installed by p2.
In short, when 'isJavaEnabled()' returns true the xtext requirements change. Bundles marked as optional become required and our bundles fail to start. I don't know what the best solution is for this and any advice would be welcome:
- We can tell our users that in order to install Geppetto into an IDE, they need to install additional Xtext features first because the IDE has the JDK installed and that in turn increases the requirements from Xtext beyond what our feature actually requires.
- We can provide an additional feature that includes the xtext bundles that are no longer optional when the JDK is present and tell users that they need to install that too.
None of the above strikes me as an ideal solution. I think we would need a way to influence the SharedContributionWithJDT module and prevent it from binding even when java is enabled.
|
|
|
|
|
Re: Problem with isJavaEnabled() [message #1497426 is a reply to message #1495647] |
Wed, 03 December 2014 15:27  |
Eclipse User |
|
|
|
Hi Thomas,
that solution is usually the best you could provide. Could you please
share a list of bundles that should be available, too, when
#isJavaEnabled may return true as a valid answer?
Best,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
Powered by
FUDForum. Page generated in 0.13793 seconds