Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » change type of problem markers
change type of problem markers [message #910744] Mon, 10 September 2012 10:23 Go to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Hi!

Is it possible to make Xtext create problem markers of a custom type? "Xtext check (fast)" is not very descriptive for a user that doesn't even know what Xtext is.

best regards,
Vlad
Re: change type of problem markers [message #910783 is a reply to message #910744] Mon, 10 September 2012 11:38 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Am 10.09.12 12:23, schrieb Vlad Dumitrescu:
> Hi!
>
> Is it possible to make Xtext create problem markers of a custom type?
> "Xtext check (fast)" is not very descriptive for a user that doesn't
> even know what Xtext is.
>
> best regards,
> Vlad
>

That's possible in Xtext 2.3. Please make sure that your plugin.xml and
plugin.xml_gen are in sync.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: change type of problem markers [message #910787 is a reply to message #910783] Mon, 10 September 2012 11:51 Go to previous messageGo to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Ah, thanks, I forgot to check that file!

By the way, I notice there are a couple of extensions that are no longer generated, should they be deleted?

<extension
point="org.eclipse.emf.ecore.extension_parser">
<parser class="org.erlide.ui.ErlangExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
type="hrl">
</parser>
</extension>
<extension point="org.eclipse.xtext.extension_resourceServiceProvider">
<resourceServiceProvider class="org.erlide.ui.ErlangExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
uriExtension="hrl">
</resourceServiceProvider>
</extension>

regards,
Vlad
Re: change type of problem markers [message #910789 is a reply to message #910787] Mon, 10 September 2012 11:55 Go to previous messageGo to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
This is also a bit tricky to remember: whenever updating my version of Xtext, I should regenerate the support for my language and see if plugin.xml needs to be merged. Right?

Is the versioning policy that this should only be required for at least minor version changes or could it apply for micro-changes?

/Vlad
Re: change type of problem markers [message #911058 is a reply to message #910787] Mon, 10 September 2012 22:36 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Am 10.09.12 13:51, schrieb Vlad Dumitrescu:
> Ah, thanks, I forgot to check that file!
> By the way, I notice there are a couple of extensions that are no longer
> generated, should they be deleted?
> <extension
> point="org.eclipse.emf.ecore.extension_parser">
> <parser
> class="org.erlide.ui.ErlangExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
>
> type="hrl">
> </parser>
> </extension>
> <extension
> point="org.eclipse.xtext.extension_resourceServiceProvider">
> <resourceServiceProvider
> class="org.erlide.ui.ErlangExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
>
> uriExtension="hrl">
> </resourceServiceProvider>
> </extension>
>
> regards,
> Vlad

Hi Vlad,

those extension should (usually) not be deleted. Did you remove a
generator fragment from your workflow?

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: change type of problem markers [message #911059 is a reply to message #910789] Mon, 10 September 2012 22:37 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Am 10.09.12 13:55, schrieb Vlad Dumitrescu:
> This is also a bit tricky to remember: whenever updating my version of
> Xtext, I should regenerate the support for my language and see if
> plugin.xml needs to be merged. Right?
>
> Is the versioning policy that this should only be required for at least
> minor version changes or could it apply for micro-changes?
>
> /Vlad
>

It is usually not required to regenerate the language between micro
version changes / for service releases.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: change type of problem markers [message #911222 is a reply to message #911058] Tue, 11 September 2012 07:52 Go to previous messageGo to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 431
Registered: July 2009
Location: Gothenburg
Senior Member
Hi Sebastian,

Well, I checked the history of the workflow file and I did not remove anything in the last 5 months. Can you tell which fragment would have generated those extension points?

regards,
Vlad
Re: change type of problem markers [message #911232 is a reply to message #911222] Tue, 11 September 2012 08:04 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Am 11.09.12 09:52, schrieb Vlad Dumitrescu:
> Hi Sebastian,
>
> Well, I checked the history of the workflow file and I did not remove
> anything in the last 5 months. Can you tell which fragment would have
> generated those extension points?
>
> regards,
> Vlad

The org.eclipse.xtext.generator.resourceFactory.ResourceFactoryFragment
should add these.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Previous Topic:error when generating language
Next Topic:How to generate code using values of declared variables with JvmModelInferrer in xtext?
Goto Forum:
  


Current Time: Fri Apr 19 00:46:35 GMT 2024

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

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

Back to the top