Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to add "problem markers" for gmf editors?
How to add "problem markers" for gmf editors? [message #231266] Tue, 26 May 2009 01:08 Go to next message
Eclipse UserFriend
Hello All,

How to add "problem markers" for gmf editors?

Thanks In Advance,
Regards,
Nagesh Y.J.
Re: How to add "problem markers" for gmf editors? [message #231275 is a reply to message #231266] Tue, 26 May 2009 03:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi!

If you are talking about marking your nodes with red signs when there is
something wrong with it, then you can make use of validation.

The document
http://www.sts.tu-harburg.de/pw-and-m-theses/2006/dorai06.pd f
seems to provide the necessary infos at
4.1 EMFT Validation

Make sure to add the following plug-in to your run configuration (it does
not seem to get added automatically):
gmf org.eclipse.emf.validation.ui

After that, validation should be available in your menu at
"Diagram->Validate".

Regards, Peter


Nagesh wrote:

> Hello All,

> How to add "problem markers" for gmf editors?

> Thanks In Advance,
> Regards,
> Nagesh Y.J.
Re: How to add "problem markers" for gmf editors? [message #231309 is a reply to message #231275] Tue, 26 May 2009 05:19 Go to previous messageGo to next message
Eclipse UserFriend
Hello,
it seems I encountered another problem (I have been reading the PDF you
linked before):
the audit problems are displayed on the diagram but I cannot get them into
the problem view. However it seems to be automatically done in the PDF
example. Could you please tell me if there is any additional step to
perform here?

Note : I verified the providers priority and most of the plugin extension
points and it looks to be identical to the PDF ones. Actually the main
difference I have found is the constraint type, as I do not use OCL but
java ones. May it be a bug of the code generation due to java constraint
usage?

Thx in advance, best regards,
R. Mechali
Re: How to add "problem markers" for gmf editors? [message #231377 is a reply to message #231309] Tue, 26 May 2009 07:38 Go to previous messageGo to next message
Eclipse UserFriend
I just tried it with constraints using Java, and I can see the errors in
my Problems-view after validation (GMF 2.1).

Not sure what could be wrong with configuration, since marking the wrong
nodes seems to work, so your validation has to be ok...

Regards, Peter
Re: How to add "problem markers" for gmf editors? [message #231384 is a reply to message #231275] Tue, 26 May 2009 07:48 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Peter...
Re: How to add "problem markers" for gmf editors? [message #231391 is a reply to message #231377] Tue, 26 May 2009 07:51 Go to previous messageGo to next message
Eclipse UserFriend
Hello again,
could you tell me if you use the constraints in live mode or not? (this
may help me to reduce the investigation field).
Thanks for your answer, best regards,
R. Mechali
Re: How to add "problem markers" for gmf editors? [message #231440 is a reply to message #231391] Tue, 26 May 2009 08:30 Go to previous messageGo to next message
Eclipse UserFriend
It works with and without Live Mode.

So your Problems-View continues to say "0 items" even though there are
nodes marked with red x-signs in the diagram?
Re: How to add "problem markers" for gmf editors? [message #231532 is a reply to message #231440] Wed, 27 May 2009 03:58 Go to previous messageGo to next message
Eclipse UserFriend
Yes, actually it does not fill with the error and warning items of the
diagram (to confirm this information I have also replaced my custom
validation action by the generated one). May it come from a bad gmfgen
configuration?
Anyway, thanks for your help.

R. Mechali
Re: How to add "problem markers" for gmf editors? [message #231608 is a reply to message #231532] Wed, 27 May 2009 11:58 Go to previous messageGo to next message
Eclipse UserFriend
I just tried it as RCP-application, and here it does not seem to work.

Is this what you're trying?
Re: How to add "problem markers" for gmf editors? [message #231772 is a reply to message #231608] Fri, 29 May 2009 03:36 Go to previous messageGo to next message
Eclipse UserFriend
Yes this is what I am trying. Thank you a lot for the information it will
really help the project advancement! Do you know if this is an abnormal
behavior?
Thank you a lot, best regards,
R. Mechali
Re: How to add "problem markers" for gmf editors? [message #231790 is a reply to message #231772] Fri, 29 May 2009 04:39 Go to previous message
Eclipse UserFriend
I'm quite unexperienced with GMF and Eclipse, so it's just trial&error for
me too...

Here's another (unresolved) thread
http://www.eclipse.org/newsportal/article.php?id=18409&g roup=eclipse.modeling.gmf
addressing the same issue.

I try to continue discussion there, maybe someone else can give us a
hand...

Regards, Peter

> Yes this is what I am trying. Thank you a lot for the information it will
> really help the project advancement! Do you know if this is an abnormal
> behavior?
Previous Topic:moving compartment in composite custom figure
Next Topic:Domain model class mapping to element in domain file
Goto Forum:
  


Current Time: Wed Sep 17 19:19:35 EDT 2025

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

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

Back to the top