绕过NetBeans 6.5中生成代码的锁定? [英] Bypassing Lock on Generated Code in NetBeans 6.5?

查看:138
本文介绍了绕过NetBeans 6.5中生成代码的锁定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在NetBeans中,GUI生成器生成的代码对您来说是编辑器所不具备的.

In NetBeans the GUI Builder generates code that is off limits to you from the editor.

我知道您可以切换到设计模式"并指定自定义代码,然后以这种方式间接输入edit,但是无法编辑距光标两行的文本很痛苦.

I know you can switch to Design Mode and specify custom code and then enter edit in indirectly that way, but it's a pain to not be able to edit text that's 2 lines from your cursor.

我可以在这些区域内进行编辑吗...我保证我会小心的:)

Can I allow editing within those regions... I promise I'll be careful :)

谢谢.

注意:我不想失去代码生成

Note: I don't want to lose code generation

推荐答案

如果在外部编辑器中打开它,则有两种可能性:

If you open it in an external editor, there are two possibilities:

  • 不能保证您所做的更改将在Netbeans UI编辑器中起作用(并且不会破坏任何内容)
  • 下次在Netbeans中编辑文件时,将重新生成该文件.

无论哪种方式,可能都不是您想要的.最好的办法可能是在gui编辑器中完成整个设计,并在满意时删除注释并继续.

Either way, probably not what you want. The best thing to do would probably be to make the whole design up in the gui editor and when you are happy with it, delete the comments and continue on.

[讽刺] 使用拖放式gui编辑器,您可能仍然想手动更改什么? [/sarcasm];)

[sarcasm] With the drag and drop gui editor, what could you possibly want to change by hand anyway? [/sarcasm] ;)

这篇关于绕过NetBeans 6.5中生成代码的锁定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