This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 203255 - [71cat] Refactor->Inline... truncates Undo/Redo history
Summary: [71cat] Refactor->Inline... truncates Undo/Redo history
Status: RESOLVED DUPLICATE of bug 48427
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 20:01 UTC by torsten_paul
Modified: 2011-10-07 06:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description torsten_paul 2011-10-06 20:01:51 UTC
Product Version: NetBeans IDE Dev (Build 201110050601)
Java: 1.7.0_147-icedtea; OpenJDK Client VM 21.0-b17
System: Linux version 3.0.0-1-686-pae running on i386; UTF-8; en_US (nb)

1) Open Java Editor and create the following class
2) Have some changes in the Undo history so the Undo button is enabled

class Test {
    public void test() {
        final String s;

        s = init();

        System.out.println(s);
    }

    private String init() {
        return "a";
    }
}

3) Place the cursor on the init() method and invoke Refactor->Inline...
4) Preview window is shown and Undo button is grayed out

5a) Cancel the refactoring will re-enable the Undo button

5b) Execute the refactoring will cause the Undo history to be truncated and the Undo button stays grayed out
Comment 1 Jan Becicka 2011-10-07 05:51:38 UTC
do you mean Edit | Undo or Refactor | Undo
Comment 2 torsten_paul 2011-10-07 06:41:47 UTC
It's about Edit->Undo.

I was not even aware there is a Refactor->Undo (as I can Edit->Undo/Redo other refactorings like "Refactor->Introduce Method..." without any problems).

The Refactor->Undo seems to be able to undo/redo the "Refactor->Inline..." changes while Edit->Undo stays grayed out.
Comment 3 Jan Becicka 2011-10-07 06:46:40 UTC
Thanks. We need to integrate editor and refactoring undo

*** This bug has been marked as a duplicate of bug 48427 ***