|
Re: Quick Fix Resolutions for custom markers [message #425302 is a reply to message #425251] |
Sat, 22 November 2008 07:51 |
Ed Merks Messages: 33141 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.
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03032 seconds