<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    IIUC, one of cases is when a custom API becomes standardized.  I.e. 
    com.ibm.javax.foo.Bar  -&gt;  javax.foo.Bar.<br>
    E.g. com.ibm.ws.javax.activity.*   (not sure, but looks like that's
    what happened with it)<br>
    <br>
    Ondra<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 28.4.2015 19:52, Lincoln Baxter, III
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEp_U4HM-kCuu9hrt0LAiP7NKe1_y8pVWyVrNvU_ymd7R_hcPg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Mostly, I'm having trouble thinking of any cases
        where we actually know the code that we could replace. I think
        this is something we could begin to do, but it is largely a rule
        quality issue. We just don't have the expert knowledge to supply
        this kind of info yet. It's a problem we're thinking about. That
        said, having the functionality in place for it might be a good
        idea.
        <div><br>
        </div>
        <div>Can templates be provided programmatically?</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Apr 28, 2015 at 12:17 PM, Ian
          Tewksbury <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:itewk@redhat.com" target="_blank">itewk@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div
                style="font-family:Arial;font-size:12pt;color:#000000">
                <div>Liconln,</div>
                <div><br>
                </div>
                <div>I plan on including the links in the Warning/Error
                  messages.<br>
                </div>
                <div><br>
                </div>
                <div>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.<br>
                </div>
                <div><br>
                </div>
                <div>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.<br>
                </div>
                <div><br>
                </div>
                <div>Then the last level up is to add an action to apply
                  all the windup quick fixes at once.<br>
                </div>
                <div><br>
                </div>
                <div>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.<br>
                </div>
                <div><br>
                </div>
                <div>Do you think there are any cases where a template
                  would not be needed?<br>
                </div>
                <div><br>
                  ~Ian<br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <hr>
                <div
style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From:
                  </b>"Lincoln Baxter, III" &lt;<a
                    moz-do-not-send="true"
                    href="mailto:lincolnbaxter@gmail.com"
                    target="_blank">lincolnbaxter@gmail.com</a>&gt;<br>
                  <b>To: </b>"Windup-dev List" &lt;<a
                    moz-do-not-send="true"
                    href="mailto:windup-dev@lists.jboss.org"
                    target="_blank">windup-dev@lists.jboss.org</a>&gt;<br>
                  <b>Sent: </b>Tuesday, April 28, 2015 11:06:14 AM<br>
                  <b>Subject: </b>Re: [windup-dev] Sugested Fix Hints
                  <div>
                    <div class="h5"><br>
                      <div><br>
                      </div>
                      <div dir="ltr">Hey Ian,
                        <div><br>
                        </div>
                        <div>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.</div>
                        <div><br>
                        </div>
                        <div>How do you envision the quick fix stuff
                          working? What type of information would we
                          need to give you?</div>
                        <div><br>
                        </div>
                        <div>Does that answer your question?</div>
                        <div><br>
                        </div>
                        <div>Thanks!</div>
                        <div>~Lincoln</div>
                      </div>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Mon, Apr 27, 2015 at
                          8:24 AM, Ian Tewksbury <span dir="ltr">&lt;<a
                              moz-do-not-send="true"
                              href="mailto:itewk@redhat.com"
                              target="_blank">itewk@redhat.com</a>&gt;</span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div>
                              <div
                                style="font-family:Arial;font-size:12pt;color:#000000">
                                <div>All,<br>
                                </div>
                                <div><br>
                                </div>
                                <div>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.<br>
                                </div>
                                <div><br>
                                </div>
                                <div>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.<span><span
                                      style="color:#888888"
                                      color="#888888"><br>
                                    </span></span></div>
                                <span><span style="color:#888888"
                                    color="#888888">
                                    <div><br>
                                      ~Ian<br>
                                    </div>
                                  </span></span></div>
                            </div>
                            <br>
_______________________________________________<br>
                            windup-dev mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:windup-dev@lists.jboss.org"
                              target="_blank">windup-dev@lists.jboss.org</a><br>
                            <a moz-do-not-send="true"
                              href="https://lists.jboss.org/mailman/listinfo/windup-dev"
                              target="_blank">https://lists.jboss.org/mailman/listinfo/windup-dev</a><br>
                          </blockquote>
                        </div>
                        <br>
                        <br clear="all">
                        <div><br>
                        </div>
                        -- <br>
                        <div>Lincoln Baxter, III<br>
                          <a moz-do-not-send="true"
                            href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
                          "Simpler is better."</div>
                      </div>
                      <br>
                      _______________________________________________<br>
                      windup-dev mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:windup-dev@lists.jboss.org"
                        target="_blank">windup-dev@lists.jboss.org</a><br>
                      <a moz-do-not-send="true"
                        href="https://lists.jboss.org/mailman/listinfo/windup-dev"
                        target="_blank">https://lists.jboss.org/mailman/listinfo/windup-dev</a></div>
                  </div>
                </div>
                <div><br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            windup-dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:windup-dev@lists.jboss.org">windup-dev@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/windup-dev"
              target="_blank">https://lists.jboss.org/mailman/listinfo/windup-dev</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">Lincoln Baxter, III<br>
          <a moz-do-not-send="true" href="http://ocpsoft.org"
            target="_blank">http://ocpsoft.org</a><br>
          "Simpler is better."</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
windup-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:windup-dev@lists.jboss.org">windup-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/windup-dev">https://lists.jboss.org/mailman/listinfo/windup-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>