best way to handle conditional quickfixes [message #716064] |
Tue, 16 August 2011 11:24 |
Henrik Lindberg 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
|
|
|
Powered by
FUDForum. Page generated in 0.03191 seconds