<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 7/26/2013 6:54 PM, Sande Gilda
      wrote:<br>
    </div>
    <blockquote cite="mid:51F2A9D6.7050102@redhat.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Snjezana made some comments in the pull, so I investigated further
      and discovered some interesting behavior.<br>
      <ul>
        <li>I checked out Snjezana's pull to my local file system. </li>
        <li>I copied his 'quickstarts/kitchensink' quickstart project to
          my 'workspace/' directory.</li>
        <li>I imported the existing Maven 'workspace/kitchensink'
          project into JDBS</li>
        <ul>
          <li>Note that the project name is 'kitchensink'. (see the
            attached workspace-kitchensink screen shot)</li>
          <li>I clicked on the default.xhtml icon in the cheat sheet and
            an error appeared in the status bar 'Cannot open the
            /jboss-as-kitchensink/../default.xhtml' file.' <br>
          </li>
          <li>The file failed to open.</li>
        </ul>
        <li>I imported the existing Maven 'quickstarts/kitchensink'
          quickstart project into JDBS <br>
        </li>
        <ul>
          <li>Note that the project name is 'jboss-as-kitchensink'. (see
            the attached quickstart-kitchensink screen shot)<br>
          </li>
          <li>I clicked on the default.xhtml icon in the cheat sheet and
            an error still appeared in the status bar 'Cannot open the
            /jboss-as-kitchensink/../default.xhtml' file.'. <br>
          </li>
          <li>I'm not clear why it's displaying that error because the
            file opened and the lines of code were selected, which is
            the expected behavior.</li>
        </ul>
      </ul>
      <p>So it appears the cheat sheet was created for a quickstart that
        is a subproject for all quickstarts and will not work when the
        project is moved to a different location.<br>
      </p>
      <p>My questions are:</p>
      <ol>
        <li>Is this the expected behavior or am I doing something wrong
          here? As I said, I'm new to cheat sheets. :-)<br>
        </li>
      </ol>
    </blockquote>
    <br>
    When you test a cheat sheet that will be defined as a Maven project
    example, you have to import it using
    New&gt;Import&gt;Maven&gt;Existing Maven Projects. The Project
    Examples plugin will create a project based on the project's
    artifactId in the pom.xml.<br>
    You can also use the project name as a variable which is especially
    important when adding a cheat sheet to an archetype. See
    <a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/JBIDE-14333">https://issues.jboss.org/browse/JBIDE-14333</a> i
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/tools/whatsnew/examples/examples-news-4.1.0.Beta1.html">http://docs.jboss.org/tools/whatsnew/examples/examples-news-4.1.0.Beta1.html</a><br>
    You can create a test project example using a Project Example user
    site and test the cheat sheet with the Project Examples wizard.<br>
    <br>
    <blockquote cite="mid:51F2A9D6.7050102@redhat.com" type="cite">
      <ol>
        <li> <br>
        </li>
        <li>Does JDBS do something differently in the case where there
          is a parent pom in the higher level directory, in this case,
          the root quickstart pom file?</li>
      </ol>
    </blockquote>
    <br>
    No, it doesn't.<br>
    <br>
    <blockquote cite="mid:51F2A9D6.7050102@redhat.com" type="cite">
      <ol>
        <li>Does this mean cheat sheets will not work if a developer
          copies a quickstart project to a different location?</li>
      </ol>
    </blockquote>
    <br>
    The Project Examples plugin imports a maven project using the Maven
    API. Location isn't important.<br>
    <br>
    <blockquote cite="mid:51F2A9D6.7050102@redhat.com" type="cite">
      <ol>
        <li>In the near future, we plan to let developer download
          specific quickstarts independently. Will the cheat sheets work
          in this situation?</li>
      </ol>
    </blockquote>
    <br>
    That shouldn't be a problem.<br>
    <br>
    Snjeza<br>
    <br>
    <blockquote cite="mid:51F2A9D6.7050102@redhat.com" type="cite">
      <ol>
      </ol>
      <p>Thanks, <br>
        Sande<br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 07/25/2013 12:12 PM, Sande Gilda
        wrote:<br>
      </div>
      <blockquote cite="mid:51F14E75.6070801@redhat.com" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        Problem solved. The path in the cheat sheet doesn't match the
        quckstart path name. I will make a comment in the pull.<br>
        <br>
        Thanks!<br>
        <br>
        <div class="moz-cite-prefix">On 07/25/2013 10:02 AM, Sande Gilda
          wrote:<br>
        </div>
        <blockquote cite="mid:51F12FE1.6040101@redhat.com" type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          Hi Nick,<br>
          <br>
          I didn't even notice the error message in the status bar. I
          was looking for errors in the "Problems" window.<br>
          <br>
          I have not renamed anything. I got that link from this open
          quickstart pull request I need to review:
          <meta http-equiv="content-type" content="text/html;
            charset=ISO-8859-1">
          <a moz-do-not-send="true"
            href="https://github.com/jboss-jdf/jboss-as-quickstart/pull/363">https://github.com/jboss-jdf/jboss-as-quickstart/pull/363</a><br>
          <br>
          It sounds like the cheat sheet may be referring to the
          artifactId rather than the folder name. I will investigate.<br>
          <br>
          Thanks for the response.<br>
          Sande<br>
          <br>
          <div class="moz-cite-prefix">On 07/25/2013 09:01 AM, Nick
            Boldt wrote:<br>
          </div>
          <blockquote cite="mid:51F12190.2030104@redhat.com" type="cite">The


            error message shown, "Cannot open the
            /jboss-as-kitchensink/..." suggests that either you created
            the project w/ a non-standard name, renamed it, or the
            cheatsheet assumes the wrong project name. <br>
            <br>
            At any rate, there's a mismatch, but I'm not sure if it's
            user error (you renamed something) or cheatsheet error
            (invalid assumption on project path). Perhaps Snjezana can
            comment as to what happened. <br>
            <br>
            Just out of curiosity, where are you finding links to
            Snjeza's github fork? Surely the *published* content for
            JBDS doesn't link to these intermediate / developer-owned
            resources, but to content in <a moz-do-not-send="true"
              class="moz-txt-link-freetext"
              href="https://github.com/jbosstools/">https://github.com/jbosstools/</a>
            ? <br>
            <br>
            N <br>
            <br>
            On 07/25/2013 08:22 AM, Sande Gilda wrote: <br>
            <blockquote type="cite">I downloaded the final JDBS 7.0 GA
              yesterday and am making more <br>
              progress, but it's still not working as I would expect. I
              am testing the <br>
              kitchensink ".cheatsheet.xml" file located here: <br>
              <a moz-do-not-send="true" class="moz-txt-link-freetext"
                href="https://github.com/snjeza/quickstart/tree/jbide-12915/kitchensink">https://github.com/snjeza/quickstart/tree/jbide-12915/kitchensink</a>
              <br>
              <br>
              'Click to perform' now works with no error. <br>
              When I first expand a file in the cheatsheet, there are no
              icons to <br>
              indicate you can do anything, only blank spaces (see
              'index.xhtml'). <br>
              <br>
              I clicked in another panel and when I clicked back in the
              cheatsheet, I <br>
              see icons for Click to perform and Click to skip' for the
              <br>
              'default.xhtml' file. When I 'Click to perform', nothing
              happens. I <br>
              would expect it to open the file and go to the line
              number. Am I using <br>
              this incorrectly or expecting the wrong results?
              Screenshot is below. <br>
              <br>
              Thanks, <br>
              Sande <br>
              <br>
              <br>
              <br>
              <br>
              On 07/22/2013 05:54 PM, Sande Gilda wrote: <br>
              <blockquote type="cite">Thanks Snjezana and Nick! I'm
                relieved to know that a JDBS upgrade <br>
                will help. Now I know who to contact for help. :-) <br>
                <br>
                On 07/22/2013 04:52 PM, Snjezana Peco wrote: <br>
                <blockquote type="cite">The <br>
                  org.jboss.tools.project.examples.cheatsheet.getProjectForCheatsheet



                  <br>
                  command has been introduced in JBT 4.1/JBDS 7.0. <br>
                  This command can't be used in JBDS 6.0.1.GA. <br>
                  See <a moz-do-not-send="true"
                    class="moz-txt-link-freetext"
                    href="https://issues.jboss.org/browse/JBIDE-14333">https://issues.jboss.org/browse/JBIDE-14333</a>.
                  <br>
                  <br>
                  Snjeza <br>
                  <br>
                  On 7/22/2013 9:20 PM, Rodney Russ wrote: <br>
                  <blockquote type="cite">[adding jboss tools list -
                    external-exadel] <br>
                    <br>
                    ------------------------------------------------------------------------



                    <br>
                    <br>
                    &nbsp;&nbsp;&nbsp; I am new to cheat sheets. I ran into issues
                    testing quickstart <br>
                    &nbsp;&nbsp;&nbsp; pull 363, so I decided to take a step back and
                    look at Max's <br>
                    &nbsp;&nbsp;&nbsp; basic cheatsheet-helloworld example. The source
                    is here: <br>
                    &nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
                      class="moz-txt-link-freetext"
                      href="https://github.com/maxandersen/cheatsheet-helloworld">https://github.com/maxandersen/cheatsheet-helloworld</a>
                    <br>
                    <br>
                    &nbsp;&nbsp;&nbsp; I imported his quickstart into JDBS 6.0.1 GA,&nbsp;
                    went to Help --&gt; <br>
                    &nbsp;&nbsp;&nbsp; Cheat Sheets. and opened the <br>
                    &nbsp;&nbsp;&nbsp; cheatsheet-helloworld/cheatsheet.xml file. <br>
                    <br>
                    &nbsp;&nbsp;&nbsp; The cheatsheet.xml source file contains this
                    XML: <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;item <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; skip="false" <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title="Welcome to this project"&gt; <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;description&gt; <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; It is important to force this to be run
                    to make the <br>
                    &nbsp;&nbsp;&nbsp; variable resolved - a simple way to make that
                    happen is to add <br>
                    &nbsp;&nbsp;&nbsp; an required command as seen below. <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/description&gt; <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;command <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; required="true" <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; returns="currentProject" <br>
                    &nbsp;&nbsp;&nbsp;
