DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   NetBeans protected code (http://www.daniweb.com/forums/thread158486.html)

Tyrone.Wilson Nov 20th, 2008 4:39 am
NetBeans protected code
 
The protection on code generated in NetBeans is great. untill it gets it wrong and you have an arbitrary line protected and it totally stuffs up your code and you can not longer work on your project!!

Anyone know how to temporarily remove the protection, edit what you want and then put it on again?

I am so frustrated right now.

private void HVAC_NoBOQFinItemStateChanged(java.awt.event.ItemEvent evt) {
try {
if (HVAC_NoBOQFin.isSelected()) {
HVAC_NoBOQ.setSelected(false);
}
//this block is Guarded!!!! arrgh.
refreshHVAC();
} catch (FileNotFoundException ex) {
Logger.getLogger(FeeCalcView.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(FeeCalcView.class.getName()).log(Level.SEVERE, null, ex);
}
}

masijade Nov 20th, 2008 4:43 am
Re: NetBeans protected code
 
Maybe ask at a NetBeans Forum (www.netbeans.org maybe?)

Tyrone.Wilson Nov 20th, 2008 4:48 am
Re: NetBeans protected code
 
nevermind. thanks.

Ezzaral Nov 20th, 2008 2:39 pm
Re: NetBeans protected code
 
Just open the file in a text editor.

Tyrone.Wilson Nov 21st, 2008 1:22 am
Re: NetBeans protected code
 
Thanks.... I actually managed to get it sorted by opening in notpad and moving the tags "//GEN - END methodName" around and that fixed the problem. thanks for the help though, much appreciated.


All times are GMT -4. The time now is 3:25 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC