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 148626

Summary: localhistory:"revert deleted" doesn't work in c/c++
Product: cnd Reporter: ahot <ahot>
Component: ProjectAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ahot 2008-09-29 14:56:29 UTC
- create Argument project
- delete args.c from project
- right click on project
- choose Local History/Revert Deleted
Result:
Comment 1 ahot 2008-09-29 14:57:34 UTC
Result:
  Nothing happens
---------------------------
This feature works in Java-Projects
Comment 2 Tomas Stupka 2009-12-02 03:52:15 UTC
not sure what the Argument project is but i did the following:

- created a c++ app
- created a new source file in it (under the "Source Files" node)
- removed that file 
- invoked "Revert deleted files" on project node -> the file was reverted, i could see it in the files view, but i wasn't able to see it in the project view

the revert of deleted files is done via the netbeans filessytem, so the IDE is aware of them in the instance they are created. Also the files view seems to know about the files and shows them correcly. For whatever reason - the projects view doesn't react to changes in the filestructure. 

one more odd thing - even removing a file (via a simple delete form the IDE) in the files view isn't reflected in the projects view - i guess thats connected to the reported problem 

reassigning for further evaluation. wasn't sure about the correct component
Comment 3 Tomas Stupka 2009-12-02 03:52:37 UTC
btw

Product Version         = NetBeans IDE Dev (Build 091130-96c71eb28fd8) (#96c71eb28fd8)
  Operating System        = Mac OS X version 10.5.8 running on x86_64
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) 64-Bit Server VM 14.1-b02-92; Apple Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_15-b03-226