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

Summary: Surround with... hint is non-relevant
Product: php Reporter: Mikhail Matveev <mikhailmatveev>
Component: EditorAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.