Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Quick Fix Resolutions for custom markers
Quick Fix Resolutions for custom markers [message #425251] Thu, 20 November 2008 21:54 Go to next message
Subapriya Nagarajan is currently offline Subapriya NagarajanFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,

I'm trying to validate a model on EMF editing domain, and create custom
markers for custom validation error that might be encountered. I'm trying
to use the quick fix feature provided by eclipse for those custom marker
resolutions. I've created my own validations by extending the EMF
validation framework, so I have the same marker type as used in emf ,ie,
org.eclipse.emf.ecore.diagnostic. Here is the extension point I have for
the quick fix.

<extension
point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
class="com.s1.pmt.vocabulary.gen.ViolationResolutionGenerator "
markerType="org.eclipse.emf.ecore.diagnostic">
</markerResolutionGenerator>
</extension>

The problem I'm facing right now is how to provide suggestions 'only' for
the custom markers that I created, in the quick fix dialog box when quick
fix is invoked , and not to those that got generated from EMF. Is there a
way to distinguish between the custom markers and the markers from EMF
validation framework that both have the same marker type, so that
suggested fixes are provided only for the custom markers that I created.
Your help is appreciated. Thanks.
Re: Quick Fix Resolutions for custom markers [message #425302 is a reply to message #425251] Sat, 22 November 2008 07:51 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30916
Registered: July 2009
Senior Member
Subapriya,

Comments below.

Subapriya Nagarajan wrote:
> Hi,
>
> I'm trying to validate a model on EMF editing domain, and create
> custom markers for custom validation error that might be encountered.
> I'm trying to use the quick fix feature provided by eclipse for those
> custom marker resolutions.
I've never used those...
> I've created my own validations by extending the EMF validation
> framework, so I have the same marker type as used in emf ,ie,
> org.eclipse.emf.ecore.diagnostic. Here is the extension point I have
> for the quick fix.
>
> <extension
> point="org.eclipse.ui.ide.markerResolution">
> <markerResolutionGenerator
> class="com.s1.pmt.vocabulary.gen.ViolationResolutionGenerator "
> markerType="org.eclipse.emf.ecore.diagnostic">
> </markerResolutionGenerator>
> </extension>
>
> The problem I'm facing right now is how to provide suggestions 'only'
> for the custom markers that I created, in the quick fix dialog box
> when quick fix is invoked , and not to those that got generated from
> EMF. Is there a way to distinguish between the custom markers and the
> markers from EMF validation framework that both have the same marker
> type, so that suggested fixes are provided only for the custom markers
> that I created.
The only thing that comes to mind it to create derived type of marker or
use some information in the marker, like the type of object it points
at, as the distinguishing factor.
> Your help is appreciated. Thanks.
>
Previous Topic:[Teneo] Problem in using Named Queries
Next Topic:Advice in migrating app
Goto Forum:
  


Current Time: Sat Feb 29 06:43:55 GMT 2020

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

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

Back to the top