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 185908 - Class Renaming does not work
Summary: Class Renaming does not work
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: J Bachorik
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-05-11 13:23 UTC by Alexandr Scherbatiy
Modified: 2010-05-13 09:45 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 Alexandr Scherbatiy 2010-05-11 13:23:42 UTC
netbeans-trunk-nightly-201005101712-javafx-windows.exe 

  Product Version         = NetBeans IDE Dev (Build 201005101712) (#3b0c2e50062e)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


Steps to reproduce:

- Create JavaFX class:
----------  MyClass.fx ---------------
public class MyClass {

}
--------------------------------------

- Refactor-> Rename the class to the MyClass2

The class in file is not renamed
Comment 1 Alexandr Scherbatiy 2010-05-11 13:27:21 UTC
- Right-Click on the class in the Projects tree
 There is no the Refactor menu item


- Select the class name in the editor, right-click and invoke
  Refactor->Rename

The Information dialog pops up "The Rename refactoring cannot be applied in this context"
Comment 2 J Bachorik 2010-05-11 13:34:39 UTC
Has been fixed by http://hg.netbeans.org/javafx/rev/63d7d8bf39aa

The platform correctness was checked by checking the validity of all parts of the platform boot classpath. But it seems that a platform can be valid even if some of the jars on the boot class path are not existing. I've modified the check to watch out for the validity of javafxrt.jar only.
Comment 3 Alexandr Scherbatiy 2010-05-13 09:45:09 UTC
verified in netbeans-trunk-nightly-201005122200-javafx-full-windows.exe