Details

    • Type: Technical task
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Aptana Studio 3.0.5
    • Component/s: None
    • Labels:
      None
    • Environment:

      Aptana Studio 3, build: 3.0.4.201108101506
      Windows 7

      Description

      If you select a content block in the DTD editor and invoke commenting (CTRL+/), the editor will comment the selected block and deselect that content. This causes a problem insofar as it abrogates the editor option of uncommenting the appropriate content block.

      Steps to Replicate :

      1) Open Aptana Studio
      2) Open an empty, saved DTD file
      3) Place the following content in that file :

      <!DOCTYPE TVSCHEDULE [ 
       
      <!ELEMENT TVSCHEDULE (CHANNEL+)>
      <!ELEMENT CHANNEL (BANNER, DAY+)>
      <!ELEMENT BANNER (#PCDATA)>
      <!ELEMENT DAY ((DATE, HOLIDAY) | (DATE, PROGRAMSLOT+))+>
      <!ELEMENT HOLIDAY (#PCDATA)>
      <!ELEMENT DATE (#PCDATA)>
      <!ELEMENT PROGRAMSLOT (TIME, TITLE, DESCRIPTION?)>
      <!ELEMENT TIME (#PCDATA)>
      <!ELEMENT TITLE (#PCDATA)> 
      <!ELEMENT DESCRIPTION (#PCDATA)>
       
      <!ATTLIST TVSCHEDULE NAME CDATA #REQUIRED>
      <!ATTLIST CHANNEL CHAN CDATA #REQUIRED>
      <!ATTLIST PROGRAMSLOT VTR CDATA #IMPLIED>
      <!ATTLIST TITLE RATING CDATA #IMPLIED>
      <!ATTLIST TITLE LANGUAGE CDATA #IMPLIED>
       
      ]>
      

      4) Select all content (CTRL+A)
      5) Invoke commenting (CTRL+/) to comment selected text
      6) Invoke commenting again (CTRL+/) to uncomment selected text

      Actual Results :

      After step 5, the editor deselects the content block and leaves the caret at the top or bottom of that block, so that attempting to uncomment the content block will perform a second commenting action on the top / bottom line.

      Expected Results :

      If the editor retains the block selection, the end user will be able to comment / uncomment the content block with successive CTRL+/ entries.

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              jwitt Joel Witt
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code