Liconln,
I plan on including the links in the Warning/Error messages.
As far as quick fix, for the dead simple low hanging fruit it would need to be replace the
detected code with this code. Maybe there isnt such any cases.
The next more complicated case is replace detected code with this code template, then we
can use the template API in eclipse to fill out the template based on other information.
Then the last level up is to add an action to apply all the windup quick fixes at once.
So there would really just need to be one new API, "getSuggestedReplacment" (or
something like that). WHich would then return a block of code to replace the detected code
with. Later we can figure out how we could do Templating through that.
Do you think there are any cases where a template would not be needed?
~Ian
----- Original Message -----
From: "Lincoln Baxter, III" <lincolnbaxter(a)gmail.com>
To: "Windup-dev List" <windup-dev(a)lists.jboss.org>
Sent: Tuesday, April 28, 2015 11:06:14 AM
Subject: Re: [windup-dev] Sugested Fix Hints
Hey Ian,
Hints are just HTML/Markdown, and don't provide anything that would really be useful
for a quick fix at this point, but... they should have the ability to include Links/HREFs
as well. If you look at the windup-tooling-api, you should see Hint, Classification, and
Link.
How do you envision the quick fix stuff working? What type of information would we need to
give you?
Does that answer your question?
Thanks!
~Lincoln
On Mon, Apr 27, 2015 at 8:24 AM, Ian Tewksbury < itewk(a)redhat.com > wrote:
All,
Do any of the hints have a "suggested fix" built into them. I was looking at the
hint API but didnt see such a thing, but I know it had been talked about in the past.
If such a thing exists I want to detect hints with "suggested code fixes" and
auto generate Eclipse quick fixes for those hints so people can easily apply the quick
fixes to knock out the easy stuff in an automated fashion.
~Ian
_______________________________________________
windup-dev mailing list
windup-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/windup-dev
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
_______________________________________________
windup-dev mailing list
windup-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/windup-dev