Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-6598

Incorrect result after editing a template on the Visual Templates Preference Page.

    XMLWordPrintable

Details

    • Hide

      1) Open "Visual Templates Preference Page" (by clicking on the "Preferences" toolbar button), select Visual Templates tab.
      2) There should be at least two templates. If they are not please create them. Then Select one of the templates, click "Edit".
      3) In the "Tag name" field change the namespace to another one which already exists in the list.
      4) Click "OK" or click "Apply" and close the dialog.
      5) Repeat point 1).
      6) Notice that the URI of the tag which has been edited was changed. Now it shows the URI of the second template with the same namespace.

      Show
      1) Open "Visual Templates Preference Page" (by clicking on the "Preferences" toolbar button), select Visual Templates tab. 2) There should be at least two templates. If they are not please create them. Then Select one of the templates, click "Edit". 3) In the "Tag name" field change the namespace to another one which already exists in the list. 4) Click "OK" or click "Apply" and close the dialog. 5) Repeat point 1). 6) Notice that the URI of the tag which has been edited was changed. Now it shows the URI of the second template with the same namespace.

    Description

      After editing a template on the Visual Templates Preference Page the result is incorrect.
      Particularly when changing the "Tag name".

      Steps to reproduce are described above.

      In general such a behavior is logical due to the fact that tags from the same namespace should have the same URI. However no messages or warnings have been shown to the user about further URI changes.

      As a solution a warning that entered namespase is already defined should be shown to the user or/and suggestion to change the namespace should appear.
      And the whole list of the templates should be updated after "Apply" button is clicked in order to see the fresh data without closing and opening the dialog again.

      Attachments

        Issue Links

          Activity

            People

              dmaliarevich_jira Denis Maliarevich (Inactive)
              dmaliarevich_jira Denis Maliarevich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: