Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Create own notice elements(Like info(), warning(), error())
Create own notice elements [message #822263] Fri, 16 March 2012 11:35 Go to next message
Heinz Huber is currently offline Heinz HuberFriend
Messages: 45
Registered: February 2012
Member
Hi,

is there any way to create own notice elements?
I want to use them after validations to show different types of errors with different symbols instead the one that error brings with.

Is there a way to to this?
And if there is a way ... how?

Thanks in advance! Smile
Re: Create own notice elements [message #822284 is a reply to message #822263] Fri, 16 March 2012 12:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

have a look at MarkerCreator and its callees

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 16 March 2012 12:16]

Report message to a moderator

Re: Create own notice elements [message #822287 is a reply to message #822263] Fri, 16 March 2012 12:19 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
You can add new marker types.
I create some new types of error and warning markers in
cloudsmith/geppetto @ github that you could look at.

The marker API is described in Eclipse documentation.

The rest depends on what you want to do, where, what triggers their
creation and more importantly cleanup when the markers should no longer
be there.

Regards
- henrik

On 2012-16-03 12:35, Heinz Huber wrote:
> Hi,
>
> is there any way to create own notice elements?
> I want to use them after validations to show different types of errors
> with different symbols instead the one that error brings with.
>
> Is there a way to to this?
> And if there is a way ... how?
> Thanks in advance! :)
>
Previous Topic:using non java style escaping in xtext eclipse editor
Next Topic:XtextResource couldn't resolve references to an external Ecore model
Goto Forum:
  


Current Time: Sat Apr 20 05:23:20 GMT 2024

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

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

Back to the top