Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » best way to handle conditional quickfixes
best way to handle conditional quickfixes [message #716064] Tue, 16 August 2011 11:24
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Hi,
I have quickfixes that makes use of issue data (discovered during
validation) and these quickfixes only apply when there is such data
available.

From what I have concluded, there is no simple way of configuring a
@Fix method that has the additional rule that there must be data
available for the quickfix to be applicable.

The effect is that a quickfix marker is displayed, but nothing happens
when clicked.

A simple solution is naturally to use different issue codes, but this is
not ideal (clutter).

Looking at the code, there is a call to #hasResolutionFor(String), but
this only passes the issue code. To override this requires overriding at
least 4-5 other classes and several methods.

Anyone with suggestions?

Regards
- henrik
Previous Topic:k value in antlr
Next Topic:Google Guice Exception starting my modelproject with XText2.0
Goto Forum:
  


Current Time: Fri Apr 16 12:39:56 GMT 2021

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

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

Back to the top