| View previous topic :: View next topic |
| Author |
Message |
Marc Wentink Posted via mailing list.
|
Posted: Wed Feb 18, 2009 6:30 pm Post subject: Changing the generated code |
|
|
I am done with making a core design flow and now I think I should code the stuff around the skeleton.
The dilemma I have now is, should I try to change the grayed generated code. There is some stuff I think I can easily change by changed that exact grayed code. The Flow Designer won’t be used anymore and if it would be I can save a copy now, and use that if I should need to change the flow and skeleton of my application. Is it totally not done to change stuff there, would the IDE become unstable if I try that?
I’ve got this code here:
} else if (displayable == formS) {
if (command == backCommandS) {
// write pre-action user code here
switchDisplayable(null, getFormStart());
// write post-action user code here
} else if (command == itemCommand1) {
// write pre-action user code here
switchDisplayable(null, getFormShS());
// write post-action user code here
} else if (command == itemCommand2) {
// write pre-action user code here
switchDisplayable(null, getFormPCS());
// write post-action user code here
} else if (command == itemCommand3) {
// write pre-action user code here
switchDisplayable(null, getFormAGS());
// write post-action user code here
} else if (command == itemCommandSGCS) {
// write pre-action user code here
switchDisplayable(null, getFormCS());
// write post-action user code here
}
Which I’d like to change to something that would switch the Displayable according to the selection in a choiceGroup instead of a command..
Or should I still try to that within the Designer.? And if any idea how? |
|
| Back to top |
|
 |
Karol Harezlak Posted via mailing list.
|
Posted: Tue Feb 24, 2009 3:19 pm Post subject: Changing the generated code |
|
|
Hi,
Basically modification of guarded blocks for Visual Midlet fiels is not
recommended but if you 100% sure then you want to stop using Visual
Designer follow this steps:
1) Close Netbeans
2) Open you source code directory in some file system explorer
3) You should see your java midlet class and additional *.vmd file,
delete *.vmd file and from this moment you can use your midlet as normal
java file. Remember if you decide to delete *.vmd file there is NO WAY
to start using Visual Designer again for this particular Midlet. Your
file will be recognized by Netbeans just like any other regular Java file.
Karol Harezlak
Marc Wentink wrote:
| Quote: |
I am done with making a core design flow and now I think I should code
the stuff around the skeleton.
The dilemma I have now is, should I try to change the grayed generated
code. There is some stuff I think I can easily change by changed that
exact grayed code. The Flow Designer won |
|
| Back to top |
|
 |
Marc Wentink Posted via mailing list.
|
Posted: Wed Feb 25, 2009 8:59 am Post subject: Changing the generated code |
|
|
Thank you Karol,
I will try to use the flow designer until I really cannot develop any
further in the normal way. Actually I already could do with the designer
what I intended to do without it. I guess I have to discover the
possibilities a bit more.
Marc
-----Oorspronkelijk bericht-----
Van: address-removed [mailto:address-removed]
Verzonden: dinsdag 24 februari 2009 16:19
Aan: address-removed
Onderwerp: Re: [mobility] Changing the generated code
Hi,
Basically modification of guarded blocks for Visual Midlet fiels is not
recommended but if you 100% sure then you want to stop using Visual
Designer follow this steps:
1) Close Netbeans
2) Open you source code directory in some file system explorer
3) You should see your java midlet class and additional *.vmd file,
delete *.vmd file and from this moment you can use your midlet as normal
java file. Remember if you decide to delete *.vmd file there is NO WAY
to start using Visual Designer again for this particular Midlet. Your
file will be recognized by Netbeans just like any other regular Java
file.
Karol Harezlak
Marc Wentink wrote:
| Quote: |
I am done with making a core design flow and now I think I should code
|
| Quote: | the stuff around the skeleton.
The dilemma I have now is, should I try to change the grayed generated
|
| Quote: | code. There is some stuff I think I can easily change by changed that
exact grayed code. The Flow Designer won't be used anymore and if it
would be I can save a copy now, and use that if I should need to
change the flow and skeleton of my application. Is it totally not done
|
| Quote: | to change stuff there, would the IDE become unstable if I try that?
I've got this code here:
} else if (displayable == formS) {
if (command == backCommandS) {
// write pre-action user code here
switchDisplayable(null, getFormStart());
// write post-action user code here
} else if (command == itemCommand1) {
// write pre-action user code here
switchDisplayable(null, getFormShS());
// write post-action user code here
} else if (command == itemCommand2) {
// write pre-action user code here
switchDisplayable(null, getFormPCS());
// write post-action user code here
} else if (command == itemCommand3) {
// write pre-action user code here
switchDisplayable(null, getFormAGS());
// write post-action user code here
} else if (command == itemCommandSGCS) {
// write pre-action user code here
switchDisplayable(null, getFormCS());
// write post-action user code here
}
Which I'd like to change to something that would switch the
Displayable according to the selection in a choiceGroup instead of a
command..
Or should I still try to that within the Designer.? And if any idea
| how?
--
Karol Harezlak <address-removed>
Sun Microsystems, Inc. NetBeans Mobility |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|
|