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 240691 - [Pull Up] I think interface may be also preselected in refactor dialog
Summary: [Pull Up] I think interface may be also preselected in refactor dialog
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-20 10:12 UTC by ssazonov
Modified: 2014-01-20 10:12 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2014-01-20 10:12:25 UTC
1. Create java class:

package test;

public class ClassA {

    public abstract class ClassC {
    }

    public class ClassB extends ClassC implements SomeInterface {

        @Override
        public void m1() {
            System.out.println("m1");
        }
    }

    public interface SomeInterface {
        public void m1();
    }
}

(If you right click the method m1() and from pop-up menu select Refactor > Pull Up then m1() will be preselected in Pull Up dialog)

2. Right click SomeInterface in "public class ClassB extends ClassC implements SomeInterface { ... }" and from pop-up menu select Refactor > Pull Up

>> I think it may be useful, if the interface was also preselected in refactor dialog

Product Version: NetBeans IDE Dev (Build 201401200001)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)