Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Override XtextBuilder
Override XtextBuilder [message #1739879] Fri, 05 August 2016 09:51 Go to next message
Tamas Ambrus is currently offline Tamas AmbrusFriend
Messages: 10
Registered: August 2016
Junior Member
Dear Xtext community,

My goal is to override XtextBuilder class in org.eclipse.xtext.builder.impl package. Since it's not a final class I can do it, but I have a problem: how is it possible to bind it to the projects in the runtime Eclipse application? If you could answer it clearly, I would be happy.

Thanks for your help,
Tamás
Re: Override XtextBuilder [message #1740074 is a reply to message #1739879] Tue, 09 August 2016 03:41 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
the org.eclipse.xtext.ui.shared.overridingGuiceModule extension should allow you to register an additional guice module where you can add this binding to


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Override XtextBuilder [message #1740089 is a reply to message #1740074] Tue, 09 August 2016 06:56 Go to previous message
Tamas Ambrus is currently offline Tamas AmbrusFriend
Messages: 10
Registered: August 2016
Junior Member
Dear Christian,

Thank you, I've found it after I created this topic. To make it clear for the guys who find this question:

1. Take a main plugin.xml in which you can put this code:
<extension point="org.eclipse.xtext.ui.shared.overridingGuiceModule">
    <module
        class="com.xx.yy.xtext.XtextModule">
    </module>
</extension>


2. Then create a class:
public class XtextModule extends AbstractModule


This class can behave like SharedModule in org.eclipse.xtext.ui.shared.internal package.

Thanks!
Previous Topic:index is incomplete during auto build after cleaning more than one project
Next Topic:How to set system environment variable eclipse configuration file?
Goto Forum:
  


Current Time: Thu Apr 25 12:33:32 GMT 2024

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

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

Back to the top