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 7240 - Class with gurded blocks cannot be cuted(deleted).
Summary: Class with gurded blocks cannot be cuted(deleted).
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-08-02 16:19 UTC by pzajac
Modified: 2007-09-26 09:14 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 pzajac 2000-08-02 16:19:08 UTC
[Build 1068] Reproduction is easy:

1. Cut class from JavaDataObject node with guarded blocks , For example Form ...
2. Past it into another JavaDataObject.
3 -> Class is removed and pasted into destination source.  It is wrong.

It must be showed box with message as for example class cannot be deleted,
guarded block on line ...
Comment 1 Svata Dedic 2000-08-02 16:22:59 UTC
Although paste behaviour was fixed for all java elements, the SourceElement
represented by the file node still contains the same bug: it does not run
modification code at the user-level, so it bypasses guarded block checking.
Comment 2 Svata Dedic 2000-08-02 16:51:59 UTC
Fixed in 2012, waiting for approval 107*
Comment 3 Svata Dedic 2000-08-04 13:04:59 UTC
Integrated for 1072
Comment 4 Quality Engineering 2003-07-01 13:19:52 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.