Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » XBase in Eclipse Product / RCP application?
XBase in Eclipse Product / RCP application? [message #728946] Sat, 24 September 2011 13:53 Go to next message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 114
Registered: October 2010
Senior Member
I am trying to run an Xbase editor in an Eclipse "product". This product does not contain all JDT stuff for now. When I use a Java type in the XBase editor I get the error message:

0    [Worker-3] ERROR org.eclipse.xtext.validation.CompositeEValidator  - Error executing EValidator
java.lang.RuntimeException: org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.net.MalformedURLException: unknown protocol: java

I think that there is a dependency from XBase to some plugin / feature. I have tried to add all JDT plugins, all emf and all Xtext plugins to the product's features, but the error remains. Does anyone know what the necessarily dependencies are for using Xbase this way, and what causes the "unknown protocol" error?

Jos

Re: XBase in Eclipse Product / RCP application? [message #728972 is a reply to message #728946] Sat, 24 September 2011 16:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Jos,

It appears that
org.eclipse.xtext.common.types.access.impl.AbstractJvmTypeProvider.registerProtocol
should register a resource factory for the "java" protocol when I look
at how the Xcore editor functions.



On 24/09/2011 6:53 AM, Jos Warmer wrote:
> I am trying to run an Xbase editor in an Eclipse "product". This
> product does not contain all JDT stuff for now. When I use a Java
> type in the XBase editor I get the error message:
>
> 0 [Worker-3] ERROR
> org.eclipse.xtext.validation.CompositeEValidator - Error executing
> EValidator
> java.lang.RuntimeException:
> org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
> java.net.MalformedURLException: unknown protocol: java
> I think that there is a dependency from XBase to some plugin /
> feature. I have tried to add all JDT plugins, all emf and all Xtext
> plugins to the product's features, but the error remains. Does anyone
> know what the necessarily dependencies are for using Xbase this way,
> and what causes the "unknown protocol" error?
>
> Jos
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XBase in Eclipse Product / RCP application? [message #728998 is a reply to message #728972] Sat, 24 September 2011 17:25 Go to previous messageGo to next message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 114
Registered: October 2010
Senior Member
Ed,

The org.eclipse.xtext.common.types plugin is installed in the running workspace, so I would expect it to register the resource factory. Any idea why it doesn't ?

Jos
Re: XBase in Eclipse Product / RCP application? [message #729007 is a reply to message #728998] Sat, 24 September 2011 18:01 Go to previous messageGo to next message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 114
Registered: October 2010
Senior Member
Hmmm,

I did create a Project (general one) and put the Xbase file in there. If instead, I create a Java project and put the Xbase file in there it works ok. It uses some of the Java project settings.

Jos
Re: XBase in Eclipse Product / RCP application? [message #729320 is a reply to message #729007] Sun, 25 September 2011 21:34 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Jos,

Xbase uses the JDT to bind against Java types. If you want to use that
without the JDT installed, you'll have to customize a lot of services.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

On 24.09.11 20:01, Jos Warmer wrote:
> Hmmm,
>
> I did create a Project (general one) and put the Xbase file in there. If
> instead, I create a Java project and put the Xbase file in there it
> works ok. It uses some of the Java project settings.
>
> Jos
Re: XBase in Eclipse Product / RCP application? [message #729417 is a reply to message #729320] Mon, 26 September 2011 06:58 Go to previous message
Jos Warmer is currently offline Jos WarmerFriend
Messages: 114
Registered: October 2010
Senior Member
Sebastian,

Thanks for the clarification. I am using Xbase as an expression language in a business modeling tool. As you can imagine we have no Java projects there, just business models.

But I do see the point that you need access to java services, so my solution for now is to add a Java project in the background.

Jos
Previous Topic:ImportURIScopingFragment vs. ImportNamespacesScopingFragment
Next Topic:parsing javadoc-like text blocks
Goto Forum:
  


Current Time: Sat Apr 27 00:06:29 GMT 2024

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

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

Back to the top