not-xtext builder for my dsl ? [message #848195] |
Wed, 18 April 2012 02:35 |
Eliott Gentil Messages: 2 Registered: April 2012 |
Junior Member |
|
|
Hi,
I have an existing 3rd part compiler for a language. I used xtext to make a DSL for this language and have a working editor with colors, errors and warnings.
Now I want to use my compiler to build the project. I read all the docs I could find, but I am still not sure that this is the good way to do it, can you please confirm ?
-in GenerateMyDsl.mwe2, comment the line : fragment = builder.BuilderIntegrationFragment {}
-in mydsl.ui project, in plugin.xml, remove: <extension
point="org.eclipse.xtext.builder.participant">
<participant
class="...ExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant">
</participant>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
category="..."
class="...ExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
id="..."
name="Compiler">
<keywordReference id="..."/>
</page>
</extension>
<extension
point="org.eclipse.ui.propertyPages">
<page
category="..."
class="..."
id="..."
name="Compiler">
<keywordReference id="..."/>
<enabledWhen>
<adapt type="org.eclipse.core.resources.IProject"/>
</enabledWhen>
<filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
</page>
</extension> and replace it with anything I could find in the eclipse documentation about how to add a builder for not-xtext projects.
Is that ok ?
Thx,
Eliott.
[Updated on: Wed, 18 April 2012 02:36] Report message to a moderator
|
|
|
Re: not-xtext builder for my dsl ? [message #848459 is a reply to message #848195] |
Wed, 18 April 2012 08:39 |
|
Hi Eliott,
as I understood you do not have the Xtext nature on the projects you
would like to build? So what kind of listener or BuilderParticipant do
you want to use instead?
The BuilderIntegration binds special Implementation to make the index
accessable that gets constructed for projects that have the Xtext
nature. What do you want to achive? Is it a constraint that you have to
avoid the xtext nature in your project?
Cheers,
Holger
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
|
|
Re: not-xtext builder for my dsl ? [message #849004 is a reply to message #848660] |
Wed, 18 April 2012 19:50 |
Jan Koehnlein Messages: 760 Registered: July 2009 Location: Hamburg |
Senior Member |
|
|
But leave the BuilderIntegrationFragment in place. Otherwise
cross-references depending on the index will no longer be resolvable and
you'll experience strangest errors.
Am 18.04.12 15:09, schrieb Christian Dietrich:
> Hi,
>
> you can remove the Builder Participant Registration by removing
> fragment = generator.GeneratorFragment from the workflow
> (dont forget to merge plugin.xml and plugin.xml_gen)
> or by simply removing the builder participant registration
> from the plugin.xml
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
---
Get professional support from the Xtext committers at www.typefox.io
|
|
|
Powered by
FUDForum. Page generated in 0.03876 seconds