facebook

Refactoring a JSP issue

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Patrick
    Participant

    –System Info
    Win Xp Pro
    Eclipse 3.1, clean install
    MyEclipse 4.0 GA
    Java 1.5.0_04-b05 both environ and app server

    –Problem
    When going through package explorer, right click context Refactor -> Rename on an open JSP causes IDE to lock up

    #236713

    Scott Anderson
    Participant

    I tried to replicate this on a similar configuration and could not. Renaming a JSP opened in our JSP designer through Refactor > Rename… worked as expected.

    When you restart, can you right-click and select Open With… > MyEclipse JSP Designer to ensure you’re using our editor, then rename as you did before. Did it work this time?

    #236887

    Patrick
    Participant

    Downgrade from a Bug to a minor annoyance.
    The problem when reported was opened via MyEclipse JSP Designer. It turns out it is just a focus redirect issue, and maybe an area for enhancement that would correct the problem from occuring in the first place.

    WORKAROUND SOLUTION: If you attempt to click almost anywhere else except in the edit area of the still open old-named document, the IDE will not accept the focus (i.e. the X to close the old-page, the title bar or the menu system). The exception to this is clicking to open another document from the Package Explorer.

    POSSIBLE SOLUTION: Have the refactor utility actually close the open page and then re-open the page under the new name.

    #236893

    Patrick
    Participant

    It would help that in my workaround solution I acutally say, “So just click in the edit area of the still opened old-named document, or select an unrelated page to the rename and open it. This will unfreeze and reset the focus.” instead of just implying it….

    If you try to open the new document from package explorer, the IDE will not accept the command and release the focus. It will only work with another document:
    I have pages A.jsp and B.jsp. I rename A.jsp to C.jsp while A.jsp is still open. If I try to clear the focus by just opening C.jsp, it wont work and will remained locked. However, if I open B.jsp the focus will reset itself.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Refactoring a JSP issue

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