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 148995 - Surround with... hint is non-relevant
Summary: Surround with... hint is non-relevant
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-02 18:23 UTC by Mikhail Matveev
Modified: 2012-02-08 14:37 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 Mikhail Matveev 2008-10-02 18:23:47 UTC
Have a code:

class MyClass{
    private $field;
}

Select, for example, three letters "las" in the editor. Result: on the left, a lamp appears. After clicking it, the IDE
offers to surround this part of code with try{ block. It's wrong, because it makes no sense in this context.

It happens for many other cases, but it doesn't happen somewhere: for example, if you select letters in a field
definition (like "riv" in the example above), no lamp appears. So it seems that editor tries to detect when this action
should be offered, but does it wrong.
Comment 1 rmatous 2008-10-15 14:58:53 UTC
Actually not implemented - works just by accident
Suggested for 7.0
Comment 2 Filip Zamboj 2010-09-15 12:26:49 UTC
batch reassigning
Comment 3 Ondrej Brejla 2012-02-08 14:37:40 UTC
Works properly in 7.2 dev.