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.
[NetBeans 200506161800; WinXP; JDK 1.5.0_04] We should probably improve the error message from surround with try-catch. I propose not to use the "encapsulate" word as people may confuse it with encapsulate fields. I would rather write: Cannot surround selected block with try-catch. This can also help user understand he needs to select a piece of code if he wants to do surround with tc. I think we should use similar visualisation as is used with Find dialog. I'm not a big fan of the red color which is used there but user will mention the error. At least we'll make it consistent with the find dialog.
CCing Jano for his opinion. Thanks.
Checking in editor/src/org/netbeans/modules/editor/java/JavaKit.java; /cvs/java/editor/src/org/netbeans/modules/editor/java/JavaKit.java,v <-- JavaKit.java new revision: 1.16; previous revision: 1.15 done Checking in javacore/src/org/netbeans/modules/javacore/Bundle.properties; new revision: 1.19; previous revision: 1.18
Verified. Hopefully we will improve the color schemes soon... (to make the red less red) - but that's another issue.