facebook

Design view refresh problem on cut/paste

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #268925 Reply

    Amos
    Member

    When looking at the split Design/Source view (a JSP in my case), the Design view doesn’t refresh properly. Whenever I cut or paste several lines of html, it gets its knickers in a twist and displays all my Java code as if it were plain text. Seems it simply ignores the ‘<%’ and ‘%>’ markers. After I manually refresh, it looks fine again.

    Have to say, though, I still love the fact that JSPs in Version 5 load so much quicker than in Version 4, and that the design view starts up and refreshes much quicker as well… 🙂

    #268926 Reply

    Amos
    Member

    Update: Just noticed that the problem described above only occurs if cutting/pasting lines that directly border on a ‘<%’ or ‘%>’ marker, otherwise (i.e. if I cut/paste lines of HTML code surrounded by other HTML code) it refreshes just fine. (Hope that makes sense…)

    #269073 Reply

    Loyal Water
    Member

    aaamos,
    Could you please go to MyEclipse > Installation Summary > Installation Details and paste that information here for me please.

    Thanks.

    #269074 Reply

    Amos
    Member

    Sure, here goes… (does that mean you don’t get the same behaviour?)

    
    *** Date: 
    Thursday, 19 April 2007 03:49:40 PM GMT+08:00
    
    ** System properties:
    OS=Windows2000
    OS version=5.0
    Java version=1.5.0_08
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.1.1 GA
    Build id: 20070302-5.1.1-GA
    
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 5.1.1 GA
    Build id: 20070302-5.1.1-GA
    
    
    
    
    Eclipse Platform
    
    Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
    Build id: M20070212-1330
    
    
    Eclipse RCP
    
    Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
    Build id: M20070212-1330
    
    
    Eclipse Java Development Tools
    
    Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
    Build id: M20070212-1330
    
    
    Eclipse Project SDK
    
    Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
    Build id: M20070212-1330
    
    
    Eclipse Graphical Editing Framework
    
    Version: 3.2.2.v20070208
    Build id: 20070208-1315
    
    
    
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    W:\MyEclipseInstalls\MyEclipse 5.1.1 GA\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    130_78
    -vm
    W:\MyEclipseInstalls\MyEclipse 5.1.1 GA\jre\bin\javaw.exe
    
    #269273 Reply

    Loyal Water
    Member

    Can you please post a sample for me so that I can try reproducing this issue at my end?

    Thanks.

    #269274 Reply

    Amos
    Member

    Very simple…

    1) Create a file test.jsp with nothing but the following in it:

    <%
        if (true) {
    %>
    <p>some text...</p>
    <%
        } // end if true
    %>
    

    2) Open the file if you haven’t already and change into split Design/Source view. The Design panel displays the tag symbols with “some text…” in the middle.

    3) Select the text in the p tag including the tag itself, i.e. the entire 4th line (so that you’re bordering on the ‘<%’ and ‘%>’ tags as mentioned in a previous post).

    4) Cut (Ctrl+X or however you prefer to cut text).

    5) Notice that the Design panel displays something like the following:

    if (true) {   } // end if true

    i.e. the Design view needs to be refreshed before it displays properly again (contents instead of code).

    Hope that helps reproduce it…

    Cheers,

    Amos

    #269320 Reply

    Loyal Water
    Member

    Hi aaamos,
    I’m logging this bug for my dev team. I’ll get back to you with an update soon as possible.

    #269992 Reply

    Amos
    Member

    Thanks Nipun 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Design view refresh problem on cut/paste

You must be logged in to post in the forum log in