serialization="org.jboss.tools.project.examples.cheatsheet.getProjectForCheatsheet"/&gt;<br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/item&gt; <br>
                    <br>
                    &nbsp;&nbsp;&nbsp; In the cheat sheet in the right pane, I clicked
                    on the "Click to <br>
                    &nbsp;&nbsp;&nbsp; perform" under the description above: <br>
                    <br>
                    <br>
                    <br>
                    &nbsp;&nbsp;&nbsp; I get this error: <br>
                    <br>
                    <br>
                    <br>
                    &nbsp;&nbsp;&nbsp; I also don't see any link under the "Open a
                    file" section <br>
                    &nbsp;&nbsp;&nbsp; either. I believe there should be one based on
                    this command: <br>
                    <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;command <br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; required="false" <br>
                    &nbsp;&nbsp;&nbsp;
serialization="org.jboss.tools.project.examples.cheatsheet.openFileInEditor(path=/${currentProject}/cheatsheet.xml,fromLine=27,toLine=29)"/&gt;<br>
                    <br>
                    &nbsp;&nbsp;&nbsp; Does anyone have any idea what I'm doing wrong?
                    <br>
                    <br>
                    &nbsp;&nbsp;&nbsp; Thanks, <br>
                    &nbsp;&nbsp;&nbsp; Sande <br>
                    <br>
                    &nbsp;&nbsp;&nbsp; _______________________________________________
                    <br>
                    &nbsp;&nbsp;&nbsp; jdf-dev mailing list <br>
                    &nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
                      class="moz-txt-link-abbreviated"
                      href="mailto:jdf-dev@lists.jboss.org">jdf-dev@lists.jboss.org</a>
                    <br>
                    &nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
                      class="moz-txt-link-freetext"
                      href="https://lists.jboss.org/mailman/listinfo/jdf-dev">https://lists.jboss.org/mailman/listinfo/jdf-dev</a>
                    <br>
                    <br>
                    <br>
                  </blockquote>
                  <br>
                </blockquote>
                <br>
                <br>
                <br>
                _______________________________________________ <br>
                jdf-dev mailing list <br>
                <a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:jdf-dev@lists.jboss.org">jdf-dev@lists.jboss.org</a>
                <br>
                <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://lists.jboss.org/mailman/listinfo/jdf-dev">https://lists.jboss.org/mailman/listinfo/jdf-dev</a>
                <br>
              </blockquote>
              <br>
            </blockquote>
            <br>
          </blockquote>
          <br>
        </blockquote>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
jdf-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:jdf-dev@lists.jboss.org">jdf-dev@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jdf-dev">https://lists.jboss.org/mailman/listinfo/jdf-dev</a></pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>